[thelist] CSS: Not using .css

timothy booker thelist at lists.evolt.org
Sun Sep 8 13:23:49 2002


Ken Kogler wrote:
> Are there any caveats to be aware of when doing this:
>
>   <link type="text/css" media="all"
>    href="/css/main.asp?style=red" rel="stylesheet">

 From your ASP page you should send a header with text/css as the
content type.  I'm not sure how this works in ASP, but in PHP you would
simply put the following as the first line of output from the script:

header( 'Content-Type: text/css' );


Hope this helps,
Tim



--

http://www.yaffle.org/