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 created with HTML, CSS, and Flexbox

Darkpoetā€¢ 110

@Ojay16

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?

I am most proud of how I was able to execute a responsive design. Next time, I would focus on refining my Flexbox techniques to make the design process smoother and more efficient.

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

One challenge I encountered was executing a responsive design. I overcame this by leveraging my knowledge of Flexbox to create a layout that adapts smoothly to different screen sizes. Through careful testing and adjustments, I was able to ensure a consistent user experience across all devices.

Community feedback

Daniel šŸ›øā€¢ 44,230

@danielmrz-dev

Posted

Hey there! šŸ™‹šŸ½ā€ā™‚ļø

Congrats on completing the challenge! āœ…

Your project looks fantastic!

Here's a tip to make it even better:

Using margin and/or padding isn't always the best way to center an element. Try this super efficient method to center an element vertically and horizontally:

šŸ“Œ Apply this CSS to the body (skip position or margins to make it work correctly):

body {
    min-height: 100vh;
    display: flex; 
    justify-content: center;
    align-items: center;
}

Hope this helps!

Keep up the great work!

0

Darkpoetā€¢ 110

@Ojay16

Posted

@danielmrz-dev Thanks for the feedback but I did do that to my body element in my css

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