Center Align Background Hover Color in (Uber)Menu

Hey,

When i hover over my menu items customized with UberMenu the color is not centered. When you hover over the menu items there are blank places as the background color does not cover the full menu item. There are blank spaces above the menu item (blog/start business without product/etc), underneath the menu item, and on the right of the menu item. As there is no space on the left of the menu item, it looks like the hover color is not centered well. This also happends on the non-hover active menu background color. The ideal situation for me would be no blank spaces at all between the dividers. Is this possible?

URL= https://feddewestera.com/

Best regards,

Fedde

Hi There,

Did you add this custom CSS? If yes, please find and remove it:

.ubermenu.ubermenu-main .ubermenu-item-level-0 {
    margin: 1px;
}

If NOT, please add this custom CSS under Theme Options > CSS:

.ubermenu.ubermenu-main .ubermenu-item-level-0 {
    margin: 0;
}

After that add this custom CSS as well:

@media (min-width: 980px){
	.ubermenu-nav {
	    display: flex;
	    justify-content: space-between;
	}
	.ubermenu-nav li {
	    flex: 1 0 auto;
	}
	.ubermenu-nav li a {
	    text-align: center;
	}
}


Hope it helps :slight_smile:

Thanks for the fast solution! That worked well!

You’re most welcome, Fedde.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.