Last Updated: February 25, 2016
·
279
· erikroyall

Borders with box-shadow

Borders can be created using box-shadow without breaking layout when using box-sizing: border-box.

The syntax for that is this:

box-shadow: 0 0 0 {width} {color};

Pro: Doesn't break layout
Con: Only solid borders, not descriptive