css not working in netscape

They have: 42 posts

Joined: Dec 2002

Well my CSS is kind of working. I can get it to work flawlessly in IE, but in mozilla, only half of it works. I can get the link decoration off and the link color but I cannot get text to be sans serif.

here is my code

{font-family:sans-serif;}
A{text-decoration:none; font-weight:bold;}
A:hover{color:#411598;}

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Well, this one's easy -- you don't have any elements for that top declaration.

It *should* read....

body, table, td, p {font-family: sans-serif;}

Or something similar.

You may wish to toy with the idea of validating your CSS -- it would find these problems very easily and help you learn how to use CSS at the same time. Using an application like bradsoft.com (top style) on the pc would really help.

They have: 42 posts

Joined: Dec 2002

Thank you suzanne, I should have known that. I just started learning CSS through w3schools.com Fixed the problem, works like a charm.

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Super! Do consider getting yourself a CSS editor, though, it will speed up your learning a lot. Smiling

DC_Sara's picture

She has: 392 posts

Joined: Jan 2002

I'm having a problem with an entire table not showing up in NS 6...any help would be wonderful!

The addy is: simplysara.com/blog/

I kinda want it to show up, y'know. And in Opera 6 it shows up but it's split over the main blog entries.

Any clues?

Thanks!

Sara Smiling

~*Sara*~

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

have you validated your code, Sara? it's showing up fine in N7, but you have a number of technical errors -- http://validator.w3.org/check?uri=http://www.simplysara.com/blog/&charset=(detect%20automatically)&doctype=(detect%20automatically)&verbose=1

down around 210 and 211, you see this:

Quote:
# Line 940, column 35: ID "sidebar1" already defined (explain...).

^

# Line 940, column 16: ID "sidebar1" first defined here (explain...).

That can definitely cause problems.

Numbers 320 and 321:

Quote:
320. Line 1092, column 6: end tag for "div" omitted, but OMITTAG NO was specified

^

321. Line 54, column 0: start tag was here (explain...).

^

Those may be the problems with N6 & with Opera.

DC_Sara's picture

She has: 392 posts

Joined: Jan 2002

Thanks Suzanne!

Yes, I saw those errors, I did run it through the validator...I'm calling in 2 separate nav.php's and I can't change how that is written as they are being called in...I didn't write the code that way. Does that make sense?

Any clues as how to get around it? I guess I need to wade through the code and figure out another way to pull those in. Hm.

Sara

~*Sara*~

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

you can't fix missing tags?

DC_Sara's picture

She has: 392 posts

Joined: Jan 2002

I found the problem, it was something in a table, instead of just a file. I pulled it out of the include and just plopped it in.

Yup, I can fix tags! Wink Thanks!

~*Sara*~

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.