Forum Moderators: not2easy

Message Too Old, No Replies

CSS Classes fail in Fire Fox

CSS classes fail or dont work in fire fox

         

streak

12:50 am on Jun 30, 2007 (gmt 0)

10+ Year Member



I have just added this new doc type code

"<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">"

which is set up as a SSI include. When I added this, the navigation which is aligned using the block command. Beside that point, all of the classes that I applied to the website affecting td, p, table, span, a html tags. Do Not Work. So I read all about what Fire Fox considers good css coding and how to write it. Well my css table is written correctly. Here are some examples

td.1 {
text-align: center;
}

td.2 {
text-align: center;
color: #FFFF00;
}

a.1 {
color: #FFFF00;
text-decoration: none;
}

p.3 {
font-weight: normal;
font-size: 14px;
text-align: center;
}

p.4 {
text-align: center;
}

p.5 {
text-align: center;
}

all of the "div id" coding is working properly. I do not know what to do about it. I did use the mozilla validation tool and it registered all of my classes as "error parse". Any help would be good. Especially if you know how to fix this issue.

Marshall

1:35 am on Jun 30, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



streak,

Don't use numbers for classes. Some browser don't support them. If you must use numbers, since at times it is easier to remember classes, write out the number: one, two, three, etc.

Marshall

Xapti

10:46 pm on Jun 30, 2007 (gmt 0)

pinterface

11:25 pm on Jun 30, 2007 (gmt 0)

10+ Year Member



see [w3.org...]
    In CSS, identifiers (including element names, classes, and IDs in selectors) can contain only the characters [a-z0-9] and ISO 10646 characters U+00A1 and higher, plus the hyphen (-) and the underscore (_); they cannot start with a digit, or a hyphen followed by a digit. Identifiers can also contain escaped characters and any ISO 10646 character as a numeric code (see next item). For instance, the identifier "B&W?" may be written as "B\&W\?" or "B\26 W\3F".
and [w3.org...]
    ident    [-]?{nmstart}{nmchar}* 
    ...
    nmstart [_a-z]¦{nonascii}¦{escape}
    nonascii [^\0-\177]
    unicode \\[0-9a-f]{1,6}(\r\n¦[ \n\r\t\f])?
    escape {unicode}¦\\[^\n\r\f0-9a-f]

Note this means .\30 - .\39 (escapes for 0-9) should work. Whether they actually work I'll leave to you. :)