Making Sense of the CSS Box Model

Making Sense of the CSS Box Model

1h 12mBeginner2019-11-14

Authors

Morten Rand-Hendriksen

Morten Rand-Hendriksen

Senior Staff Instructor, Speaker, Web Designer, and Software Developer

Course details

Based on old-school typography blocks, the CSS box model is the key to modern web design. Once you master it, you can build any layout you want—and troubleshoot most of the common CSS alignment and positioning woes. In this course, Morten Rand-Hendriksen offers a "four course meal" approach to the CSS box model, breaking it down into easily digestible chunks. He covers techniques such as styling text and images, floating content, using display properties, and positioning elements. He also explores the brave new world of modern layout modules, discussing Float, Flex, and Grid and how they can work together. Each lesson is supported by real-world demonstrations of the concepts in action, and Morten closes with a "nightcap" that will get you thinking about going further with CSS.

Learning objectives
Designing with boxes
The origin of the box in typography
What is the CSS box model?
Changing the contents within the box
Floating and clearing content
Using the clearfix
Working with Float, Flex, and Grid
CSS shapes

Skills covered

CSSWeb StandardsWeb DesignFront-End Web DevelopmentWeb DevelopmentOpen SourceOne-Off

Concepts

Introduction

  • Making sense of the CSS Box Model

Appetizer - The Web Is Made of Boxes

  • Displaying information through the web
  • The web is made of boxes
  • Designing with boxes

Entr e - The Origin of the Box in Typography

  • Understanding the basics of type
  • Change the type, change the box
  • Text flow in the box

Main Course - Understanding the Box Model

  • What is the CSS Box Model
  • Changing the contents within the box
  • Understanding the display porperty
  • Sidebar - Images are inline elements
  • Position is everything
  • Floating and clearing content
  • Using the clearfix
  • Pseudo elements - Making the browser hallucinate

Dessert - The Brave New World of Layouts

  • Modern layout modules
  • Flex - Content-based layouts
  • Flex in depth
  • Grid - Layout-based layouts
  • Grid in depth

Nightcap

  • Shapes
  • Going further with CSS and web standards
40,000 Toman