I use the responsive Skeleton framework (boilerplate) for my website (you can get it from here: http://www.getskeleton.com/).
I have <ul>
list column with different height. To clear nested column, the CSS says that I need to put the .clearfix
class to the parent element.
I already tried to put the class but it won't clear the nested columns. Since I am using <ul>
list items and I cannot put or inside the <ul>
element.
Is there any solution for this?
My html code:
<ul class="container">
<li class="one third columns alpha">a</li>
<li class="one third columns">b</li>
<li class="one third columns omega">c</li>
<li class="two thirds columns alpha">d</li>
<li class="one third columns omega">e</li>
</ul>
In Skeleton CSS the first column has 500px height, then the (d) and (e) column it should be moved to the bottom / second row, or in other words I need to clear the nested columns.
I'm thinking to put another empty <li class="clear"></li>
anytime I move to another row and it works but I'm looking for alternative solution. Something more proper than adding an empty <li>
Thank you.
` and `- `s ?
– sulfureous Jul 26 '13 at 06:34