Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

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

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #39584
    djrolstad
    Participant

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

    #108769

    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

    #108722
    Billy
    Participant

    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)
  • The forum ‘CSS’ is closed to new topics and replies.