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 component css flexbox html

Ruben 250

@RUBBOSS

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 for <div class="card"> in the html file in the css replace the main with the body . body { display: flex; justify-content: center; align-items: center; background-image: url(./images/pattern-background-desktop.svg); } To center a content on a page, add min-height:100vh; to the body and remove the height value. Add background-repeat: no-repeat; background-size: contain and background-color value.

give the main a width value: main{width:400px;} Give .preview a padding instead of giving the main a height value.

In the media query give the main a width of 80%, there is no need to give the .preview a height value you can increase or decrease the padding value for .preview.

Hope am helpful 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