Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

177
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda