HTML and CSS order summary component with media query
Design comparison
Solution retrospective
Starting to get used to the patterns.. any feedback is welcome!
Community feedback
- @correlucasPosted about 2 years ago
👾Hello Samuele, Congratulations on completing this challenge!
I saw your preview site and I liked a lot the work you’ve done here, it's almost complete, I’ve some suggestions you can consider applying to your code:
1.The value you’ve used for the shadow make it too much dark and strong. To improve your box-shadow, you’ve to have in mind two things that make a good shadow,
blur
andlow opacity
for smooth shadows. To improve your current shadow, decrease theopacity
and increase theblur
, try this value instead:box-shadow: 12px 7px 20px 6px rgb(57 75 84 / 8%);
If you’re not familiar to box-shadow you can use this site to create the shadow design and then just drop the code into the CSS: https://html-css-js.com/css/generator/box-shadow/
2.To improve your component overall responsiveness, something you can do its to create a media query to save space in the
pricing section
to make each information in a different row. Here’s the code for this media query.@media (max-width: 350px) { section { display: flex; flex-direction: column; align-items: center; background-color: var(--Very-pale-blue); margin: 1.5rem 2rem; padding: 1.25rem; border-radius: 0.7rem; } }
✌️ I hope this helps you and happy coding!
Marked as helpful0@frasconi00Posted about 2 years ago@correlucas Thank you so much, I really needed some tips for the shadow!
1
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