
- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Add shadow to elements with CSS
Use the CSS box-shadow property to add shadow to elements using CSS. You can try to run the following code to implement box-shadow property:
Example
<!DOCTYPE html> <html> <head> <style> h2 { box-shadow: 10px 10px; height: 50px; background-color: yellow; } </style> </head> <body> <h2>Heading Two</h2> <p>Above heading has shadow.<p> </body> </html>
- Related Questions & Answers
- Add shadow effects to elements with CSS
- Add shadow effects to text with CSS
- Add a color to the shadow with CSS
- Add a blur effect to the shadow with CSS
- Add more than one shadow to a text with CSS
- Shadow Filter with CSS
- Create an attenuated shadow with CSS
- Set Drop Shadow Effect with CSS
- CSS Box Shadow
- CSS Text Shadow
- CSS Shadow Effect
- Add a shadow to an element with Bootstrap 4
- Create white text with black shadow using CSS
- How to add shadow on text swift?
- Animate box-shadow CSS property
Advertisements