Community Forums › Forums › Archived Forums › Design Tips and Tricks › Reduce gap between secondary navigation menu and header
Tagged: header, Metro Pro, Secondary Navigation menu
- This topic has 7 replies, 2 voices, and was last updated 11 years, 10 months ago by
AnitaC.
-
AuthorPosts
-
August 21, 2014 at 6:11 am #120187
nomad_jess
MemberHi there,
I am trying to reduce the gap between my secondary navigation menu and header image to increase the amount of content I have "above the fold". I have already cropped the image to eliminate unnecessary white space in the image itself. Not having much luck locating the necessary code to tweak this.
Can anyone be of assistance?
Many thanks in advance,
Jess
http://notesofnomads.comAugust 21, 2014 at 6:30 am #120189AnitaC
KeymasterLook for this in your style sheet - change 32px to 0 (zero)
.site-container { background-color: #fff; margin: 32px auto; max-width: 1140px; overflow: hidden; padding: 36px; }That will bring it up.
Need help with customization or troubleshooting? Reach out to me.
August 21, 2014 at 6:49 am #120195nomad_jess
MemberHi Anita,
Thanks so much! This has brought it up a little, but I'd still like to bring it up more.
Is there some code related to the secondary navigation menu perhaps that is causing the additional padding?
Many thanks in advance!
August 21, 2014 at 6:53 am #120196AnitaC
KeymasterThe secondary navigation is as wide as it should be. In the code above, you can reduce the top padding. Maybe change the code to this:
.site-container { background-color: #fff; margin: 0 auto; max-width: 1140px; overflow: hidden; padding: 10px 36px 36px; }
Need help with customization or troubleshooting? Reach out to me.
August 21, 2014 at 7:04 am #120197nomad_jess
MemberThanks Anita! That worked a treat!
May I inconvenience you with one other thing here? Or should I start a new thread?
I'm wanting to reduce the gap between the header and primary navigation too. Could you please point me in the direction of the code that affects this?
Thanks so much!
August 21, 2014 at 7:11 am #120198AnitaC
KeymasterYou don't have much to work with there or it will become smooshed, but you can reduce the padding here:
.site-inner { clear: both; padding-top: 36px; }
Need help with customization or troubleshooting? Reach out to me.
August 21, 2014 at 7:28 am #120200nomad_jess
MemberHi Anita,
Thanks so much! This helped but unfortunately didn't adjust it as much as I would have liked.
In the end, I was able to get the result I wanted by changing this code:
.site-title {
font-family: 'Oswald', sans-serif;
font-size: 48px;
line-height: 1;
margin: 0 0 16px;
text-transform: uppercase;to
.site-title {
font-family: 'Oswald', sans-serif;
font-size: 48px;
line-height: 1;
margin: 0 0 0px;
text-transform: uppercase;
}Thanks so much for all your wonderful help, Anita! Much appreciated!
August 21, 2014 at 7:36 am #120203 -
AuthorPosts
- The topic ‘Reduce gap between secondary navigation menu and header’ is closed to new replies.