homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

External CSS and Mozilla/Netscape
Won't work!

 6:01 am on Dec 23, 2001 (gmt 0)

My external style sheet works in IE, but won't in Netscape or Mozilla (any versions...) This is really frustrating! I have researched it to make sure I'm using the correct syntax (I am) and to make sure that I am linking the document correctly (I am.) Can someone help me please!?



 6:21 am on Dec 23, 2001 (gmt 0)

<link rel="stylesheet" href="style.css" type="text/css">
Works fine for me in Mozilla.


 6:23 am on Dec 23, 2001 (gmt 0)

Could you take a look at my code, please?

[The site in the user profile]

(edited by: tedster at 6:35 am (gmt) on Dec. 23, 2001)


 6:59 am on Dec 23, 2001 (gmt 0)

Welcome to Webmaster World,

I can see that the body background color and image border color aren't working in Netscape.

I'd suggest running your html through a validator (such as the free validator at the W3C [validator.w3.org] before digging into the css.

Just off the top, you have some <tr> and <td> tags after the closing </table>. Netscape does not forgive bad table tags, so if you clean the HTML first, you'll know better what the css troubles are.


 1:51 pm on Dec 23, 2001 (gmt 0)

For starters, in NN4, attributes in tables are not inherited from the body. You'll need to style each td, including the font, color and background color. In addition, you don't want to have any empty cells, or they will revert to default backgrounds.

It's possible that your body background isn't showing because you're using that table for layout. Instead of using background-color, see what happens with just the background shorthand.

As far as the image border color goes, try setting the border-width in css and using a specific class, like:

img.withaborderof8 {border-width: 8px; border-color:#666666; border-style: solid;}

Mucho headaches to get CSS to work right with NN4.


 2:58 pm on Dec 23, 2001 (gmt 0)


I sent you a sticky-mail which you'll find at the top of this page - YOU HAVE MAIL :)


 12:03 am on Dec 24, 2001 (gmt 0)


Is that only a NN4 problem (styling every cell?) And how does Mozilla compare to NN? My fiancee says that one is based off the other, but I'm still confused.
Also, should I declare a certain element (such as body bgcolor) at the html document level, or should I do all that in CSS?

Thanks Much!



 12:20 am on Dec 24, 2001 (gmt 0)

Hi princess, I'm not tedster, but I did take another look on another PC that has mozilla here.

Mozilla should be VERY correct. NN4 is VERY bad. IE has always been very forgiving.

But the main thing that I noticed in your external CSS is that you have quotes around your colors: "#000000", for example, you don't need them, and it probably constitutes an error.

And yes, you do need to style many attributes in each cell, as I said.

Your fiance is correct, but it has been a long time from the NN4 versions to the present. Mozilla is much, much, more compliant with CSS.


 12:43 am on Dec 24, 2001 (gmt 0)

It works!!! Thank you so much!!! (It was the quotes...)

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved