I am attempting to create a layout where list items within a column have equal heights.
Below is my current code:
<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 following a tutorial at https://css-tricks.com/boxes-fill-height-dont-squish/, but have not been successful. It seems that the issue may involve setting height: 100% for each parent element up to html. Is this correct?
My list is complex, and setting all those heights disrupts the layout. I prefer to work with fluid heights only.
In addition, I have also attempted to achieve this using divs instead of a list, but without success.
Any suggestions or solutions would be greatly appreciated!