DEV Community

loading...

Discussion on: 5 CSS tips you didn't know you needed

Collapse
quantumsheep profile image
Nathanael Demacon

It seems like the same thing? :(

Thread Thread
equinusocio profile image
Mattia Astorino • Edited

No. The second snippet allows you to define a global box-sizing but let elements to inherit or change the behaviour

Thread Thread
quantumsheep profile image
Nathanael Demacon

Oh ok! So your way is better for sure!

Thread Thread
rinatvaliullov profile image
4rontender

It's old trick, man

box-sizing