0

I have a container with some div's containing images. All these have the same height, but the width can change.

I am tring to center them like on the aligner1.png but I have a display like aligner0.png with this kind of code :

.acBox {
    float: left;
    margin-top:30px;
    margin-left:auto;
    margin-right:auto;
}

.acsample {
    height:180px;
    width:auto;
}


<div>
    <div class="acBox">
        <img src="image1.png" alt="" class="acsample" >
    </div>
    <div class="acBox">
        <img src="image2.png" alt="" class="acsample" >
    </div>
    <div class="acBox">
        <img src="image3.png" alt="" class="acsample" >
    </div>
    <div class="acBox">
        <img src="image4.png" alt="" class="acsample" >
    </div>
    ..
</div>

Does please someone know the solution ?

But how to put my pics with the question ?

amir
  • 31
  • 4

0 Answers0