Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] CSS drop down menu list background color transparent

  • This topic is empty.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #150087
    Jack
    Participant

    MOD EDIT : Code exported to Codepen: http://codepen.io/anon/pen/JKnAD

    My drop down menu list * tags background color i set to transparent and it should be, but it still remain contain white color background for each of the * in sub-menu list.

    #150092
    Paulie_D
    Member

    We’d need to see the HTML as well and it might be helpful if you could re-frame your question as I’m not entirely sure what your question is.

    #150096
    Jack
    Participant

    The codepen i added the html inside, and everytime you mouse hover an menu item will drop down a sub menu list.
    And i want the sub menu list background: transparent, and mouse hover only appear white color.

    #150113
    Paulie_D
    Member

    I’m not seeing an updated Codepen.

    You probably won’t be able to have a submenu with a transparent background. Or rather you could but it will then inherit the background of the parent list item.

    #150123
    Jack
    Participant

    Sorry for that. i though i am saved the html code.
    Here is link HTML & CSS

    #150127
    Paulie_D
    Member

    I’m still not clear on exactly what it is you are trying to do but :

    http://codepen.io/anon/pen/qGAou

    #150129
    Jack
    Participant

    Did you see my sub menu list is white color background?
    Can i set it to transparent, and mouse hover to sub menu list only appear white color.

    #150130
    Paulie_D
    Member

    Previous Codepen updated..

    You might find this useful.

    http://net.tutsplus.com/tutorials/html-css-techniques/the-30-css-selectors-you-must-memorize/

    I find it’s often easier to give each menu level it’s own class to avoid selectors like ul li ul li

    Here’s a different one I keep around for reference.

    http://codepen.io/Paulie-D/pen/22c4ca602bda363099133ded6bca2294

    #150133
    Jack
    Participant

    Thanks Paulie_D. But how many mouse hover to my sub menu items? because i had tried to made the change, it still can’t change the background color once i mouse hover the sub menu item.

    #150135
    Jack
    Participant

    Solved. Thanks alot :)

Viewing 10 posts - 1 through 10 (of 10 total)
  • The forum ‘CSS’ is closed to new topics and replies.