I need any image size to be centered inside the div:
Example below:
I'mhavingthiscsscodetodotheimagecircle:
.anuncio_dialogo{background-color:#FFF;width:128px;height:128px;margin-bottom:5px;}
TomakethecircleI'musinganotherCSSclass
.img-circle{border-radius:50%;}
TocallintheviewI'musing:
<imgsrc="<?=base_url() . $anuncio->imagemPrincipal?>" class="anuncio_dialogo circle">
Example of how everything is currently:
See that the first image is distorted because it is larger in width, and the others are a perfect square.