DEV Community

Cover image for 1 Weird CSS Property You Should Use In Your Next Project

1 Weird CSS Property You Should Use In Your Next Project

Abdisalan on February 21, 2020

This article was originally published on my blog First, we need to familiarize you with the CSS Box Model. Skip to the quiz in the next sect...
Collapse
 
jonlehman profile image
Jon Lehman

*chants
✊ border-box! border-box! πŸ˜„

Love this write-up and demo

Collapse
 
pfacklam profile image
Paul Facklam

Nothing weird about this. It is a common practise since years. πŸ˜‰

Collapse
 
snopkowski profile image
Wojciech Snopkowski

Good read though, nicely written!

Collapse
 
abdisalan_js profile image
Abdisalan

Totally weird for me! I guess I’ve been out of the loop πŸ˜†

Definitely weird for those just getting started at least, and I wanted to help 😊

Collapse
 
malvoz profile image
Robert Linder

Don't forget to include pseudo elements!

*,
::before,
::after {
  box-sizing: border-box;
}