Jump to content
Sign in to follow this  
jason

Multicolored navigation bar (iBlog)

Recommended Posts

jason

Is it possible to have the navigation bar that looks similar to this: mP2R9.png I know I could mess around with the image, but as I add new pages, I don't want to have to recreate the image. So perfect world, when I add a new page to the navigation bar, it would pick the next color as the background. www.vitallivingcentral.com

Share this post


Link to post
Share on other sites
cmunns

If you don't have many nav items i would do it manually as it is nearly as fast, but using css you would do something like this for auto coloring every third ` #nav ul li:nth-child(3n+3) { background:url("../images/navdivider-blue.png") no-repeat scroll right -1px transparent; } ` http://css-tricks.com/how-nth-child-works/

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  

×