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

Home Forums CSS Unable to scroll in flex container Reply To: Unable to scroll in flex container


Hey sebosek,

I came across the same PS(problem statement)

  1. Every-time the content is loaded it should be at bottom
  2. It should be able to scroll

To solve these 2 things you can do this:-

mainly 3 step which can be modified in your code

  1. Add one more


div> inside the


div> and below



  1. Give .wrapper one more extra css property overflow-y: auto;
  2. Finally give the css property of flex: 0 0 auto; to .main-content and flex: 1 1 auto; to .empty-panel;

Let me know if you need in-depth discussion on this …. have a nice day

for the preview you can check here