PDA

View Full Version : What is Usage of !important?


BWDCIndia
09-26-2016, 09:58 AM
Most of the new css developers miss this !important rule. This rule is important to increase rank over other subsequent rules. Below i have explain you clearly with example.
.page { background-color:red !important; background-color: Pink;}

edbr
09-27-2016, 08:59 AM
it does not increase rank , the rule will be selected where there is a conflict of styles. but setting two styles as in your example is crazy and would be a pointless thing to do