Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Netscape Browsers and Table at 100% Problem

Netscape Browsers and Table at 100% Problem
Thread Tools
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Aug 27, 2004, 08:01 AM
 
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
Reply With Quote
Aug 27, 2004, 08:03 AM
 
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
Reply With Quote
Aug 27, 2004, 09:06 AM
 
What does "Netscape" mean exactly? What doctype are you using?
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Aug 27, 2004, 10:16 AM
 
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
Reply With Quote
Aug 27, 2004, 11:50 AM
 
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
Reply With Quote
Aug 27, 2004, 03:29 PM
 
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
Reply With Quote
Aug 27, 2004, 09:34 PM
 
Can this method also be used to change the size and other properties in a table cell?
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:11 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2