I need to have some images displayed inline block but after the first image there's a strage offset that I can't remove, can someone explain why the images has this behaviour?
here's the demo: http://jsfiddle.net/czssvg3p/2/
<div class="finitures">
<div class="finiture-img">
<img src="http://placehold.it/68x50/990000/fff"></img>
</div>
<div class="finiture-img">
<img src="http://placehold.it/68x50/990000/fff"></img>
</div>
<div class="finiture-img">
<img src="http://placehold.it/68x50/990000/fff"></img>
</div>
<div class="finiture-img">
<img src="http://placehold.it/68x50/990000/fff"></img>
</div>
<div class="finiture-img">
<img src="http://placehold.it/68x50/990000/fff"></img>
</div>
<div class="finiture-img">
<img src="http://placehold.it/68x50/990000/fff"></img>
</div>
<div class="finiture-img">
<img src="http://placehold.it/68x50/990000/fff"></img>
</div>
<div class="finiture-img">
<img src="http://placehold.it/68x50/990000/fff"></img>
</div>
<div class="finiture-img">
<img src="http://placehold.it/68x50/990000/fff"></img>
</div>
<div class="finiture-img">
<img src="http://placehold.it/68x50/990000/fff"></img>
</div>
<div class="finiture-img">
<img src="http://placehold.it/68x50/990000/fff"></img>
</div>
<div class="finiture-img">
<img src="http://placehold.it/68x50/990000/fff"></img>
</div>
<div class="finiture-img">
<img src="http://placehold.it/68x50/990000/fff"></img>
</div>
</div>
css:
.finiture-img
{
display:inline-block;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
vertical-align:top;
margin-right:10px;
width:15%;
overflow:hidden;
clear:both;
}
.finiture-img img
{
border: 1px solid #898886;
margin-top:2px;
cursor:pointer;
width:100%;
overflow:hidden;
}
.finitures {
margin: 0;
border-bottom: 1px solid #9c9b9b;
padding-bottom: 20px;
width:100%;
margin-top:100px;
clear:both;
overflow:hidden;
}
.finitures:last-child
{
border-bottom: none;
}