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
Request path contains unescaped characters
Not Found

Submitted

Order summary component

@JoshuaMeeks

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

Hassia Issah 50,670

@Hassiai

Posted

There is no need to give the body and html a width and height values.

To center .card on the page using flexbox, replace the height in the main with min-height: 100vh.

You forgot to give the body a background-image with a background-size of contain ana background-repeat of no-repeat.

For a responsive content, replace the width in .card with max-width and increase its value for it to be equivalent to the design. max-width: 432px which is 27rem/em

In the media query you only have to change the background-image of the body.

the background-images is in the images folder in the zip folder you downloaded. Use relative units like rem or em as unit for the padding, margin, width values and preferably rem for the font-size values, instead of using px which is an absolute unit. For more on CSS units Click here

Hope am helpful.

Well done for completing this challenge. HAPPY CODING

Marked as helpful

0

@JoshuaMeeks

Posted

@Hassiai Thank you Hassia

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