CSS for shadow effect of div
Copyright Notice: This article is an original work licensed under the CC 4.0 BY-NC-ND license.
If you wish to repost this article, please include the original source link and this copyright notice.
Source link: https://v2know.com/article/327
CSS code for shadow effect of div:
filter:progid:DXImageTransform.Microsoft.Shadow(color=#909090,direction=120,strength=4);
-moz-box-shadow: 2px 2px 10px #909090;
-webkit-box-shadow: 2px 2px 10px #909090;
box-shadow:2px 2px 10px #909090;
Demo:
See, this div has a shadow effect. When you use this thing, it's better to use it on the webpage with white background color.
This article was last edited at 2020-06-06 08:54:31