Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
zooi
· 2y ago · 0 comments
Use outline instead:
outline: solid 10px red;
Nearly identical to border, but without affecting layout at all.
Comments
[–]
maskros
2y ago
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.
[–]
mikae1
2y ago
Why this over box-shadow?