Forums

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

Home Forums CSS A scrolling flexbox list works as expected, but then fails on a small change Reply To: A scrolling flexbox list works as expected, but then fails on a small change

#265056
vsajip
Participant

I made slight variant of the original pen, forked here:

https://codepen.io/vsajip/pen/aEVLMe

In this, the outer wrapper also has display: flex. It works as given, but if you uncomment out the div#description, the whole list no longer remains in the window. I can’t see why this is, as the div#list-row should just occupy the remaining vertical space in the window after the vertical space taken up by div#description has been accounted for.