CSS stretch elements to fit container height
-
06-07-2021 - |
Frage
Demo - how to stretch li
elements to parent container height, so they fit all in ul
with appropriate height?
I need smth like that:
Lösung
ul { display: table;}
li { display: table-row;}
Andere Tipps
Include one line inside the block of stylesheets for li
height: 25%;
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow