SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Guru
    Join Date
    Aug 2009
    Posts
    641
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Different Color Active Child on Dropdown

    Hello,

    Having bit of an issue tried several things on my website...

    Heres the page...

    http://tailwaggr.ca/products-page/collar-category/

    Now were in the Collar Category and when you scroll over Shop the Collar child is tan because I have a rule for selected items to be tan, how can I make it a different collar for example the green or a grey just so its not tan and blends into the background.

    Thanks,

    Mike

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,195
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    Why do you have class="selected" on the first LI in the submenu?

  3. #3
    SitePoint Guru
    Join Date
    Aug 2009
    Posts
    641
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Because that is the page that it is on the Category Collars so I'd like it to be green or a grey or something and leashes in the submenu be the black like it is since not on that page. I'm using Wordpress.

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,195
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    Ah, OK. Well, you could just write a more specific rule, like this:

    Code:
    .navbar li .selected > a {
    color:  #000;
    background: green;
    }


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
  •