Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

css for menu item background

Home / Forums / Virtue Theme / css for menu item background

This topic is: Resolved
[Resolved]
Posted in: Virtue Theme

Tagged: 

August 13, 2018 at 12:20 pm

I’m trying to bring attention to one main menu item by changing it’s background color and changing the text color. I’ve managed to to that with css, but the background color is taking up more space than I’d like. It’s using all of the space in its menu list item space and I’d like the background color to just be about 10px all around the menu item text. This is the css I have right now:

#nav-main ul.sf-menu > li.menu-item-644 > a {
border-color: #0066b4 !important;
border: solid 2px !important;
background-color: #0066b4 !important;
color: #FFFFFF !important;
border-radius: 5px;
}

What other css can I use to do this? Or do I need a completely different approach here?

  • The forum ‘Virtue Theme’ is closed to new topics and replies.