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

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

  1. manisingla44

    manisingla44 New Member

    Joined:
    Dec 21, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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

    Joined:
    Feb 16, 2009
    Messages:
    13
    Likes Received:
    1
    Trophy Points:
    3
    Home Page:
    http://www.sirinevlerhamami.com
    Answer:
    c. !important
     
  3. mugnebot

    mugnebot New Member

    Joined:
    Feb 16, 2009
    Messages:
    13
    Likes Received:
    1
    Trophy Points:
    3
    Home Page:
    http://www.sirinevlerhamami.com
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice