Forum Moderators: open
I have tried to put all the styles in an external sheet and the problem persists.
Is there an issue that I dont know about.
Cheers
BlobFisk: In theory stylesheets can be written in any language you like. So a meta tag (or HTTP header) should be used to define what style language you are using.
Authors must specify the style sheet language of style information associated with an HTML document....Documents that include elements that set the style attribute but which don't define a default style sheet language are incorrect.
1. If any META declarations specify the "Content-Style-Type", the last one in the character stream determines the default style sheet language.2. Otherwise, if any HTTP headers specify the "Content-Style-Type", the last one in the character stream determines the default style sheet language.
3. Otherwise, the default style sheet language is "text/css".
I choose #3. But seriously, I didn't realize there was a requirement here. Lucky for me I haven't ventured outside the default area.
Documents that include elements that set the style attribute but which don't define a default style sheet language are incorrect.
Authoring tools should generate default style sheet language information (typically a META declaration) so that user agents do not have to rely on a default of "text/css".
If your existing sites don't have then I would panic too much. But its one to note for the future.
If you do want to specify it for your existing sites then it would probably be easier to do so in your HTTP headers (i.e. by using <Header> directive in .htacess)