Re: <link> to a css file requires .css ???
| From: | Daniel Kolbo | Date: | Sun, 16 Aug 2009 21:44:35 +0000 |
| Subject: | Re: <link> to a css file requires .css ??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-296863@lists.php.net to get a copy of this message | ||
Daniel Kolbo wrote:
> Hello,
>
> I realize this is more of an html question than a php, but I was hoping
> someone here would know what's going on.
>
> I am linking to a stylesheet and it is requiring me to use *.css
> extension. I want to use a .php extension (and have the php engine
> generate css). However, whenever i use a .php extension the link tag
> does not seem to work.
>
> This works!
> <link rel="stylesheet" type="text/css"
> href="http://localhost:8080/some.css" />
>
> This doesn't work but I don't understand why not???
> <link rel="stylesheet" type="text/css"
> href="http://localhost:8080/some.php" />
>
> The page http://localhost:8080/some.php displays the css
> exactly the
> same as http://localhost:8080/some.css
>
> Why can't I link to a css file by using a different extension?
>
> Thanks in advance,
> dK
> `
>
Sorry, I am pretty sure i figured out why. I think it has to do with
Content-Type header.
Thanks,
dK
`