I have a list i want to add to a Try putting CSS Works for me also. Hope this is your structure: By default, it will be add one after another row: if you want to make it vertical, just add float left to li, give width and height, make sure that content will not break the width: I would add this to the LI's CSS
display: block
in the <li>
tags instead of the <ul>
li {
display: inline-block;
}
<ul>
<li>
<div ><img.. /><p>text</p></div>
</li>
<li>
<div ><img.. /><p>text</p></div>
</li>
<li>
<div ><img.. /><p>text</p></div>
</li>
</ul>
-----
-----
-----
| | |
| | |
li
{
display:block;
float:left;
width:300px; /* adjust */
height:150px; /* adjust */
padding: 5px; /*adjust*/
}
.list-item
{
float: left;
clear: left;
}