Previous Message
Next Message

RE: [css-d] CSS Methodologies

Sent by Nelson_Rodriguez-Pena on 23 July 2003 18:06


Hi Alex,

<quote>
Really? I thought the cascade applied to the order in which the styling is
applied as opposed to the order it is in within the style sheet (unless
there are conflicting style sheets or in-line styles defining the same
element, class or ID). My understanding of the cascading order (
http://www.w3c.org/TR/CSS1#the-cascade -Rule 4) leads me to believe that
the acronym element is more specific than the body and thus its style rules
would take precedence over those set in the body. My experience has shown
this to be the case for all but :link and its cohorts.
</quote>

Well, in http://www.w3.org/TR/REC-CSS1#cascading-order point 5 it says:

<quote src="http://www.w3.org/TR/REC-CSS1#cascading-order">
5. Sort by order specified: if two rules have the same weight, the latter
specified wins. Rules in imported style sheets are considered to be before
any rules in the style sheet itself.
</quote>

So it might matter, though not always. It surely is better having things
organized in a way that helps avoiding this problems...

regards,

------------------------------------------------------------
Nelson Rodriguez-Pena A.
Web & Multimedia Design & Development
[EMAIL-REMOVED]
------------------------------------------------------------



______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: