CSS Box Model Stripped to the Basics
Since you did such a good job, here s a bonus video. Each HTML element on a page has four different properties. Content, Padding, Border and Margin. These are known as the box model. A working knowledge of the box model is critical to becoming a CSS ninja. Lets look at a diagram of the box model. In the middle is the content, then there is padding, then the border, and finally the margin. Lets break these down. First, the content layer. Thats th
|
|