Welcome to WebmasterWorld Guest from 54.227.5.198

Forum Moderators: not2easy

Message Too Old, No Replies

External CSS and Mozilla/Netscape

Won't work!

     

princess

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

10+ Year Member



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!?

littleman

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

WebmasterWorld Senior Member littleman is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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

princess

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

10+ Year Member



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)

tedster

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

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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.

bobriggs

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

WebmasterWorld Senior Member 10+ Year Member



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.

Marshall

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

WebmasterWorld Senior Member 10+ Year Member



princess,

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

princess

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

10+ Year Member



Tedster--

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!

Jessie

bobriggs

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

WebmasterWorld Senior Member 10+ Year Member



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.

princess

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

10+ Year Member



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

Featured Threads

Hot Threads This Week

Hot Threads This Month