Use this code below
border:2px soild #eee; margin: 15px 15px; -webkit-box-shadow: 2px 3px 8px #eee; -moz-box-shadow: 2px 3px 8px #eee; box-shadow: 2px 3px 8px #eee;
Explanation: -
box-shadow requires you to set horizontal & vertical offset, then you can optionally set the blur and color, you can also choose to insert a shadow instead of the standard one. Color can be defined as hex or rgba .
box-shadow : insert / exit h-offset v-offset blur color offset;
Explanation of meanings ...
inset / outset - whether the shadow is inside or outside the field. If it is not specified, it will default to its original position.
h-offset - horizontal shadow offset (required)
v-offset - the vertical offset of the shadow (required)
blur - as they say, blur the shadow
Distribution - moves the shadow from the box equally on all sides. A positive value causes the shadow to expand, a negative value causes it to contract. Although this value is not often used, it is useful with several shadows.
color - as they say, the color of the shadow
Using box-shadow: 2px 3px 8px #eee; gray shadow with 2px horizontal projection, vertical with 3px and 8px blur
Narendra Reddy Jan 04 '19 at 7:34 am 2019-01-04 07:34
source share