This is the fifth of a series of videos to learn the basics of building a website with HTML and CSS. It also covers the popular Bootstrap front-end framework.
We are building a working blog website that can be customized for actual use.
The code for all parts is available at: https://github.com/steve981cr/learn-html-css-bootstrap
There is a separate version of the app corresponding with a video (some cover two videos). In most versions there is an index-start.html and article-template-start.html page with the starting code. Finished code is at index.html and article-template.html of each version.
In this lesson we will add spacing around our HTML elements using margin, padding, and borders. We will cover the most common measurement units (px, percent, em, rem) and the box model.
0:00 Measurement Units
0:25 Pixels
2:32 Percent
3:41 Em and rem relative units
5:13 The box model - padding, border, margin
10:21 Add styles to our stylesheet
11:01 Add a container class.
15:02 Margin, padding, and border classes.
16:58 Add spacing utility classes to the index.html page.
21:57 Using Bootstrap