Gulafsan Shaheen
Published in : 2022-03-01
I want my buttons to give an engraved look using CSS style sheet. I've googled a bit but didn't find anything relevent.
What CSS I would need to use to applyDropShadow effects to the button?
Join our community and get the chance to solve your code issues & share your opinion with us
Sign up Now
Rakshit Date : 2022-03-01
Best answers
34
Best answers
34
All you need is Box-Shadow css property. You can create CSS dynamically by setting up left/right shadow, top/bottom shadow, spread, blur and opacity.
After adding the above css to your button, it will look something like this, You can adjust the arguments given in the css classes in your accordance!
In addition,
If you want to engrave text over the button, you can use style sheets added in this thread.
Hope you get your solution with this trick.
Gulafsan Shaheen Date : 2022-03-01
Thanks a lot! :)
Shilpa Date : 2022-03-01
Best answers
10
Best answers
10
You can add button effects using box-shadow CSS. You can see an example here.
Here I added CSS file and the HTML code to demonstrate box-shadow property in css.
Here is HTML code,
Here is CSS code,
Live demo
Hope it will be helpful for you.
Gulafsan Shaheen Date : 2022-03-01
Thanks a bunch!
Shilpa Date : 2022-03-01
Your welcome!