I tend to agree. Since .c2 is defined after .c1 it takes precendence
over the first declaration. AFAIK the order in which the classes are
defined within the attribute do not influence.
Far more than anyone could ever ask for is here:
http://stackoverflow.com/questions/15670631/does-the-order-of-classes-listed-on-an-item-affect-the-css
Jørgen Lang
Am 01.10.13 20:45, schrieb Chris Rockwell:
http://www.w3.org/TR/CSS2/cascade.html#cascading-order
In your example, width is 30em;
On Tue, Oct 1, 2013 at 2:40 PM, Philip Taylor <p.tay...@rhul.ac.uk> wrote:
Consider :
.c1 {width: 20em}
.c2 {width: 30em}
<DIV id="i1" class="c1 c2">...</DIV>
<DIV id="i2" class="c2 c1">...</DIV>
What widths do i1 and i2 have, and why ? Answers by reference
to the relevant W3C specification(s), please, not by experiment
or guesswork !
______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/