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

Home Forums CSS making a div appear by clicking a button

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #35512

    im working on making my first real website!
    I have a question. I wanted to know if it was possible using just css to have a button, that when clicked makes a div appear. this div is not connected at all to that button. so its not like a drop down menu with hover.

    unless… maybe i can make the div a child of the button and even if its in a separate place it will show via
    button a:hover div?


    You can do it using the pseudo-class :target but it doesn’t have great browser support yet.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.