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

The fourth digital value sets a stretch for the shadow.

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

By default, the size and shape of the shadow are the same as the element to which the shadow belongs. But the size of the shadow can be resized by stretching.

If the stretch is zero (or unspecified), the size of the shadow is the same as that of the element. A positive stretch makes the shadow larger than the element’s dimensions, and a negative stretch makes it smaller.