Interactive online courses HTML Academy
2026-03-09 14:12 Diff

We’ve created a simple shadow. Now let’s figure out the syntax for the property. Here it is:

box-shadow: [inset] — internal 5px <— x-offset 10px — y-offset [2px] — feathering [3px] — stretch [red]; — color

Keyword inset, stretch, feathering, and color are optional. The order of the numerical values is important. The first digital value means horizontal offset.

The horizontal offset can be positive or negative.