Centre a menu
-
Hello, I’m looking to centre the menu on my site rather than it being aligned to the right.
Can someone help me out with a CSS code please? it’s the silvio theme.
Thanks
ElliottThe blog I need help with is: (visible only to logged in users)
-
Hello,
Try adding this text to your CSS customization.
.main-navigation {
width: 100%;
text-align: center;
}That should move your menu to center. Let me know if you have any questions.
-
Thanks Charlie. It worked but the font has changed and it’s no longer in bold. Is there a way of making it stand out in bold?
-
Hmm. That’s strange, it shouldn’t have changed the text style at all, to add more bold to the text in your main menu add this text to your CSS Customization.
.nav-menu li a {
font-weight: bold;
}If that is not bold enough you can try doing something like font-weight:750; or font-weight: 900; That should make it plenty bold!
I hope this helps. Let me know if you have any more questions.
-
For the centering code, try this instead.
.main-navigation { text-align: center; width: 90%; }Also, we are not allowed to hide or edit the WordPress.com and theme footer credits per our Terms of Service (#1 Attribution). See the Frequently Asked Questions on the Custom Design support page for more information.
You are allowed to restyle the footer credits to better fit with your design as long as they remain readable, and you are also allowed to add text to the footer, such as a copyright statement. If you need help restyling, or adding to, the existing footer credits, let us know and we would be happy to help. Please remove this code from your custom CSS.
.site-footer { display: none; }
- The topic ‘Centre a menu’ is closed to new replies.