I need to align a set of random images in the center of a div, following sample code:
HTML
<div class="divAlign">
<img src="teste.jpg">
<img src="teste2.jpg">
<img src="teste3.jpg">
<img src="teste4.jpg">
</div>
CSS
.divAlign {
width: 80%;
margin: 0 auto;
}
.divAlign img {
width: 60px;
}
If you have 4 pictures or 2 or 1 they have to be in the middle, all together ...