Jump to content
Sign in to follow this  
artsigns

Centre sub nav/secondary menu?

Recommended Posts

artsigns

Hi there Trying to add custom code in platform options to centre the secondary/sub nav menu?? Many thanks

Share this post


Link to post
Share on other sites
Kate

Do you have a link to your site, please? And, are you referring to the drop-down (sub-nav)? Or the secondary nav available on the posts page?

Share this post


Link to post
Share on other sites
kastelic
	#secondnav .content-pad {
	width:560px;
	margin:0 auto;
	}
	

Share this post


Link to post
Share on other sites
artsigns

Thankyou, it works ok for that page but not .. http://www.bowron-motorcare.co.uk/gallery/gallery-page-1 I just have to edit the width right? Also, how do I add padding-top to that to make a space between the secondnav and menu above? Then can I just use something like .secondnav{ font-size: 1.4em; color: #123456; background-color: #123456; } to change text color, background, size and maybe even font family etc Probably a.secondnave:link and a.secondnav:hover etc also ?? Many thanks again

Share this post


Link to post
Share on other sites
kastelic

View the source and look at the body tag to get the page id. Then you can put this:

	.page-id-543 #secondnav .content-pad { width:270px; }
	
And yes, your code looks right except #secondnav is an ID not a class. add
margin-top:10px

to move it down.

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  

×