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
Resolving www.gallerycafe.ca... done.
Connecting to www.gallerycafe.ca[188.8.131.52]: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/184.108.40.2060
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
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:
Citando Jeff Berwick [EMAIL-REMOVED]>:
> Hi there,
> I have created a site at www.gallerycafe.ca. The CSS file is located at
> www.gallerycafe.ca/cafe/cafe.css. When I try to validate this file using
> http://jigsaw.w3.org/css-validator 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
> http://jigsaw.w3.org/css-validator 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.