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

It's ridiculous

BBualdo 540

@BBualdo

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'm a little frustrated. In every, even the simplest one project, I meet issues.

  1. How to make the card right in the middle? Using Display Flex and Justify-Content on body works OK, but Align Items doesn't. I don't think that I must use margin-top.
  2. Why my image doesn't fit to main? Logically when I set its height to 100% it should cover the white box (main) but it doesn't. Everytime I have no problems with mobile design, but as soon as I swap to desktop it changes to a nightmare. I know what to do in theory but it just doesn't work.

Thanks for help.

Community feedback

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