1: The Box Model
Where do scrollbars go, inside or outside the box? In this episode Una and Adam answer that and much more in their discussion of the CSS box model. Everything in CSS starts as a box, and while that’s a straight forward concept to initially think about, it can get complex quite quickly. Not only do boxes surround elements, but letters in a sentence each have a box too. How many boxes are there!? Lots. Lots of boxes.
Where do scrollbars go, inside or outside the box? In this episode Una and Adam answer that and much more in their discussion of the CSS box model. Everything in CSS starts as a box, and while that’s a straight forward concept to initially think about, it can get complex quite quickly. Not only do boxes surround elements, but letters in a sentence each have a box too. How many boxes are there!? Lots. Lots of boxes.
Links
Box Model CSS Spec: https://goo.gle/39KwDud
Adam’s Box Model CodePen: https://goo.gle/38JFZ8n
CSS Tricks on the Box Model: https://goo.gle/3aM4a7p
Check out the Instagram: https://goo.gle/2W97OEg