Hi,
I’m adding some custom css to the navbar in order to place a background color behind a menu item. I don’t want the background color to fill the height of the navbar, I just want it around the text. I used this css:
.x-navbar .x-nav-wrap .x-nav > li > a {
background-color: #000;
display: inline;
padding: 5px;
}
.x-navbar .x-nav-wrap {
padding-top: 32px;
}
The result looks like this, which is what I want:
However, the css I’m using prevents me from making customisations I want in the drop-down mobile menu. For example, I would to change the size of the mobile menu font or center the text like this:
.x-navbar .mobile .x-nav li>a {
text-align: center;
}
But with the first css applied, the second css doesn’t work. Sorry, my css skills are a little basic!
Please login to my site if you need to as it’s under construction. Many thanks for your help!