Showing posts with label css box shadow color. Show all posts
Showing posts with label css box shadow color. Show all posts

Monday, December 7, 2015

CSS Box Model Stripped to the Basics

CSS Box Model Stripped to the Basics



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.

Let’s 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.

[embed]https://www.youtube.com/watch?v=mbtVeca7jss[/embed]