Hi Cathy (thanks for the review!)
Please see this screenshot which shows where the padding is coming from (navbar-inner) and the styling rules which are being applied to it.
https://screencast.com/t/2DQ5Z1i4u.
In that screenshot I’ve used Chrome Developer Tools, it lets you inspect the HTML and see what CSS rules are being applied to each element. To open Chrome Developer Tools, use Google Chrome to view your site, right click on the menu and click ‘Inspect element’.
Max Menu will override as much CSS as it can, but it can only do that for the menu HTML it outputs.
Your menu HTML is wrapped in other HTML elements (in the screenshot, that means the <div class=’main-navigation navbar’> and the <div class=’navbar-inner’>). If you apply padding to those elements then there’s no way Max Menu can know about it and reset it because it’s not actually part of the menu.
There are a few things you could do:
1. Modify the bootstap.min.css file (the one where the rules are being set) and remove the padding-left and padding-right rules from the “.navbar-inner” selector.
2. Modify your themes header.php file and remove the <div class=’navbar-inner’> wrapper from your header.php file (this way, the CSS won’t be applied to the navbar-inner because the element doesn’t exist any more, so there is nothing to style).
3. Override the CSS in bootstrap.min.css by adding the following CSS to your themes style.css file:
.navbar-inner {
padding-left: 0 !important;
padding-right: 0 !important;
}
The last way is probably the easiest, but it would be worth spending a couple of hours trying to figure out why it’s happening. Chrome Developer Tools is invaluable to me (and probably every other web developer), so if you’re not using it it’s well worth learning – there are some good tutorials on YouTube.
Regards,
Tom