One of the key reasons for style-sheets is on controlling the layout of the page. This is made more complicated by the simple fact that web pages are used on a variety of devices with a variety of resolutions and aspect ratios.
The purpose of the cheat sheet is to give you a summary of the main aspects of CSS Layout options and assumes that you are already familiar with the earlier CSS Basics chapter. If you are not sure if you should read through this chapter, take a look at the cheat sheet provided and if you fully understand what is in the cheat sheet then feel free to skim or skip this chapter. I urge those readers to attempt the project just to make sure they really do understand the material but that is up to you.
The cheat sheet is located here and is in my github repository located at https://github.com/BillySpelchan/FromScratchHTML_CSS_JS.
This chapter's summary cheat sheet.
Why layout is complicated for web pages.
The basic display types.
A box that contains other components and sizes them to fit the available space.
A flexible grid where you can lay out your design.
Using templates to make laying out components in a grid easy.
Using the columns attributes to easily allow for multiple columns.
Having images (or other blocks) have text wrap around them.
There are other ways of placing elements by using the position attribute.
Altering CSS based on the properties of the device the page is being rendered on.
The project for this chapter.
Solution for this chapter's project