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

Mobile first using HTML and CSS only

Senay 150

@Senay-Fekadu2

Desktop design screenshot for the Stats preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


I had problem syncing the image and the div containing it when reducing the size of the view port. can you help me point out my mistake ?

Community feedback

Joseph 770

@Jos02378

Posted

Hey @Senay-Fekadu2, good job on this solution!

Some feedback for you:

  1. You can use the property height: 100% and object-fit: cover so the image fills the container and it is not squeezed when reducing the size of the viewport. Also, play with the min-width so the image container is not too small.

  2. You can use text-transform: uppercase to capitalized your text in CSS instead of explicitly typing them in the HTML file.

  3. You can try to follow a CSS convention called BEM. You can watch this video for more information Link to video.

I hope this helps, good luck!

Marked as helpful

1

Senay 150

@Senay-Fekadu2

Posted

@Jos02378 Thankyou for the feed back I will check it and get back to you

0

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