Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

179
Vistas
How to limit the size of the image in keeping the same behavior

I need to keep the size of the image on the right

Right now I have block sizes that change with the size of the image. Tried to set width: 400px and height: 350px, my page looked bad.

I need to stretch the picture

HTML (inside JS):

project.className = "col-md-4 col-sm-6 projectsBlock"
project.innerHTML = `<a href="project.html">
                     <h4 class="text-center">${name}</h4>
                     <img src="${image}" ></a>`

CSS:

@keyframes Appearance{
0%{opacity: 0; transform: translateY(-120px);}
100%{opacity: 1;}
}

.projectsBlock{
animation-name: Appearance;
animation-duration: 0.2s;
}

.projectsBlock > a{
text-decoration: none;
}

.projectsBlock > a > img{
border: solid 3px black;
border-radius: 10px;
width: 100%;
display: block;
}


.projectsBlock > a > h4{
color: white;
position: relative;
top: 40px;
text-shadow: 2px 2px 0 #000;
}
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda