liveBook · Manning

Box-shadow

The CSS box-shadow property renders one or more shadows around or within an element’s box.

How 3 Manning books explain it

CSS in Depth, Second Edition

The CSS box-shadow property adds one or more shadows around an element's box.

How it is used
Adds visual depth, pressed-state feedback, flat-design accents, and border-like decoration to interface elements.
How deep it goes
Explains offsets, color, blur, spread, inset placement, layering, and state changes through progressively styled buttons.
Examples
Uses raised, flat, hybrid, inset, layered, blurred, and crisp shadows on progressively revised buttons.
What you can do after
Apply it via CSS to create controlled depth, softness, inset feedback, or crisp curved accents.

Read how CSS in Depth, Second Edition explains box-shadow →

Tiny CSS Projects

The CSS box-shadow property adds one or more shadows around or within an element's box.

How it is used
Creates depth, separation, and floating-card effects by shadowing element boxes.
How deep it goes
Explains offsets, blur, spread, color, inset, and bounding-box behavior, but does not detail the full grammar.
Examples
Demonstrates checkout cards, a profile card, and a virtual credit card with increasingly soft shadows.
What you can do after
Apply it via CSS to style containers and cards with controlled depth, separation, or inset shading.

Read how Tiny CSS Projects explains box-shadow →

Build a Website with ChatGPT

box-shadow is a CSS property that renders one or more shadows around an element's box.

How it is used
Adds a raised, drop-shadow effect to portfolio cards and other block-level page elements.
How deep it goes
Explains the declaration’s offsets, blur, transparency, and optional spread, but stops short of advanced shadow composition.
Examples
Uses portfolio cards, an 8px-by-8px shadow, 4px blur, and rgba transparency as concrete examples.
What you can do after
Apply it via CSS to add, tune, or remove shadows from cards and other block-level elements.

Read how Build a Website with ChatGPT explains box-shadow →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.