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

Product preview card component - By Zamit

@eduardozamit

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


in this project I learned a little more about how to use @Media Queries and display flex.

If you have anything to add to my code, I'd love to hear your suggestions!

Community feedback

Hassia Issah 50,670

@Hassiai

Posted

@eduardozamit, how are you ? Well done for completing this challenge Use rem or em as unit for the padding, margin and width. To have a responsive page don't specify height for a class give it a width and a padding value: - .container{ width: 30rem; display: flex;} and .text{ width: 50%; padding: 1em} . the width of the .text is 50% of the width you gave to the .container To center your content in a page in the body declare the following body{ min-height: 100vh; display: flex; align-items: center; justify-content: center} or body{ min-height:100vh; display:grid; place-items: center;} After the media query, change the width of the .container and you can use display: block; in the .container. again, don't give the .text a height value, the padding should be enough. Aside from this, everything is great. Happy Coding

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