I'm trying to create a list with 5 blocks, 4 230X140px and 1 of 250X280px, but they are not aligned side-by-side correctly, they look like this:
Iwouldlikeittolooklikethis:
codes:
HTML
<ul>
<li class="tile-high">0</li>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
</ul>
CSS
ul {
padding: 0;
margin: 0;
list-style: none;
}
ul li {
width: 230px;
height: 140px;
margin: 0;
border: 1px solid red;
background: #999;
overflow: hidden;
}
ul li.tile-high {
width: 250px;
height: 280px;
}
ul li:nth-child(odd) {
float: left;
}