Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Web Design, HTML And CSS Forums (http://www.go4expert.com/forums/web-design-forum/)
-   -   attribute used to supersede any of the contradictory styles with equal weight (http://www.go4expert.com/forums/attribute-supersede-contradictory-t20464/)

manisingla44 22Dec2009 00:12

attribute used to supersede any of the contradictory styles with equal weight
 
Question:
Which of the following attributes can be used to supersede any of the contradictory styles with equal weight?


a. !supersede
b. !high
c. !important
d. !key

mugnebot 22Feb2010 13:58

Re: attribute used to supersede any of the contradictory styles with equal weight
 
Answer:
c. !important

mugnebot 22Feb2010 14:01

Re: attribute used to supersede any of the contradictory styles with equal weight
 
Using !important with CSS

The CSS !important declaration is something I've seen in CSS code before but never knew what it meant until a few days ago, so I thought I'd write a post looking at !important to show what it does.

CSS rules marked !important take precedence over later rules. Normally in CSS the rules work from top to bottom, so if you assigned a new style to an element further down the style sheet or in a secondary style sheet then the later rule would take precedence. !important ensures that this rule has precedence.


All times are GMT +5.5. The time now is 14:48.