Hacker News new | ask | show | jobs
by zooi 601 days ago
Use outline instead:

  outline: solid 10px red;
Nearly identical to border, but without affecting layout at all.
2 comments

The CSS outline property is (was?) unreliable on Safari. Things like the border-radius don't affect the outline shape -- it's always square even if you to to create some Apple-patented rounded rectangles using border-radius.
Why this over box-shadow?