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

Order summary card

@Jemeni11

Desktop design screenshot for the Order summary component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

Lucas 👾 104,420

@correlucas

Posted

Hello Emmanuel! Congratulations for your solution!

I've some advices for you:

1.I notice that your card is growing depending of the screen size, to fix this you should say the maximum width your card should have, you set the width with percentage, so the size of the card will depend of the screen size, if you set a value like max-width: 350px you can be sure that at least the card will have 350px (like in the design files)

main { max-width: 350px; }

2.Alignment, your card its also not aligned vertically, to fix this behavior you've to add flex to the body and set the alignments with align-items and justify-content, don't forget also to add height: 100vh; to the body to make sure it will display 100% of the viewport.

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

Check this tips and see if works fixing this few issues.

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