CSS Live Demo: box-shadow Click the demo button below!
selector {
    box-shadow: /* value */
}
/*
 * <offset-x> (required): The horizontal distance along the x-axis.
 *                        Accepts positive, zero, and negative values.
 *                        Length values only (percentage values are not allowed).
 *
 * <offset-y> (required): The vertical distance along the y-axis.
 *                        Accepts positive, zero, and negative values.
 *                        Length values only (percentage values are not allowed).
 *
 * <blur-radius> (optional): The blur effect. Measured as the radius of the blur circle.
 *                           Accepts positive and zero values; negative values are not allowed.
 *                           The initial value is 0. Length values only (percentage values are not allowed).
 *
 * <spread-radius> (optional): The size expansion or contraction of the shadow.
 *                             Positive values expand and enlarge the shadow,
 *                             while negative values contract it.
 *
 * <color> (optional): The shadow color.
 *                     The initial value is currentcolor (the current text color).
 *
 * <inset> (optional): Changes the shadow from an outer shadow to an inner shadow.
 */

/* Note! <blur-radius> or <color> cannot appear between <offset-x> and <offset-y>. */
/* Note! <blur-radius> must immediately follow <offset-y>. */
/* Note! <spread-radius> must immediately follow <blur-radius>. */
/* Note! <color> cannot be placed between <offset-x>, <offset-y>, <blur-radius>, or <spread-radius>. */
/* Note! <inset> cannot be placed between <offset-x>, <offset-y>, <blur-radius>, or <spread-radius>. */

/* <offset-x> | <offset-y> | <blur-radius> | <color> */
box-shadow: 2px 3px 4px red;

/* <offset-x> | <offset-y> | <blur-radius> | <spread-radius> | <color> */
box-shadow: 2px 3px 4px 5px red;

/* <color> | <offset-x> | <offset-y> | <blur-radius> */
box-shadow: red 2px 0 4px;

/* <color> | <offset-x> | <offset-y> | <blur-radius> | <spread-radius> */
box-shadow: red 2px 0 4px 6px;

/* <offset-x> | <offset-y> | <color> */
box-shadow: 5px 5px #00a0e9;

/* <color> | <offset-x> | <offset-y> */
box-shadow: green 2px 5px;

/* <inset> | <offset-x> | <offset-y> | <blur-radius> | <color> */
box-shadow: inset 2px 3px 4px red;

/* <offset-x> | <offset-y> | <blur-radius> | <color> | <inset> */
box-shadow: 2px 3px 4px red inset;

/*
 * <offset-x> | <offset-y>
 * When <color>, <blur-radius>, and <spread-radius> are omitted,
 * their initial values are used.
 */
box-shadow: 5px 10px;

/*
 * Multiple shadows are added by separating each set of values with a comma (,).
 * Shadows are applied in order from front to back.
 * The first shadow appears on top.
 */
box-shadow: red 2px 0 4px, blue 4px 0 4px, green 6px 8px;

/* Initial value */
box-shadow: none; /* No shadow effect is applied */

/* Global values */
box-shadow: inherit;
box-shadow: initial;
box-shadow: revert;
box-shadow: revert-layer;
box-shadow: unset;
<style>
    .text {
        font-size: 70px;
        font-weight: 900;
        color: rgba(0, 0, 0, 0.4);
        text-shadow: 5px 5px red;
    }
</style>
<p class="text">TEXT</p>
Rendered Output
<style>
    .box {
        width: 200px;
        height: 100px;
        background-color: transparent;
        box-shadow: 10px 10px 10px yellowgreen;
    }
</style>
<div class="box">BOX</div>
Rendered Output
<style>
    .text {
        font-size: 70px;
        font-weight: 900;
        color: gold;
        margin: 0;
    }
    .text-2 {
        margin: 0;
        text-shadow: 0 -50px 10px rgba(0, 0, 0, 0.4);
    }
</style>
<p class="text text-1">TEXT 1</p>
<p class="text text-2">TEXT 2</p>
Rendered Output
<style>
    .box {
        width: 200px;
        height: 100px;
        background-color: gold;
    }
    .box-1 {
        margin-bottom: 25px;
    }
    .box-2 {
        box-shadow: 0 -50px 20px rgba(0, 0, 0, 0.7);
    }
</style>
<div class="box box-1">BOX 1</div>
<div class="box box-2">BOX 2</div>
Rendered Output
<style>
    .box {
        width: 200px;
        height: 100px;
        border-radius: 20px;
        background-color: gold;
        box-shadow: 10px 10px 15px;
    }
</style>
<div class="box"></div>
Rendered Output
<style>
    .box {
        max-width: 250px;
        height: 200px;
        border-radius: 15px;
        background-color: white;
        box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
        transition: box-shadow 0.2s;
    }
    .box:hover {
        box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
    }
</style>
<div class="box"></div>
Rendered Output Hover over the box!
<style>
    .box {
        max-width: 250px;
        height: 200px;
        border-radius: 15px;
        border: 1px solid;
        background-color: white;
        box-shadow: 7px 7px red,
                     14px 14px green,
                     21px 21px blue;
    }
</style>
<div class="box"></div>
Rendered Output