treehouse : what would you like to learn today?
Web Design Web Development iOS Development

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

  • How can you make a menu that when you hover over a ul or div that the content about it changes??
  • 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
  • And when CSS4 comes out, you'll be able to do it in pure CSS, but for now is JavaScript.