I am trying to make it so list items in a column have equal height inside their list.
Here is what I have:
<ol>
<li>List item 1</li>
<li>List item 2</li>
<li>List item 3</li>
</ol>
ol {
min-height: 100%;
display: flex;
flex-direction: column;
}
ol li {
flex: 1;
}
I have tried: I have attempted to follow this tutorial: https://css-tricks.com/boxes-fill-height-dont-squish/ to no avail. I think the trouble has to do with having to set height: 100% to every single parent element all the way to html. Can that be right?
My list is deeply nested and setting all those heights breaks the layout. I would prefer to work only with fluid heights.
I have also tried: accomplishing this with just divs instead of a list. Still, no luck.
Any clues?