Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

173
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!