Demo - how to stretch li elements to parent container height, so they fit all in ul with appropriate height? I need smth like that:

expected result

有帮助吗?

解决方案

ul { display: table;}
li { display: table-row;}

其他提示

Include one line inside the block of stylesheets for li

height: 25%;
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top