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

Vanilla CSS and Flexbox

@samuelOlamiju

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

Fatlind Shehu 2,230

@fatlindshehu

Posted

Hi @samuelOlamiju

I think your component looks great, but the way you did the component it seems a little complicated, I would suggest a simpler solution:

  • Center the main component using display: flex; justify-content: center; align-items: center;
  • In desktop align IMG and the text ( title, description, and button) display:flex; By default the flex-direction is row
  • In mobile change flex-direction: column; to stack the IMG & text ( title, description, and button)

Keep it working & 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