Demo - how to stretch li
elements to parent container height, so they fit all in ul
with appropriate height?
I need smth like that:
Asked
Active
Viewed 2,955 times
0

Tetsujin no Oni
- 7,300
- 2
- 29
- 46

Alex Ivasyuv
- 8,585
- 17
- 72
- 90
-
you want to get ul height and fetch all ul? – Selvamani Oct 11 '12 at 10:57
-
Does it have to be a css only solution or can js/jquery be used? – boz Oct 11 '12 at 10:58
2 Answers
1
ul { display: table;}
li { display: table-row;}

Caelea
- 2,318
- 15
- 22
-
could you please edit http://jsfiddle.net/zP97v/ to demonstrate how it works with your solution regarding to provided example. Thanks! – Alex Ivasyuv Oct 11 '12 at 11:01
-
Thanks, almost as should be. But, changing width for ul make effect for li also, and second - margin doesn't works for li – Alex Ivasyuv Oct 11 '12 at 11:05
-
How margin doesn't work for li? I did not entirely changed the width for ul, that is a min-width. – Caelea Oct 11 '12 at 11:08
-
@AlexIvasyuv can you tell me the context in witch you wish to use this list, so I can find a solution and help you furthermore? A printscreen will work. – Caelea Oct 11 '12 at 14:20
-