Grow your CSS skills. Land your dream job.

WP CSS nav:active

Add this to your css:

Code:
body.contact #nav li.contact {
visibility:visible;
}

That way your sub-menu will be visible only when you are on the contact page.
Note: I’m not sure if this works in IE7 (I don’t think it does) but I know this doesn’t work in IE6.

# June 10, 2010 at 4:24 pm

WOW!
Thanks man… I’ll give it a whirl and I WILL reply to let you know if it worked.

# June 11, 2010 at 3:43 pm

Would this work too?

Code:
body.contact #nav li.contact {
display:block;
}

O do you have to use visibility?

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".