Jump to content

why some of css classes and ids don't work at firefox ?!


Shifter
 Share

Recommended Posts

haven't you already been told that having two doctypes on your page is a bad thing, and that you should validate your code? Could you also be specific about which ID's and classes are actually causing you problems?

Link to comment
Share on other sites

you might want to listen to thescientist you shouldnt have two doctypes. Also someof your class have double quotes and some have single quotes, im going to guess that the ones that have single quotes don't work. Im pretty thats it because if your file is html you need to double quote classes and id's. you cant single quote those unless you are using thing in a function, and the function is being called, i.e. $active[] = 'class=active-link';Also, why are you using so many stylesheets AND using inline styles? use one or the other.You need to befriend the validator that W3C provideshttp://validator.w3.org/#

Link to comment
Share on other sites

Also someof your class have double quotes and some have single quotes, im going to guess that the ones that have single quotes don't work. Im pretty thats it because if your file is html you need to double quote classes and id's. you cant single quote those unless you are using thing in a function, and the function is being called, i.e. $active[] = 'class=active-link';
Actually, double or single quotes don't matter. You can use either one.EDIT: Per the spec:
SGML requires that all attribute values be delimited using either double quotation marks (ASCII decimal 34) or single quotation marks (ASCII decimal 39)
(SGML is the language that HTML is based on) Edited by ShadowMage
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...