list - Spread out elements over a fixed width div? -
Is there a way to spread elements (like:
div?
EG: I have 3 elements, so they get 30%
EG: I have 5 elements, so they get 20%
Is it the most What's the best way?
< Code> html, sh Litter {padding: 0; margin: 0;} Ul.flatList {list-style: none; margin: 0; padding: 0;} Ul.flatList li {width: 33.3%; display: inline; swim left; text align: Center;}
& lt; ul class = "flatList"> In the middle of Right ;
Comments
Post a Comment