Topic: CSS Basics

Box shadow – CSS

Preview

To add a shadow to an element’s box using CSS, use the box-shadow property:

box-shadow: 1px 1px 1px 1px red;

To view this and the other 300+ tutorials on Simple Dev, sign up for a 10-day free trial.