help in - !Important

Discussion in 'CSS' started by lobelitp, Jun 11, 2009.

  1. #1
    could anyone please explain me !Important word placed in css files...as i m new i need this answer for Interview Questions...
     
    lobelitp, Jun 11, 2009 IP
  2. digitalnature

    digitalnature Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    "!important" is a CSS rule which you add next to a "property: value"
    A property containing this rule will have priority to a property without it.

    here is a example:
    and you get links with red color...

    note that IE 6 doesn't know "!important"
     
    digitalnature, Jun 11, 2009 IP
  3. lobelitp

    lobelitp Peon

    Messages:
    74
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks and y there is need for us to give color red and blue at the same time....any example could you give...

    anyways thanks
     
    lobelitp, Jun 12, 2009 IP