View Full Version : Menu CSS help

05-20-2012, 03:26 PM

I am trying to style a menu but i still get confused with proper syntax.

<ul class="main-nav"><li id="bp-adminbar-account-menu"><a href="http://www.eupal.eu/members/admineu/">My Network</a><ul><li class="alt"><a id="bp-admin-activity" href="http://www.eupal.eu/members/admineu/activity/">Activity</a></ul></ul>

I want to change the hover color as well as the background and text color of the sub-menus.

any mark-up code will be much appreciated.

thanks in advance,

05-20-2012, 04:35 PM
Hello neodjandre,

ul li a:hover {color: #f00;} should make the words My Network red on hover.

To change background and text colors, this should do the trick -

ul li ul li {
background: #fff;
color: #333;

You would probably want to add the id's and classes so the CSS would be more specific.

For more help you'll need to post the entire code for your ul menu. What you have provided is incomplete and invalid.