CSS Secrets - Box Sizing

by Jack Pritchard

Hey! This post's a little over two years old now, so some of what's here might be out of date. Still worth a read, but if anything really matters to you, it's worth double-checking against a newer source too.

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/