phil_gg04 (AT) treefic (DOT) com wrote:
Quote:
link rel="stylesheet" type="text/css" href="general.css" /
link rel="stylesheet" type="text/css" href="specific.css" /
But the styles of the second sheet were not applied.
That will work. There must be something else going on.
Steve, I agree with you. This should work (I do it all over the
place). What's all this about title attributes? |
It's a little bit complicated, see
http://www.w3.org/TR/html401/present....html#h-14.3.2 Quote:
I thought that was something to do with alternate stylesheets. |
Yes. Mostly.
If the value of the rel attribute is "stylesheet" and there is no
title then the stylesheet is persistent and will always be applied.
There can be any number of such stylesheets.
If the value of the rel attribute is "stylesheet" and there is a title
then the stylesheet is preferred and will initially be applied. If
there is more than one such stylesheet (with different titles) then
the last specied is used and the others are ignored.
If the value of the rel attribute is "alternate stylesheet" then the
title attributes serves to group these styles together. So the user
can select to apply a group of stylesheets in one go.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <steve (AT) pugh (DOT) net> <http://steve.pugh.net/>