Fwd: [nycbug-talk] OT: Apache/css/Firefox

Matthew Terenzio webmaster
Thu Nov 11 22:23:11 EST 2004

Begin forwarded message:

> From: Matthew Terenzio <webmaster at localnotion.com>
> Date: November 11, 2004 10:16:37 PM EST
> To: marco at metm.org
> Subject: Re: [nycbug-talk] OT: Apache/css/Firefox
> On Nov 11, 2004, at 9:18 PM, marco at metm.org wrote:
>> On Thu, Nov 11, 2004 at 04:28:37PM -0500, Kevin Reiter wrote:
>>> Sorry for the OT post, but I've been ripping (what's left of) my  
>>> hair out on
>>> this one, and I'm hoping somebody has come across this problem and  
>>> actually
>>> found a fix for it.
>>> Apache 2.0.x is sending .css files as text/plain to Firefox  
>>> browsers, and I
>>> haven't been able to determine if it's a bug in Apache or just a
>>> configuration issue.  I've found numerous references to it off  
>>> Google, but
>>> nobody seems to have been able to find/post a fix to it.  Has anyone  
>>> run
>>> into this, and if so, who were you able to resolve it?  I can  
>>> provide the
>>> client's config files if needed.
>> I am sorry but perhaps I don't understand the problem.  How have you
>> determined that the type is text/plain in Firefox and not in other
>> browsers, or that this is wrong.
> Don't know if it helps, and I speak only for Apache 1.3.
> The mime.types provided  with the installation should have .css files  
> set to text/css.
> If I point my browser(firefox) to the .css file it will render as text  
> , yes, but go to tools->page info and it should say text/css as type,  
> not text/plain.
> if it says text/plain, then yes something is wrong and you may need to  
>  add AddType like below to the httpd.conf or .htaccess files
> http://www.dithered.com/css_filters/nonvalidating/ 
> http_mimetype_text_plain.html  mentions that standards compliant  
> browsers will ignore text/plain .css files  and if there is a problem  
> with the file validating as mentioned below, I think it may in fact  
> treat it as text/plain
>>   If you request a .css file by typing
>> it in the url bar it should show up as text.
>> If you want to force a filetype the syntax is really straight forward:
>>  AddType text/css .css
>> But I am not sure this is necessary.  I have never done it.
>> My guess, if the css is not showing up properly, there is probably
>> something wrong with the file.  I would check comments as I have seen
>> css not work with <!-- html --> comments in it in IE.  I am sure there
>> is a css validator online somewhere.  I use tidy to check all the html
>> of sites, and a vim with set syntax=on can catch most messed up .css
>> -- 
>> Marco
>> _______________________________________________
>> % NYC*BUG talk mailing list
>> http://lists.nycbug.org/mailman/listinfo/talk
>> %Be sure to check out our Jobs and NYCBUG-announce lists
>> %We meet the first Wednesday of the month
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 2930 bytes
Desc: not available
Url : http://lists.nycbug.org/pipermail/talk/attachments/20041111/8726d4c8/attachment.bin 

More information about the talk mailing list