Jump to content
Sign in to follow this  
robbycornish

CSS for subnav children

Recommended Posts

robbycornish

What is the CSS to modify the position of the subnav? Here is the line for the main nav:

.main_nav {margin-left: 20px;}

I tried this for the subnav, but wouldn't work:

.main_nav li.children {margin-left: 20px;}

I'm just trying to move the subnav over a bit. Here's my site: http://robbycornish.com/wowsite/products/ Thanks!

Share this post


Link to post
Share on other sites
cmunns

` #subnav_row #subnav { margin-left: 20px; } `

Share this post


Link to post
Share on other sites
robbycornish

That worked! Thanks! I also added :

#subnav_row #subnav { margin-left: 25px; margin-top: -25px;}

but for some reason the "hit area" for the links are still at the original location (when i added the margin-top), how can i fix that?

Share this post


Link to post
Share on other sites
cmunns

add this: ` #primary-nav #subnav_row ul { position: relative; z-index: 99999; } `

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  

×