Jump to content

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


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 post
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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...