SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru etidd's Avatar
    Join Date
    May 2011
    Location
    atlanta, ga
    Posts
    632
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Question Attempting to Remove Anchor Gradient on Child Anchor

    Hi all,

    I am trying to add in links to my menu's h2 elements inside the insurance sublist. For some reason, it's still stuck with the main hover gradient when the child div is exposed. Can you check out what's happening on the page or see dropdownmenus.css at http://www.atlantareviewgroup.com/index.html?

    Code:
    #pMenu h2 a{color:#9FF; background:none; filter:none;}
    #pMenu h2 a:hover, #pMenu h2 a:active, #pMenu h2 a:focus{color:#9FC; text-decoration:none;}

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,296
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    You need to use the same (or greater rule weight to over-ride the previous styles.

    e.g.

    Code:
    #pMenu li:hover h2 a{
     background:none;
    }


Tags for this Thread

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
  •