0
I need any image size to be centered inside the div:
Example below:
I have this css code to make the image circle:
.anuncio_dialogo {
background-color: #FFF;
width: 128px;
height:128px;
margin-bottom: 5px;
}
To make the circle I’m using another CSS class
.img-circle {
border-radius: 50%;
}
To call in the view I’m using:
<img src="<?=base_url() . $anuncio->imagemPrincipal?>" class="anuncio_dialogo circle">
Example of how everything is currently:
Note that the first image is distorted because it is larger in width, the others being a perfect square.
The class in the image there, right? you put "Circle", but in css you put "img-Circle"
– LocalHost