I'm trying surround a large box by smaller ones. All using css alone. and here is the fiddle - http://jsfiddle.net/7nya3/4/ There are couple of issues: There is an empty white block on bottom-left. last box in second row doesn't align properly.
Any handle to fix it ?
<style>
.container {
width:500px;
height:500px;
}
.small-box, .large-box {
width:100px;
float:left;
height:100px;
//-moz-box-sizing:border-box;
border:1px solid white;
background-color:green;
}
.large-box {
width:200px;
//float:left;
height:200px;
background-color:orange;
}
</style>
<body>
<div class="container">
<div class="small-box">x</div>
<div class="small-box">x</div>
<div class="small-box">x</div>
<div class="small-box">x</div>
<div class="small-box">x</div>
<div class="large-box">x</div>
<div class="small-box">x</div>
<div class="small-box">x</div>
<div class="small-box">x</div>
<div class="small-box">x</div>
<div class="small-box">x</div>
<div class="small-box">x</div>
</div>
</body>