Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS and Netscape 2

Status
Not open for further replies.

MarkBarrett

Technical User
Oct 1, 2003
3
GB

I am fairly new to CSS but on a steep learning curve.
What I have done to date looks fine in Internet Explorer

When I view it in Netscape Navigator 7.1 it's not recognising any of the CSS code.

What can that be?

I would really appreciate your help on this.

MB

 
I made the simplest example I could.


There should be a red background and a cell with a white border. Both show in IE but only the background in NN.

I wonder now if it is just a problem with borders.

Again - appreciate any advice.

MB
 
instead of .1 try td.1

<signature>
sometime you just gotta say &quot;WHAT THE @#*% !!&quot;
</signature>
 
I played with your code a bit. Looks like my Mozilla ignores the css class if it is just a number. Change it to a letter, word or a letter and number and it should work.

Hope that helps.
 
Delving around in we find that class names have to start with a letter, optionally followed by other letters, numbers or hyphens. NS is more fussy about standards compliance than IE, which is why it doesn't work.

I'd strongly advise you to pick more meaningful names for classes anyway- sure, it's more typing, but you'll find it a lot easier to maintain your site when you come back to it.

-- Chris Hunt
 
Thanks very much to all of you - you solved the problem.

Going back to one of my manuals I see that it says:

&quot;CSS doesn't permit class or id values to begin with a number (unless you throw in an escape character), and thus some browsers won't recognise a class or id name that starts with a number&quot;

Here is my test page now corrected.


Now on to something more challenging!!

MB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top