CSS Secrets - Box Sizing

by Jack Pritchard

Hey! Just so you know, this article is over 2 years old. Some of the information in it might be outdated, so take it with a grain of salt. I'm not saying it's not worth a read, but don't take everything in it as gospel. If you're curious about something, it never hurts to double-check with a more up-to-date source!

Description - CSS Secrets - Box Sizing

#

In this second episode of CSS secrets, I cover the box-sizing rule and how it can help you fix your CSS positioning. With one line of code, you can solve all future calculations for the dimensions of your elements, even if you add borders and padding later on! If you like the video be sure to subscribe!

Video

#
#

Behance: https://www.behance.net/JLDavies Facebook: https://www.facebook.com/whatjackhasmade Twitter: https://twitter.com/whatjackhasmade Codepen: https://www.codepen.io/JackDavies/