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

FrontendMentorChallenges-01

EROS 70

@OTOTHIS

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

Hassia Issah 50,670

@Hassiai

Posted

Replace <div class="container"> with the main tag, <h2> with p to fix the accessibility issue. click here for more on web-accessibility and semantic html

To center .container on the page using flexbox, add min-height: 100vh to the body instead of a height value.

Use rem or em as unit for the padding, margin, width and preferably rem for the font-size for more on CSS units click here

Hope am helpful.

Well done for completing this challenge. HAPPY CODING

0

EROS 70

@OTOTHIS

Posted

@Hassiai thank you so much <3

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