Main Nav and Footer Width
-
Is there a way to make the Main Navigation and Footer widths the same width as the content plus sidebar?
So, that there is background on the left and right?Please view http://www.redthruviolet.com/WPDemo/.
Thank you.
-
Hey there redthruviolet,
You should be able to achieve this with some custom CSS. Please try adding the following CSS code in the style.css file of your child theme or if your theme doesn’t have custom CSS tab add it in your site using the following plugin:
http://wordpress.org/plugins/simple-custom-css
div#sidebar-footer, footer#colophon, header#masthead { width: 1170px; margin-right: auto; margin-left: auto; padding-left: 15px; padding-right: 15px; }This should restrict footer and header to the same width as the content area so your background can be visible.
Hope this helps 🙂
Cheers,
BojanBojan:
Thank you for the CSS!
I tried it, and I’m almost there – right now the Main Nav has a left and right margin that I cannot find how to erase, so that it lines up with the content and side bar left and right edges:
http://www.redthruviolet.com/WPDemo/
Any suggestions?
Hey again redthruviolet,
Please try adding the following as well:
@media (min-width: 1024px) { #site-navigation .container { width: 640px; } nav#site-navigation { width: 630px; margin-left: auto; margin-right: auto; float: none; } }This should be the result http://screencast.com/t/7P7UMhRswpS.
Hope this helps 🙂
Cheers,
BojanBojan:
Thanks so much for your terrific support, and the picture, too!
I added your code, and then edited it so that the main nav is as wide as the content and sidebar:
http://www.redthruviolet.com/WPDemo/
So, it works!
We are working with different themes, so, hopefully when you go to the above link, Amadeus is still the active one. If not, let me know, and I’ll make it the active one.
Hey again redthruviolet,
I’m not sure from your comment if there is anything else you need me to help you with regarding this so if there is something else please let me know 🙂
Cheers,
Bojan
The topic ‘Main Nav and Footer Width’ is closed to new replies.
