|
| |
|
|
anyonewebs
Posts: 8 Joined: 8/21/2002 Status: offline
|
100% Table Height Not Working in Netscape - 12/6/2002 14:52:23
I have a header and footer on my site. So I want a table to fill the entire browser window when there is not much content on the page. I am using the height=" 100%" attribute for my table. It works fine in IE, but on Netscape it makes the table larger than the entire browser window and you get a vertical scroll bar. A simplified version of my code is below. Any ideas? Thanks. <html> <head> <title>Untitled Document</title> <meta http-equiv=" Content-Type" content=" text/html; charset=iso-8859-1" > </head> <body bgcolor=" #FFFFFF" text=" #000000" marginheight=" 0" marginwidth=" 0" leftmargin=" 0" topmargin=" 0" > <table width=" 100%" height=" 100%" border=" 0" bgcolor=" #FFFFCC" cellspacing=" 0" cellpadding=" 0" > <tr> <td width=" 100%" height=" 13" bgcolor=" #000000" background=" ../images/topbg.gif" ><img src=" ../images/clearpixel.gif" width=" 1" height=" 13" ></td> </tr> <tr> <td width=" 100%" height=" 100%" > </td> </tr> <tr> <td width=" 100%" height=" 13" bgcolor=" #000000" background=" ../images/bottombg.gif" ><img src=" ../images/clearpixel.gif" width=" 1" height=" 13" ></td> </tr> </table> </body> </html>
|
|
|
|
anyonewebs
Posts: 8 Joined: 8/21/2002 Status: offline
|
RE: 100% Table Height Not Working in Netscape - 12/9/2002 11:45:46
Here' s a link if you want to look at the problem. http://www.anyonewebs.com/tableproblem.htm
|
|
|
|
anyonewebs
Posts: 8 Joined: 8/21/2002 Status: offline
|
RE: 100% Table Height Not Working in Netscape - 12/9/2002 11:48:54
I tried what you said bobby. It doesn' t work. The result is that the table shows up in Netscape with 3 rows with equal widths. So my background picture has to repeat to fill up the space. Thanks. BTW, I' m testing on Netscape 6.2 and IE 5.5
|
|
|
|
jDan
Posts: 1 Joined: 1/6/2004 Status: offline
|
RE: 100% Table Height Not Working in Netscape - 1/6/2004 15:30:48
Try adding this to your stylesheet: html,body {height:100%;} This site does a good job of sorting through the height issue: http://www.quirksmode.org/css/100percheight.html As for the width, I have no idea how to get NS 4 to work with 100% cells. If anyone has any suggestions please let me know. dan
|
|
|
|
d a v e
Posts: 4415 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: 100% Table Height Not Working in Netscape - 4/8/2004 1:37:11
problem is that 100% height isn't valid html so it might work in quirks mode but whether it is 100% of the viewport or something else is hard to predict, better off just staying away from it, or not to worrying too much if it doesn't work the same everywhere. (IMO)
_____________________________
David Prescott Gekko web design
|
|
|
|
d a v e
Posts: 4415 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: 100% Table Height Not Working in Netscape - 4/8/2004 4:32:17
what if you chucked the whole table into a div and then set the div height to 100%? might work, you never know
_____________________________
David Prescott Gekko web design
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|