Jump to content

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


Shifter

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)
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...