Part 2. Mastering layout

 

CSS provides several tools you can use to control the layout of a web page. In part 2 (chapters 48), we’ll look at the most important of these tools, from floats to flexbox to positioning. None of these tools is intrinsically better than another, but rather they each accomplish something a little different. I’ll show you how they each work so you can use this understanding to mix and match them on a page to achieve the result you need.