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

Display flex, flex grid and media querie

@IgorSouzDEV

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


I only had difficulty positioning the image within the div. I already know how to work well with responsiveness.

Community feedback

Charles 170

@cacti00

Posted

Hi @IgorSouzDev

So an easy way to display your image and content size by side to share the same width is to use grid, you could do something like this in your .container class:

display:grid grid-template-columns: repeat(2, 1fr); for desktop view and grid-template-columns: 1fr; for mobile view

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