Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Use outline instead:

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


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?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: