Interactive online courses HTML Academy
2026-03-09 10:56 Diff

You can create various interesting effects using multiple shadows.

For example, you can simulate multiple borders around an element. To do this, you need to add several shadows to the element with a positive stretch and zero offsets and feathering.

There is just one trick here. Real borders increase the size of the element, but shadow borders do not. Therefore, you need to ensure that there is enough free space around the element. Otherwise, it may overlap adjacent elements.