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

That’s why do you use `border-color: transparent` instead


That can make the image take up excessive space, or as the article says:

> ..., or an always-on transparent border that only changes colour when you hover – but those can interfere with other CSS rules


outline would seem to be the most appropriate solution here, unless I'm missing something.


Yes, you are right




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

Search: