A tough mystery for you all...

admin

Administrator
Staff member
Can ANYONE figure out why this piece of code will not completely fill up the browser (IE) all the way to the right scroll bar, even though it's setup for 100%?<br />
<br />
Notice that when you load this page the first time it stops about 10 pixels or so short of the right edge of the browser. If you click refresh it fills it completely. I am using IE 6, but I believe the same problem occurs in 5.5.<br />
<br />
Good luck!<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><br />
<br />
<html><br />
<head><br />
</head><br />
<body bgcolor="#ffffff" marginheight="0" marginwidth="0" leftmargin="0" topmargin="0"><br />
<br />
<table width="100%" cellpadding="0" cellspacing="0" border="0"><br />
<tr><br />
<td width="100%" bgcolor="red"><img src=http://www.htmlforums.com/archive/index.php/"images/spacer.gif" width="1" height="1" border="0"></td><br />
</tr><br />
</table><br />
<br />
</body><br />
</html><!--content-->This looks pretty easy, but before I jump to conclusions. Have you tried just typing a bunch of gibberish (adghsdpghspighaspf), so you could check if it goes all the way to the scrollbar? As you want it. Also, I don't think tables are supposed to be able to get THAT close to the scrollbars.<!--content-->Yes...the browser should indeed be completely filled. Look at this site for example. The top nav touches the right scroll bar.<!--content-->Er, you're missing the height?<!--content-->No...height has nothing to do with the width stretching 100%<br />
<br />
ANYONE else???<!--content-->that is easy.<br />
<br />
by defualt all browsers leave a space for the scroll bar. if you page gets bigger then the scroll bar comes out, if you think the page will never get that big to need a scroll bar, then add this<br />
<br />
style="overflow: hidden;"<br />
<br />
to the body tag.<!--content-->Hey, you never specified width or height. So I helped with what I saw.<!--content-->
 
Back
Top