Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't get rid of tiny amount of white space on right

Status
Not open for further replies.

sazebac

Technical User
Apr 16, 2003
117
US
The site is at OnlineBookTrader.com
I'm viewing my site at 1024x768. I've got my tables set to 100% and yet there is still a small amount of white space on the right hand side of the screen which I do not want. I want it to be filled blue all the way to the end. I reset the tables to 1024 but then I had a side to side scrolling bar which I do not want. I experimented changing the tables widths from 900 to about 980 and could not get the right combo where I had no side scrolling bar and the blue completely filling all the way to the right hand side. I can I adjust my tables to achieve this? What is the total width of Internet Explorer at 1024x768? Thanks.
 
Browser window size.
thread216-459119

<html>
<body>
<script language=&quot;javascript&quot;>
//tested in NN and recieved 1014*605
var myWidth = window.innerWidth;
var myHeight = window.innerHeight;

//tested IE 6.0 1024* res and recieved 995*587 for width output
//var myWidth = document.body.clientWidth;
//var myHeight = document.body.clientHeight;
alert(myWidth +&quot; &quot;+myHeight);
</script>
</body>
</html>

____________________________________________________
[sub]Python????? The other programming language you never thought of!
thread333-584700[/sub]
onpnt2.gif
 
Thanks for the input, but still have no idea how to get rid of the white space on the right. I would think setting the table width to 100% would do it, but this is not the case.
I tried your code onpnt, and fist got 1004 for width, then hit refresh and it changed to 1020 (this is in IE 5.0 by the way) So I changed the table width to 1020 and I got the side scrolling bars.
 
is this live? can you post the url so we can see how it is outputing to the browser

____________________________________________________
[sub]Python????? The other programming language you never thought of!
thread333-584700[/sub]
onpnt2.gif
 
just to note that most browsers do have a very slight white space on teh right side.
NN6.2+ is about 2-3px
IE5+ is about 1-2px

____________________________________________________
[sub]Python????? The other programming language you never thought of!
thread333-584700[/sub]
onpnt2.gif
 
OnlineBookTrader.com is my site. And then check out Ipowerweb.com, see how their blue part goes all the way to the right side of the screen? You can't see any white at all. This is what I'm trying to do.
 
I figured it out. It was the margins, had to set them all to zero, as in
<body body bgcolor=&quot;white&quot; leftmargin=&quot;0&quot; topmargin=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot;>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top