Grow your CSS skills. Land your dream job.

How can you make a menu that when you hover over a ul or div that the content about it changes??

  • # August 30, 2012 at 1:39 pm

    How can you make a menu that when you hover over a ul or div that the content about it changes??

    # August 30, 2012 at 1:41 pm

    You could use javascript and css to do this. Add the extra content you want, hide it with display:none; in the CSS for default. Then in JavaScript, set it to change it to display:block; when hovering over a particular div/id/class

    # August 30, 2012 at 3:10 pm

    And when CSS4 comes out, you’ll be able to do it in pure CSS, but for now is JavaScript.

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

You must be logged in to reply to this topic.

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