Adjusting menu padding for desktop?
-
So, I’m using the Go theme with some modified colors, and when viewed on the desktop browsers the drop-down child menus have a really thick primary color border on them (same color as the text).
I would like to slim that border down.
When I bring up “inspect element” it shows the box model has 12 pixels of padding on all sides of the box.
If I go into the “Filter Styles” section and I found this:
.primary-menu .sub-menu { display: none; left: 50%; padding: .75rem; position: absolute; text-align: center; -webkit-transform: translateX(-50%); transform: translateX(-50%); width: 200px;
If, in that section of the element inspector, I change the “padding: .75rem” to “padding: .1rem”, it makes the border around the menu appropriately thinner.
So I tried going into Customize -> Additional CSS and add:
.sub-menu {padding: .1rem}
… and nothing happens. The border is still thick.
So I tried
.primary-menu {padding: .1rem}
… same thing.So I tried
.primary-menu .sub-menu {padding: .1rem}
… same thing.Still thick border around the pull-down menus.
Strangely enough, I’m successfully modifying the capitalization in those menus using
.primary-menu a {text-transform: capitalize}
and.menu-item li a {text-transform: capitalize}
How do I reduce the padding around those drop-down menus?
The page I need help with: [log in to see the link]
- The topic ‘Adjusting menu padding for desktop?’ is closed to new replies.