News for hackers. Stuff that matters.
Re:Two examples of hover styles on images by zooi on Wednesday October 23, 2024 @04:57AM (#41923175)
Use outline instead:

  outline: solid 10px red;
Nearly identical to border, but without affecting layout at all.
Re:Two examples of hover styles on images by maskros on Wednesday October 23, 2024 @06:18AM (#41923578)
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.
Re:Two examples of hover styles on images by mikae1 on Wednesday October 23, 2024 @07:45AM (#41923969)
Why this over box-shadow?