How do I make a dropdown list that pushes the bottom elements away?

  • 0
    How to make a menu, when you click on any element, it slides out and moves everything from the bottom. If not clear, see the pictures from paint.

    JavaScript Willow Shah, Jan 1, 2020

  • 4 Answers
  • 0

  • 0
    Called accordion


    Gabriella Gibbs

  • 0
    Make the dropdown menu height 0px, overflow: hidden, when clicked, increase the height to the default size
    Marilyn Evans

  • 0
    Simple option:


Your Answer
To place the code, please use CodePen or similar tool. Thanks you!