Here is an easier way to achieve that.
HTML
<div class="outer_container">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
CSS
.outer_container{
width: 330px;
height: 600px;
}
.outer_container div{
width: 100px;
height: 100px;
outline: 1px solid;
float: left;
margin: 5px;
}
Here is how it displayed according to above code snippet
No comments:
Post a Comment