Fri, 2003-05-02 20:01
What style sheets takes precident over the other styles sheets. Is it the last one listed in the document flow, which I think it is, or is the the first one in the document flow?
Basically what is the cascading order?
Fri, 2003-05-02 20:44
#1
Cascading order
Hi Blakems,
Style rules are given a weight based on cascade rules set out by W3C
They can explain it much better then I can
You are correct in your assumption, if style rules have the same weight then the order is important.
If you have two rules with the same weight the last should override the first.
P{width:200px;} P{width:500px;}should give you all P set to 500px
Fri, 2003-05-02 21:04
#2
Cascading order
Yes Tony is right there.
If you had:
DIV.updateTitle { margin : 5px; font-size: x-large; font-weight: bold; } DIV.updateTitle { margin : 10px; }
the margin is taken from the bottom, but the DIV still has the font-size and weight from the top one.