One of the most frequently asked questions on this forum, is why stylesheets sometimes won't apply in Mozilla/Netscape6-7 (in standard or almost standard rendering modes), but applies on everything else, including Mozilla in quirks mode. The answer is simple: it's likely that your server isn't serving the file with a correct Content-Type header. To know whether the file sends the correct Content-Type header, go to <http://webtools.mozilla.org/web-sniffer/> and enter the address of your stylesheet file there, then look at the Content-Type header. If it is not 'text/css', then your server is not serving the file up as css.
Well, that was the problem. How to correct it? If your server is Apache, you can enter "AddType text/css;charset=utf-8 .css" into your .htaccess file (or create one if it doesn't already exist). In other cases, you should contact your server admin and ask them to correct it.
If you want a php file to be sent as css, you can use
You can type the address of the stylesheet in to the Moz/NS/FB address line and after page loads check the content type going to Tools (looking at FB Menu) -> Page Info.
(If you get the Open With box - that is a good indication that your stylesheet si served wrong)
__________________ Vladdy | KL "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"
Yes, unless it's served as 'text/plain' which is often the case with Apache servers. Then it will be displayed instead. However, if you have the Live HTTP Headers extension that is an excellent choice.
dunno why you just didn't make the original thread sticky; it was better and had all this info in it.
::] krycek [::
__________________ ithium | SOAPI | SDP | PTPScript manual "ithium is a non-profit webhost, which is pretty much unique. The mission of ithium is to provide free hosting resources for worthwhile and needy non-profit projects, which otherwise may not be able to obtain such facilities. The money from commercial customers goes to maintain ithium's servers and further development."
Sorry, web-sniffer is not available at this time because our new server is Linux, and Web-Sniffer currently only compiles on Solaris. If you think you can help, please see bug 220373.
I haven't had any problems with my CSS not being applied.
That meta tag is pointless - for the first, there is no Content-Style-Type header. Second, it's on the wrong document. That tag has one purpose, really, and that purpose is telling nn4 whether to use JSSS or CSS. Since the type attribute on the style tag is required, and the external files identify their content type in their header, there exists no viable reason for using it at all.
The Content-Type header of the actual css file is the one you must ensure is 'text/css' - and since you have not had any problems with it, I guess you are on a properly configured server.
Anyway, you shouldn't reply to stickies if you haven't got something to contribute to them. If you have wonderings about them, use a separate new thread asking about it. That way we can keep the signal to noise ratio as high as possible for the stickies.
It will do just what the php in the first post of this thread will do. If you're using Fusebox (or another framework which demands entry through a single point), you should add a reset="yes" attribute to the cfcontent tag, and append a <cfabort /> at the end of the stylesheet template.