Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: CSS HTML
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 17-Feb-13 9:28am
Comments
Sergey Alexandrovich Kryukov at 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 at 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 at 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)..
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Here is a solution for your problem...
Your code..
 <!-- 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..
<!-- 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..
  Permalink  
v2
Comments
vinodkumarnie at 24-Feb-13 4:35am
   
Also do this changes in all pages..
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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[^]
  Permalink  
Comments
vlad781 at 17-Feb-13 15:38pm
   
So should I replace the position to something else, or just remove that completely.
Volodymyr Bobko at 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 at 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 at 17-Feb-13 17:38pm
   
Then the content in that area disappears.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 230
1 PIEBALDconsult 150
2 DamithSL 125
3 Andreas Gieriet 90
4 Jochen Arndt 90
0 OriginalGriff 5,790
1 DamithSL 4,601
2 Maciej Los 4,012
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,195


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 24 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100