Community Forums › Forums › Archived Forums › Design Tips and Tricks › How to center primary nav bar but leave secondary nav bar full-width in Prose
Tagged: Prose
- This topic has 6 replies, 2 voices, and was last updated 11 years, 5 months ago by
Jamie.
-
AuthorPosts
-
July 12, 2014 at 7:46 am #114017
Jamie
MemberHi, I am using Prose. Up until this point, I have only been using the secondary nav bar below the header. Now I want to add in the primary nav bar above the header as well, and put a few menu buttons up there.
My secondary nav bar is full-width and I want to leave it that way. Someone from this forum provided some custom code awhile back to make that happen. But the problem is that now, when I add the primary nav bar, it also becomes full-width, and my menu buttons show up all the way over to the left side of the screen (in the white space - not over the content area).
How do I change the custom code to make the primary nav bar appear in its normal spot, left-justified over the wrap area only, and leave the secondary nav bar full-width?
http://www.fromhispresence.com is my link.
http://www.fromhispresence.com
Thank you so much!July 12, 2014 at 12:22 pm #114046Brad Dalton
ParticipantJuly 12, 2014 at 4:44 pm #114078Jamie
MemberThank you. I just tried it. It didn't work, unfortunately.
July 12, 2014 at 5:29 pm #114084Jamie
MemberThis is the custom code I already have, if it helps:
/***full-width subnav***/
body {
width: 100%;
}
#subnav ul {
float: none;
margin: 0 auto;
width: 970px;
}
#footer {
width: 970px;
}July 13, 2014 at 2:47 am #114120Brad Dalton
ParticipantWorks for me. I use it on my own site.
I see you have minified your CSS using a plugin which is why it may not be updating and makes it hard to test with Firebug.
Also note the CSS in the post i linked to works on HTML 5 themes and not the old themes running XHTML markup.
In your case try:
#nav { text-align: center; }After you turn off minification.
July 13, 2014 at 6:21 pm #114183Jamie
MemberOk, I disabled minification and added the code. I tried it at the top of the Custom Code field and at the end of the other nav bar code. But neither place fixed it. Should I move it somewhere else?
Thanks for your help!July 14, 2014 at 6:37 pm #114323Jamie
MemberHey! I think I did it! I used different code, and I know NOTHING about coding anything, but it's sitting back in its proper place with this code (I copied the code you had above and tweaked it a bit based on the custom code I already had):
#nav {
float: none;
margin: 0 auto;
width: 970px;
}
The only problem is that now it added too much white margin between the primary nav bar line and the Hello Bar. Do you happen to know why the header and nav bar would have moved down, and how I can move them back up?
Thank you so much! 🙂 -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.