 |
 |
Netscape Browsers and Table at 100% Problem
|
 |
|
 |
|
Mac Elite
Join Date: May 2002
Status:
Offline
|
|
I have a table filled with a color that I want to expand and fill the screen when the browser is window is resized. Setting the table to 100% for the width and height works fine in other browsers, but Netscape seems to balk at adjusting the height for me.
Sample Code:
<div id="s1" class="hidden">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
<tr height="100%">
<td align="center" valign="middle" bgcolor="#ffc500" width="100%" height="100%"><a href="javascript:toggleID(1);"><span class="introText">Nomadic Mind</span><br>
<span class="briefLead3">Test Build 5<br>
</span></a><span class="briefLead3">Old Site Build</span></td>
</tr>
</table>
</div>
Any help would be appreaciated.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: May 2002
Status:
Offline
|
|
Whoops ... you might want to remove or change the hidden to visible when you test the code.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Oct 2000
Status:
Offline
|
|
What does "Netscape" mean exactly? What doctype are you using?
|
|
|
| |
|
|
|
 |
|
 |
|
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status:
Offline
|
|
i maybe reading this wrong here, but, if you want it to fill the screen, wouldn't a background color be more appropriate? i'm not sure what you're after, exactly. more info?
|
|
"Have sharp knives. Be creative. Cook to music" ~ maxelson
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: May 2002
Status:
Offline
|
|
Sorry ... hopefully this will clarify it.
I have a div containing a splash screen and would like the splash screen to have a specific background color. The site itself will have a white background. So, I was hoping to cover the screen initially with the splash cover then when entering the site hide the splash div and the underlying site color (white) will show.
This works fine with a table who's background color is set to the splash color and set to scale 100% to fill the screen. However, it doesn't seem to want to work in Gekko browsers like Netscape/Mozzilla/etc...
still to vague?
alternatives besides creating a separte page for the splash/intro? I may resort to this but would still like to figure out the above problem.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Oct 2000
Status:
Offline
|
|
Originally posted by headbirth:
Sorry ... hopefully this will clarify it.
I have a div containing a splash screen and would like the splash screen to have a specific background color. The site itself will have a white background. So, I was hoping to cover the screen initially with the splash cover then when entering the site hide the splash div and the underlying site color (white) will show.
This works fine with a table who's background color is set to the splash color and set to scale 100% to fill the screen. However, it doesn't seem to want to work in Gekko browsers like Netscape/Mozzilla/etc...
still to vague?
alternatives besides creating a separte page for the splash/intro? I may resort to this but would still like to figure out the above problem.
Can't you just use a page-specific style (I can't think of the exact terminology). If you do:
Code:
<head><style type="text/css">body { background: red }</style></head>
It should override the code in your stylesheet, assuming you have one. As for Gecko based browsers not respecting the full-height table, I believe that full height tables go against the XHTML spec. Are you possibly using an XHTML doctype? If using a page specific style doesn't work, you can try and changing your doctype to something like HTML 4 or removing it altogether and see if that works.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: May 2002
Status:
Offline
|
|
Can this method also be used to change the size and other properties in a table cell?
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |