Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
zooi
on Oct 23, 2024
|
parent
|
context
|
favorite
| on:
Two examples of hover styles on images
Use outline instead:
outline: solid 10px red;
Nearly identical to border, but without affecting layout at all.
maskros
on Oct 23, 2024
|
next
[–]
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
on Oct 23, 2024
|
prev
[–]
Why this over box-shadow?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: