re: My favorite CSS hack VIEW POST


border:1px solid red is the console.log for me in css 🤣


border-box is slightly better since that does not affect the box-sizes. And using a weird color like light-green works usually best for me.


outline: 1px solid #f00 is my go-to for this since the outline doesn't affect size, and #f00 is just kinda fun to type instead of red :)


Borders will potentially change the layout of some elements. Use outline instead!

code of conduct - report abuse