You can use the CSS box-shadow property to apply the shadow effect (like Photoshop drop-shadow style) on block-level elements. The box-shadow can be applied on both inside and outside of the element's box. Try out the following example to see how it works:
Use the CSS
box-shadowpropertyYou can use the CSS
box-shadowproperty to apply the shadow effect (like Photoshop drop-shadow style) on block-level elements. The box-shadow can be applied on both inside and outside of the element's box. Try out the following example to see how it works:Output:
Box Shadow Inside
Box Shadow Outside
Box Shadow Outside - Side All
Box Shadow Outside - Bottom Only
Note: Experiment with the value to see how the box-shadow property works.
need an explanation for this answer? contact us directly to get an explanation for this answer