Forum Moderators: not2easy

Message Too Old, No Replies

Differences Netscape 4.51 - Explorer

         

Debaser

1:04 pm on Sep 10, 2003 (gmt 0)

10+ Year Member



Hi, i am a newbie when it comes to css - and iīd like some help with this small problem. I have created a page that looks good in explorer but Netscape 4.51 doesnīt seem to recognize any of the styles. What am i doing wrong? This is the page:

<HTML>
<style>
body { color : #333333; background-color : #ffffff; font-family : Verdana, Helvetica, Sans-serif; font-size : 11px; margin : 0px; }
table { font-size : 11px; line-height : 15px; }
td { border : 0px; padding-left : 3px; padding-right : 3px; padding-top : 2px; padding-bottom : 2px; line-height : 15px;}
strong { font-weight : bold; }
.tablerowstyle { color : #000000; background-color : #dedcd5; }
.light { color : #000000; background-color : #edece6; border-style : solid; border-top-width : 1px; border-bottom-width : 1px; border-color : #ffffff; }
</style>
<HEAD>
<TITLE>test</TITLE>
</HEAD>
<BODY marginwidth="0" marginheight="0">
<table cellspacing="0" width="50" summary="" align="left" height="20%">
<tr class="tablerowstyle">
<th colspan="4" align="left" class="strong" width="65" height="51">Data1</th>
</tr>
<tr>
<td class="light" width="20" height="65">Data2</td>
</tr>
</table>
</BODY>
</HTML>

What can i do to make it look good in netscape? I guess iīm doing something in the <style> area that netscape doesnīt understand, and therefore doesnīt care about. Do you guys see anything obviously wrong?

Debaser

1:48 pm on Sep 10, 2003 (gmt 0)

10+ Year Member



addition:
If i declare the font family in the style called "light" (like itīs declared in "body") it does look good in Netscape too. My idea however was to let the light tag inherit the body tag like it does in Explorer.
Is this impossible?
Do i have to declare the font in every single tag that wants to use it?

SuzyUK

5:53 pm on Sep 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Do i have to declare the font in every single tag that wants to use it?

Yep, for NN4.x you do ;(
However it's not that difficult to do

td, th, a, ul {
font-family : Verdana, Helvetica, Sans-serif;
font-size : 11px;
line-height : 15px;
}

then just add other elements as required seperated by commas

NN4.x just doesn't inherit font stuff (but then neither does IE in quirks mode..) so just easier to do this if you still have to design for it..

Suzy

PS I don't know what happened there.. the post went through before I'd finished typing?