Sent by Joseph A Nagy Jr on 4 June 2003 12:12
Arlen Walker wrote:
>
> On Wednesday, June 4, 2003, at 06:00 AM, Joseph A Nagy Jr wrote:
>
>> Chris Blake wrote:
>>
>>> 1. Browser default
>>> 2. External Style Sheet
>>> 3. Internal Style Sheet (inside the 'head' tag)
>>> 4. Inline Style (inside HTML element)
>>> </quote>
>>> Is this an absolute rule or are there exceptions. I`m just a little
>>> worried about the use of the words "Generally speaking...."
>>
>>
>> I always thought it was an absolute rule myself.
>
>
> Yes, given equal specficity.
>
> For example:
>
> External style sheet says:
>
> #navbar ul li a:hover {color:red;}
>
> while Internal style sheet says:
>
> a:hover{ color:green;}
>
> Now, if I understand the cascade properly (and there's always a chance I
> don't) the links that are part of an unordered list in #navbar will
> color themselves red when hovered over, because the external style sheet
> code is more specific than the internal.
I'd be inclined to agree with that, but I rarely, if ever, willingly use
an internal or inline style (new layout not with standing since I didn't
create it. I find the whole point of CSS is the ability to set a style
document from without (external) which makes the html file that much
smaller. :)
--
Wielder of the mighty +1 LARTsaber of Unsubscribe Instructions At End of
Message,
the +3 Clue-by-Four of No Attachments to a Mailing List,
and the -4 Shield of No Spell Checker
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/