I suppose this is a real simple problem, but I can't for the life of me find out why my floating divs have a whitespace below them. When inspecting, it turns out the whitespace are inside the divs, below the images.
html
<div class="container group">
<div class="marginfix-wrapper">
<div class="product">
<img src="http://dummyimage.com/194x128/ff0000/fff.png">
</div>
<div class="product">
<img src="http://dummyimage.com/194x128/ff0000/fff.png">
</div>
<div class="product">
<img src="http://dummyimage.com/194x128/ff0000/fff.png">
</div>
<div class="product">
<img src="http://dummyimage.com/194x128/ff0000/fff.png">
</div>
<div class="product">
<img src="http://dummyimage.com/194x128/ff0000/fff.png">
</div>
<div class="product">
<img src="http://dummyimage.com/194x128/ff0000/fff.png">
</div>
</div>
</div>
css
/* clearfix */
.group:after {
content:"";
display: table;
clear: both;
}
.container {
width: 602px;
background-color: gray;
}
.marginfix-wrapper {
margin-right: -10px;
}
.product {
float: left;
}
.product img {
width: 194px;
margin: 0 10px 0 0;
}