How to make dependent blocks in accordion layout?

  • 0
    Good day.
    How to implement the dependence of the blocks from each other, so that when the accordion opens, the lower blocks (in this case, the text Gallery and the picture) move down?
    Either I am missing something in the layout (I tried with position: relative, it didn’t work, for some reason), or somehow write in JS that +1 is an open panel and a block shift by a certain number of pixels?
    I ask for help.
    JavaScript Ethan Burch, Aug 7, 2019

  • 1 Answers
  • 0
    In CSS, in .tabs-left, replace

    height: 380px;


    min-height: 380px;
    Aiden McDonald

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