Click here to Skip to main content
15,881,715 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
In my temp. site located at:
https://dl.dropbox.com/u/33215212/The%20Tribe%20Dreamweaver/Home.html[^]

There is random white space on the right hand side of the screen, and scroll you can scroll horizontally to get there, I am unsure what is causing this, and how to get rid of it.

Any ideas?

thanks.
Posted
Comments
Sergey Alexandrovich Kryukov 17-Feb-13 15:00pm    
I see nothing strange... you should provide more detail.
My question is: why do you inline CSS? This style of coding is hard to support...
—SA
vlad781 17-Feb-13 15:41pm    
if you go to my page, you can scroll horizontally to the right. there is white space. That is the problem, however I am unsure what you mean by 'inline CSS'
vinodkumarnie 24-Feb-13 4:41am    
Writing styles inside tags is nothing but inline style..
Eg: <span style="font-family: Cambria; font-size: 36pt;"></span>
So avoid writing inline styles.
Best practice of writing style is using CSS(Cascading Style Sheets)..

Here is a solution for your problem...
Your code..
HTML
<!-- Title -->
   <div objtype="5" style="width: 100%; height: 57px; removed: absolute; padding: 0px; removed 107px; removed 1px; z-index: 14;" id="txtBox_20" align="center">
       <span style="font-family: Cambria; font-size: 36pt;">
         <span style="color: rgb(155, 0, 0);">
          <span>
             <a href="Home.html" style="text-decoration:none; color:rgb(155, 0, 0);">The Tribe</a>
          </span>
       </span>
    </span>
   </div>
   <!-- Menu-Paragraph Separation -->


In the above lines of code in div style you mentioned style property as left: 1px;. So it taking 1px space in your page. So change that to left:0px; as below. Now you will not get space anywhere.

Modified code..
XML
<!-- Title -->
    <div objtype="5" style="width: 100%; height: 57px; position: absolute; padding: 0px; top: 107px; left: 0px; z-index: 14;" id="txtBox_20" align="center">
        <span style="font-family: Cambria; font-size: 36pt;">
          <span style="color: rgb(155, 0, 0);">
           <span>
              <a="" href="Home.html" style="text-decoration:none; color:rgb(155, 0, 0);" >The Tribe</a>
           </span>
        </span>
     </span>
    </div>
    <!-- Menu-Paragraph Separation -->


Hope you got your expected solution..
 
Share this answer
 
v2
Comments
vinodkumarnie 24-Feb-13 4:35am    
Also do this changes in all pages..
Try to remove absolute position from everywhere in your page. You can achieve the same result with much more efficient floating layout, like this for example http://www.w3schools.com/html/html_layout.asp[^]
 
Share this answer
 
Comments
vlad781 17-Feb-13 15:38pm    
So should I replace the position to something else, or just remove that completely.
Volodymyr Bobko 17-Feb-13 16:08pm    
I would recommend you to replace your layout with example from w3 school "HTML Layouts - Using <div> Elements". It also has header, menu area, content area, and footer.
Volodymyr Bobko 17-Feb-13 16:16pm    
Regarding your particular case - you can remove almost whole right white space by removing position absolute style from this tag:
<div objtype="19" style="width: 100%; height: 304px; padding: 10px; position: absolute; top: 317px; left: 295px; z-index: 12;" id="txtBox_18">
vlad781 17-Feb-13 17:38pm    
Then the content in that area disappears.
I found that there was an issue with the padding. I had to set the padding to 0px and then adjust the size of every banner.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900