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

RohanIV 160

@RohanIV

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


What are you most proud of, and what would you do differently next time?

Got it to be responsive

What challenges did you encounter, and how did you overcome them?

Getting the desktop picture to one side. I put it in its own div

What specific areas of your project would you like help with?

Nothing specific. Any feedback /tips.

Community feedback

P

@nvalline

Posted

Hi,

Good job with this challenge! Using Flexbox is one way to make the card responsive, but another easy solution is using Grid.

In your media query for the .card-container you can using the following code to create two even columns.

display: grid; grid-template-columns: 1fr 1fr;

Flexbox and Grid are two powerful features that make layouts much easier. I hope this is helpful.

Marked as helpful

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