1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

attribute used to supersede any of the contradictory styles with equal weight

Discussion in 'Web Design, HTML And CSS Forums' started by manisingla44, Dec 21, 2009.

  1. manisingla44

    manisingla44 New Member

    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
     
  2. mugnebot

    mugnebot New Member

    Answer:
    c. !important
     
  3. mugnebot

    mugnebot New Member

    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.
     

Share This Page