You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Nanu Kalmanovitz <na...@kalmanovitz.co.il> on 2006/03/19 09:21:47 UTC

[users@httpd] CSS applied in IE but not in Netscape and Firefox

Hi!
 
Server system SBS (Novell Small Business suite) 6.5 sp 1 with Apache
2.0.48, MySQL ver. 4.0.15a, PHP 4.2.3, all of them on same machine.
 
I found on other forum the link
http://developer.mozilla.org/en/docs/Incorrect_MIME_Type_for_CSS_Files 
that may be the solution for  a web site that works perfectly in IE,
but in Netscape and Firefox (the style sheet is not applied to the html
file).
 
The solution is for says to add the "AddType text/css .css" line to the
".htaccess" file.
 
It is the right solution?
 
I found the ".htaccess" file under the
sys:\tomcat\4\webapps\nps\portal.
 
TIA
 
Nanu


Re: [users@httpd] CSS applied in IE but not in Netscape and Firefox

Posted by Krist van Besien <kr...@gmail.com>.
On 3/19/06, Nanu Kalmanovitz <na...@kalmanovitz.co.il> wrote:
>
>
> Hi!
>
> Server system SBS (Novell Small Business suite) 6.5 sp 1 with Apache 2.0.48,
> MySQL ver. 4.0.15a, PHP 4.2.3, all of them on same machine.
>
> I found on other forum the link
> http://developer.mozilla.org/en/docs/Incorrect_MIME_Type_for_CSS_Files
> that may be the solution for  a web site that works perfectly in IE, but in
> Netscape and Firefox (the style sheet is not applied to the html file).
>
> The solution is for says to add the "AddType text/css .css" line to the
> ".htaccess" file.
>
> It is the right solution?
>
> I found the ".htaccess" file under the
> sys:\tomcat\4\webapps\nps\portal.

There are several sollutions to to problem. You can add this "AddType"
statement in your httpd.conf, or in  a .htaccess file. In this last
case it has to be a .htaccess file that is read when this css file is
requested, so it needs to be in the directory where the css is, or
maybe one of its parent directories.

Krist

--
krist.vanbesien@gmail.com
Solothurn, Switzerland

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org