Dal
07-04-2003, 11:04 AM
I've been trying to make a web page that stretches the entire width of the browser, however I can't seem to get it to do that without leaving a strange white gap down the right hand side of the page.
To try and work out where I'm going wrong I created a small HTML page with just a single table in it, but I can't even get that to work without there being a gap. Strangely, the gap only appears when the HTML page is on-line, if ran from my hard disk the gap doesn't appear.
Here's the code I'm trying, basically just a green table that I want to stretch across the whole screen with no margins or gaps.
<html>
<body topmargin="0" leftmargin="0">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr width="100%">
<td width="100%" bgcolor="#008000"> </td>
</tr>
</table>
</html>
Even with width set to 100% it still leaves the gap. I've attatched an image of the gap to this post.
Most bizarrely, if I hit the 'refresh' button or F5 in my browser, the table resizes itself and the gap disappears.
Can anyone offer any advice on how to solve this ? How can I get the table to stretch across 100% of the screen without a gap appearing on the right hand side ?
Thanks in advance.
:)
To try and work out where I'm going wrong I created a small HTML page with just a single table in it, but I can't even get that to work without there being a gap. Strangely, the gap only appears when the HTML page is on-line, if ran from my hard disk the gap doesn't appear.
Here's the code I'm trying, basically just a green table that I want to stretch across the whole screen with no margins or gaps.
<html>
<body topmargin="0" leftmargin="0">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr width="100%">
<td width="100%" bgcolor="#008000"> </td>
</tr>
</table>
</html>
Even with width set to 100% it still leaves the gap. I've attatched an image of the gap to this post.
Most bizarrely, if I hit the 'refresh' button or F5 in my browser, the table resizes itself and the gap disappears.
Can anyone offer any advice on how to solve this ? How can I get the table to stretch across 100% of the screen without a gap appearing on the right hand side ?
Thanks in advance.
:)