order-summary-card using HTML CSS and Javascript.
Design comparison
Solution retrospective
Feedback and suggestions are welcomed.
Community feedback
- @DavidMorgadePosted over 2 years ago
Hello Satyam congrats on finishing the challenge!, good job!
I would like to give you a little advice with your permission.
For centering your card in the page, instead of using
margin
in the container, try it using flex-box directly on the body!, with just a few lines of code your card will be completely center, you will need to set up the height to 100vh and center it with flex like this:body { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; }
With this your card will be completely center without the needs of margins!
Hope my feedback helps you for future challenges!
Marked as helpful2@satyammjhaPosted over 2 years ago@DavidMorgade Thanks for the feedback. I will apply your suggestions to my upcoming challenges.
1 - @correlucasPosted over 2 years ago
👾Hello Satyam Jha, congratulations for your new solution!
You've a great solution here, the design is 100% like the reference, you need only to give some work around the responsiveness. To fix that you need to replace all
width
withmax-width
to allow the container to contract, the sections that are giving this issue is thecard
button
andpricing section
.You can also avoid to use ìd
let the
id` for forms and javascript and use only class for styling, this way you've your css with a standard for big project.Other thing you can improve is the shadow that is a bit evident, you reduce the opacity to create a smooth shadow, here's a good value for the shadow:
box-shadow: 0 40px 40px -20px rgb(13 48 189 / 15%);
👋 I hope this helps you and happy coding!
Marked as helpful1@satyammjhaPosted over 2 years ago@correlucas Thanks for your suggestions. I will work on these things.
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