CSS

CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise

CSS3

CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS box shadow Property

CSS box-shadow Property

 

 

The box-shadow property is used to add one or more shadows to an element.

 

Default Value:-

 

Its default value is none.

 

Syntax:-

 

Its syntax is:- box-shadow: none | h-offset v-offset blur spread color | inset | initial | inherit;

 

Further Explanation:-

 

Value Description
none No shadow is displayed
h-offset Required. The horizontal offset of the shadow.
v-offset Required. The vertical offset of the shadow.
blur Optional. The blur radius.
spread Optional. The spread radius.
color Optional. The color of the shadow.
inset Optional. Changes the shadow from an outer shadow (outset) to an inner shadow
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS Properties

All Sections related to CSS