سؤال

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