Forum Moderators: not2easy
The CSS validates, have searched on G, am using doctype: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
The width and max-width works in IE (using IE7) as do all the link attributes - hover etc.
In Firefox (latest) none of above works for me. I wondered whether it was because I also had a:link, hover etc in the body so the duplication between external style sheet and body was causing problems. However after I deleted the body attributes and it did not work either.
I have also just this second created a brand new blank page with one word in plane text and another with link and it works in IE and not Firefox.
Any ideas please?
If it is the entire stylesheet, then you may well have a server misconfiguration. In standards-compliance mode (triggered by your full doctype), Firefox is stricter in the way it handles CSS files. If your server is (mis)configured to serve .css files as
text/plain instead of text/css then the stylesheet will not be loaded. Open the CSS file directly in Firefox (so you will see the stylesheet itself displayed in the browser window), and then check the MIME type by pressing Ctrl+I (or right click and select Page Info). If "Type" is anything other than
text/css then add the following to a document-root-level .htaccess file: AddType text/css .css If you are not running Apache or cannot use .htaccess, then contact the server administrator to fix the problem.
More info here: