SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: !important

  1. #1
    Beer Monster -Ox's Avatar
    Join Date
    Apr 2003
    Location
    sowth afreeka
    Posts
    374
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question !important

    I know this is probably a silly question... but... !important can someone define exactly what that does?

    Thanks!
    My postings are a natural product.
    The slight variations in spelling and grammar enhance its
    individual character and beauty and in no way are to be
    considered flaws or defects - http://www.guinnesspig.net

  2. #2
    SitePoint Member
    Join Date
    Nov 2003
    Location
    Bath, U.K.
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I believe it overides inheritance within CSS making the attribute more important in the cascade.

    eg

    h1 {color:black !important;}

    overides the colour orignally given in say the body {} tag.

    joe
    --------------------------------------------
    www.josephleech.co.uk
    --------------------------------------------

  3. #3
    Beer Monster -Ox's Avatar
    Join Date
    Apr 2003
    Location
    sowth afreeka
    Posts
    374
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    AHA, excellent, thanks very much
    My postings are a natural product.
    The slight variations in spelling and grammar enhance its
    individual character and beauty and in no way are to be
    considered flaws or defects - http://www.guinnesspig.net

  4. #4
    gingham dress, army boots... silver trophy redux's Avatar
    Join Date
    Apr 2002
    Location
    Salford / Manchester / UK
    Posts
    4,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    re·dux (adj.): brought back; returned. used postpositively
    [latin : re-, re- + dux, leader; see duke.]
    WaSP Accessibility Task Force Member
    splintered.co.uk | photographia.co.uk | redux.deviantart.com


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •