RE: FN-FORUM: An easy one for you all (but not for me apparently!)
date posted 19th August 2003 14:04
Pam, quoting me:
> > Actually, it doesn't have to end in '.css'. Your web browser treats it
as
> > CSS regardless of the extension, because you've told it to with that
> > 'type="text/css"' line.
>
> O right - Taa - I hadn't realised - Pam
It's dead useful if you're using scripting-language-of-choice to generate
other sorts of content. This is why things like:
and even:
... all work as expected. In fact, that's why works
too: the extension isn't ".html", but PHP returns a 'text/html' Content-type
header by default.
Hope that's a eureka moment for someone...
- Nick Grimshaw
{ if you're not part of the solution, you're part of the precipitate. }