Jump to content
Sign in to follow this  
davecfm

Padding CSS for header

Recommended Posts

davecfm

Hello, I've tried numerous selectors to reduce the padding between my header an navigation bar and above the header image. No luck. I'm also trying to center my navigation bar. Is this done with width and if so, could you explain? www.farekitchen.com Thanks, you guys are great. Dave

Share this post


Link to post
Share on other sites
catrina

Please add the following CSS to your settings

div.branding_wrap {margin-top: -23px;}
	#primary-nav {margin-top: -20px; margin: auto 0px;}
	


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
davecfm

Hi Catrina, The code worked for getting the space removed above the header but didnt work for the space in-between the header and the navigation. The nav code did not work either. Nuts. Side note: Should I be clicking "reject" in this situation? It seems so negative. Dave

Share this post


Link to post
Share on other sites
davecfm

Hi Catrina, Managed to get the space in-between the header and the nav bar reduced. Yeah. Still a mystery on getting the nav centered. Thanks

Share this post


Link to post
Share on other sites
Rob

Actually Dave, Catrina's correct, but her CSS code may require a bit of tweaking. Try adjusting the negative value one or two in either direction (-21 or -19) in #primary-nav {margin-top: -20px; margin: auto 0px;} also, your header image appears to have a drop shadow that's not part of the image itself. Do you have a plugin or CSS doing that? It might be pushing your navigation down a few pixels to ensure that the shadow shows.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
davecfm

Ranglone, Is this code for centering the navigation bar? I figured out the padding/ margin below the header and above the nav bar. I used css for the drop shadow. Thanks, Dave *this comment may appear twice. something went wrong with the "post comment."

Share this post


Link to post
Share on other sites
Jenny

Hi Dave. You can try adding this to your custom CSS to center the nav bar text.

#primary-nav ul.main-nav {margin-left: 25%;}


Jenny :: Web designer at Simple Mama (follow me at @simplemamacom)

Check out Share Me, a social sharing add-on for DMS that is super simple to set up.

Share this post


Link to post
Share on other sites
davecfm

Simple_Mama, That worked great. Now I know %'s are something to toy with in CSS. Thank you! Dave

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×