SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist escapedf's Avatar
    Join Date
    May 2002
    Location
    Cape Town
    Posts
    458
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angry body id - current page style

    Hi all,

    Could anyone tell me what I have done wrong with my body id/current page styling?

    I think its something really stupid that I have missed

    Have a look here: http://www.bluecrushdesign.co.za/brendan/index.html

    The "welcome" on the left navigation should be black.
    I gave it a style:
    body.welcome #nav li.welcomeli {
    color: #000000!important;
    }

    and i gave the body tag this: <body class="welcome">

    What have i done wrong?

    Thanks in advance!
    Dee
    "have the courage to follow your heart and intuition. They somehow already know what you truly want to become"

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,598
    Mentioned
    411 Post(s)
    Tagged
    6 Thread(s)
    This rule is still overriding it:

    Code:
    #nav ul li a{
    color:#7C7A7B;
    text-decoration:none;
    }
    So I would do something like this:

    Code:
    .welcome  #nav ul li.welcomeli a {
    color: #000000;
    }
    PS
    The problem may just be that there is no gap between the color value and the !important, by the way, but I wouldn't use !important anyway.

  3. #3
    SitePoint Evangelist escapedf's Avatar
    Join Date
    May 2002
    Location
    Cape Town
    Posts
    458
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    youre a star, thanks!
    I tried so many different possibilities, obviously not this one! ;-))

    thanku!!
    "have the courage to follow your heart and intuition. They somehow already know what you truly want to become"


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
  •