Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/06/2022, 20:07
Gloton
 
Fecha de Ingreso: octubre-2006
Mensajes: 227
Antigüedad: 17 años, 5 meses
Puntos: 3
Respuesta: Poner imagenes cuadradas en vez de rectangulas?

Podria ser algo asi

Código HTML:
<div class="cuadrado">
  <img class="content"src="https://i.imgur.com/9Q9pgmR.jpeg">
</div> 
Código HTML:
.cuadrado {
  position: relative;
  width: 50%;
}

.cuadrado:after {
  content: "";
  display: block;
  padding-bottom: 100%;
}

.content {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 5px;
}
__________________
[email protected]