Design comparison
SolutionDesign
Solution retrospective
I couldn't really connect the shadow of the right side box with the left one, I am not sure how to do it. I am also open to any other suggestions.
Community feedback
- @Neooo17Posted about 1 year ago
Wrap the summary section inside a div nd use CSS box-shadow property -
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2); /* Adjust the values as needed */
The box-shadow property takes four values: offset-x, offset-y, blur-radius, and color.
- ' offset-x and offset-y ' control the horizontal and vertical offset of the shadow from the element.
- ' blur-radius ' determines how blurry the shadow is.
- ' color ' sets the color of the shadow.
0 - @hitmorecodePosted about 1 year ago
Nice well done. The problem that you have with the shadow is easy to fix. If you wrap everything inside a div and add box-shadow to that div, it will work.
<div class="container"> <div class="card"> <div class="your-result"></div> <div class="summary"></div> </div> </div>
/* don't add width or height */ .card { border-radius: ****; box-shadow: *** *** *** ****; }
- You should change the breakpoint to 630px;
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