Get a free trial // Grow your CSS skills // Land your dream job

Show div based on menu var?

  • # February 3, 2013 at 10:04 am


    Does anyone know of any examples of showing specific divs based on a selected menu var from JS?

    Thanks in advance!

    # February 3, 2013 at 2:58 pm

    @TylerNYC Do you mean fading in divs based on a selected menu item or something similar?

    # February 3, 2013 at 3:05 pm

    I have a div inside on a slider. I will be splitting the divs for certain data variables. A simple solution would to have them set to display:none and display whichever menu item is selected but doing menu vars would be cleaner.

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

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed