SpinTheMic
Pro

Interview practice question

Images look stretched or squashed

Frontend Engineering · HTML and CSS · Beginner

Images in a card grid look stretched or squashed. How do you fix it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Don't set both width and height without aspect handling.
  • object-fit: cover or contain.
  • aspect-ratio property.
  • width/height attributes for ratio.
  • Crop server-side if needed.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics