I have a div with 3 images :
.main_block {
width: 800px;
}
.main_block: before, .main_block: after {
overflow: hidden;
content: "";
display: table;
}
.main_block: after {
clear: both;
}
.inner_block {
display: inline-block;
float: left;
padding-left: 20px
}
.inner_block img {
height: auto;
vertical-align: middle;
}
<div class="main_block">
<div class="inner_block">
<img src="img/features/1.png"/>
</div>
<div class="inner_block">
<img src="img/features/2.png"/>
</div>
<div class="inner_block">
<img src="img/features/3.png"/>
</div>
</div>
And it allways align to the left of the page, i tried to add position relative to the main div but it's still align to the left