Previous Message
Next Message

Re: [css-d] MIME Type issues or bad CSS code?

Sent by Sérgio on 8 February 2003 14:02


It's an apache configuration problem. First, the symptom. If you look at the 
response headers (using wget in this example):
sergio@portatil:/home/sergio> wget --spider --server-response
           => `cafe.css'
Resolving done.
Connecting to[]:80... connected.
HTTP request sent, awaiting response... 
 1 HTTP/1.1 200 OK
 2 Date: Sat, 08 Feb 2003 14:25:30 GMT
 3 Server: Apache/1.3.27 (Unix) PHP/4.3.0 FrontPage/
 4 Last-Modified: Wed, 05 Feb 2003 02:16:30 GMT
 5 ETag: "223955-11fa-3e4073fe"
 6 Accept-Ranges: bytes
 7 Content-Length: 4602
 8 Content-Type: text/plain
 9 Via: 1.1 Application and Content Networking System Software 4.2.3
10 Connection: Keep-Alive
200 OK

You'll see that header 8 indicates this is a text/plain MIME type, when it
should be text/css.

For fixing this, edit the mime.types files on the apache conf directory. Make
sure there's an entry mapping .css to text/plain. It should look like this:
text/css                        css

Citando Jeff Berwick [EMAIL-REMOVED]>:

> Hi there,
> I have created a site at  The CSS file is located at
>  When I try to validate this file using
> I get an I/O error that says the page is
> being served as text/plain.  I am currently trying to get my server to
> change their entry but they say that they are serving css pages as text/css.
> Their suggestion is that my code is not right.  I have used
> and uploaded the file and it checks out.
> Can anybody look at my CSS and let me know if I am doing something wrong or
> if there is a problem with the server?
> I have attached my css file.
> Thx,
> Jeff

Sérgio Carvalho
Previous Message
Next Message

Message thread: