Community Forums › Forums › Design Tips and Tricks › Primary/Secondary Navigation full screen width
This topic contains 8 replies, has 2 voices, and was last updated by Ronald 1 month, 3 weeks ago.
-
AuthorPosts
-
March 21, 2013 at 6:04 am #29902
Hi,
I would like my navigation menu to be full screen width and not have any white space left and right. What would have to be done in CSS to accomplish that? I’m using the Balance theme. The website is here:
http://www.japanseacupunctuur.com
Any help would be great. Thanks.
March 21, 2013 at 6:51 am #29918Find this in your theme’s stylesheet
.menu-primary, .menu-secondary {
background: url(“images/gray-texture.jpg”) repeat scroll 0 0 transparent;
border-bottom: 1px solid #DDDDDD;
border-top: 1px solid #DDDDDD;
}And change it to:
.menu-primary, .menu-secondary {
background: transparent none;
border:none;
}Then just apply the styles to the 100% width div block that holds that menu by adding this to your stylesheet:
#nav {
background: url(images/gray-texture.jpg) repeat scroll 0 0 transparent;
border-bottom: 1px solid #DDDDDD;
border-top: 1px solid #DDDDDD;
Twitter: @riavonentprises
March 21, 2013 at 8:38 am #29946Thank you very much for replying Riavon. Very new at this so could you give me more hints on where to add the last part? (#nav….)
March 21, 2013 at 8:40 am #29948You can add it anywhere you want to in your child theme (Balance) stylesheet style.css. Do you know how to access your stylesheet?
Twitter: @riavonentprises
March 21, 2013 at 9:18 am #29956Yes, that I know. Unfortunately the addition of the #nav part does not show the background and borders in the menu. (also added } after the suggested code)
March 21, 2013 at 9:57 am #29963Hi Ronald, I see that in my hurry to post, I didn’t get that closing bracket included in my copy/paste – apologies. Good catch.
I just checked your site again, and I do not see (using Firebug) that you’ve added #nav to your stylesheet. Did you add it then remove it?
#nav { background: url(images/gray-texture.jpg) repeat scroll 0 0 transparent; border-bottom: 1px solid #DDDDDD; border-top: 1px solid #DDDDDD; }
Twitter: @riavonentprises
March 21, 2013 at 11:01 am #29983Hi Riavon,
Really odd, but tried it on my test environment and nothing happened. Now tried it on the live site so you can have a look and it worked! Adjusted the margins and it looks pretty much like I wanted it to look.
Thanks a lot!
March 21, 2013 at 11:03 am #29984Hooray! Glad it worked for you. Like you, I prefer a full-width navigation bar, so I do that customization to almost every site I build.

Twitter: @riavonentprises
March 21, 2013 at 11:19 am #29989Very glad we have the same preference!
Couldn’t have figured this out myself. -
AuthorPosts
You must be logged in to reply to this topic.