Site logo

Archived topic

How to Add Border Hover on Primary Navigation?

5 replies · Started by Jericho on August 4, 2018

Viewing posts 1–6 of 6

Hi Tom & Team,

By default, the settings under Colors -> Primary Navigation only allows you to add Text and Background Hover.

I want to add Border Hover like on Google search (http://prntscr.com/kekah7).

Please help me with some CSS codes. :)

Thanks!
Jericho

Hi Leo,

It looks good but I'm using a white background navigation so the hover background is of no use. Also, I am referring to the border in hover/current like in Google search, not the text border.

Can you help me with this?

Goal: http://prntscr.com/kenstb

Thanks very much!

Try this CSS:

.main-navigation .main-nav ul li a {
    border-bottom: 2px solid transparent;
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    border-bottom: 2px solid transparent;
}

Thanks, Leo!

No problem :)

This archived topic is closed to new replies.