Order Summary Component Solution using Css flexbox

Please log in to post a comment
Log in with GitHubCommunity feedback
- @emestabillo
Hi @Jeth0214, great job looks really close to the design. A few things:
-
Remove all margin-top from
main
. Addmin-height: 100vh
instead to center the component on the screen -
On mobile, the 'Change' link is touching the side of the enclosing div. If you reduce the padding around
card__body
, the issue would resolve itself. -
The box-shadow looks a tad heavy
I think there was a lot of EXACT measuring involved since the screenshot looks pretty much flushed with the dimensions of the card in the design. While this practice is ok (within reason), I highly suggest focusing more on making your site fluid for different screen widths instead of how it would look against the screenshot. Imagine how frustrating it will be if you're given a multi-page project :-)
Hope this helps and thanks for tagging me on Slack!
Marked as helpful -
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