Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

REST-Countries-API

#angular#sass/scss
Nada Sabry• 120

@NadaSabry

Desktop design screenshot for the REST Countries API with color theme switcher coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
  • API
4advanced
View challenge

Design comparison


SolutionDesign

Solution retrospective


I don't know how to make all images in card the same size

Community feedback

Roan Macmillan• 820

@RoanMacmillan

Posted

To make the images within the cards the same size you can consider wrapping the images in a container and doing something like this. Not entirely sure this is the best way to achieve this, but worked for me pretty well in this challenge.

.imgContainer {
  width: 264px;
  height: 160px;
  overflow: hidden;
}
.img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

Marked as helpful

1

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord