On 1 Oct 2013, at 16:50, Robert A. Rosenberg wrote:

So you are saying that in a 'class="c2 c1"' case, it scans the CSS defs, sees .c1 and applies it, keeps going and sees .c2 which overrides the c1 width?

IOW: The order that you list the class in the HTML is ignored and only the order that the classes are defined in the CSS defs counts.

That's correct.

(Assuming the selectors have the same origin, weight, AND specificity, that is; in that case, then the order the rules are listed in the CSS matters. If two selectors don't have the same origin, weight, OR specificity, then the order they're listed in the CSS is irrelevant.)


--
Eric A. Meyer - http://meyerweb.com/
______________________________________________________________________
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/

Reply via email to