Design comparison
SolutionDesign
Community feedback
- @zohaibxJackiePosted 4 months ago
Hi, Really impressed by the code. I wanted to ask question, hope you will guide me, How did you add the box shadow in the buttons?
0@minalfatihPosted 4 months ago@zohaibxJackie
I use the ::before pseudo-element to make the outside box shadow.
But the box shadow inside the button, I just put a gray background for the button, then I put the border, and inside this button there is the icon 💁🏻♀️, so I put a white background for the icon and then I reduced its size, so the gray color appeared as a box shadow and this is how it appeared.
I hope this is clear and helps you💙
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