Submitted over 1 year ago
Order Summary Component using HTML and CSS Flexbox
@lavendar713
Design comparison
SolutionDesign
Community feedback
- @hitmorecodePosted over 1 year ago
Nice well done. Just two thing
- The background image is not filling the width of the page
- Start using
min-height
instead ofheight
body { font-family: Red Hat Display; display: flex; justify-content: center; align-items: center; margin: 0; min-height: 100vh; /* for good practice start using min height */ width: 100%; background-position: center top; background-attachment: fixed; background-repeat: no-repeat; background-image: url(pattern-background-desktop.svg); background-size: contain; /* add this line to fix the background image */ background-color: hsl(225, 100%, 94%); }
Marked as helpful1@lavendar713Posted over 1 year agoI just did as you said and I noticed the difference, before submitting my solution I tried to achieve this result but I couldn't. Thanks for the tip.
0
Please log in to post a comment
Log in with GitHubJoin 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