Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- Browser Conflict on Input Fields!


alt131 - 9:49 am on Sep 23, 2011 (gmt 0)


Hi Efe,
Well, actually I don't understand what do you mean by "weight
did you read the explanation at the link I posted above? That should explain it, but if not, another way of understanding is to think of real weights - it really is this simple :). Say you have 100 items. The first weighs 1kg, the second weighs 2kgs, and so on up to 100kg. Obviously the item that weighs 100kgs has a greater "weight" than the thing that only weighs 1kg. In css different types of style sheets, and different types of rules are given a "weight" - and the rule with the greatest (largest) "weight" is applied.

you're basicly saying the reset function simply overrides the previous rules while !important makes them unoverridible. Did I get that correct?
Usually yes - as explained in the recommendations I linked to, a rules "weight" will depend on the cascade, and also specificity. However, as a general guide, !important will usually have a greater "weight" - so as you say - will be "unoverridible".


Thread source:: http://www.webmasterworld.com/css/4362615.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com