DEV Community

Discussion on: My favorite CSS hack

Collapse
 
asimdahall profile image
Asim Dahal

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

Collapse
 
abhishekcghosh profile image
Abhishek Ghosh

It's like somebody read my mind! :D

Collapse
 
evertalbers profile image
Evert Albers

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.

Collapse
 
lopis profile image
Joao L.

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

Collapse
 
guesshimself profile image
Eric Guess

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 :)