I want to create categories and two columns data under. Example:
- category1
-- item1 item2
-- item3 item4
-- item5 item6
- category2
-- item1 item2
-- item3 item4
My code:
css
ul{
width:210px;
}
li{
float:left;
margin:0 40px 40px 0;
}
li:nth-child(even){
margin-right:0;
}
html
<div>
<span>Category</span>
<ul>
<li>
<span>Test</span>
<input type="checkbox">
</li>
</ul>
</div>
I suggested this topic: How to display an unordered list in two columns? , but not good, because categories are in a bad position. Any solution?