Essential CSS
JavaScript Roadmap
Learn JavaScript
Mastering Web Typography
Practical Astro
Understanding Async JS
Unorthodox Tailwind
API Masterclass
Build and Deploy
The Beginner Freelancer
Real World Node
Profile Billing Logout
Essential CSS
Lesson Plan
  1. Introduction
    1. Welcome to Essential CSS
    2. Getting started with the course
    3. What are file formats?
    4. Web standards
    5. What is HTML?
    6. What is CSS?
    7. Devtools, your indispensable best friend
  2. CSS Key Concepts
    1. Some background about CSS
    2. CSS Syntax and Terminology
    3. Selectors
    4. Cascade and Specificity
    5. Origin and Importance
    6. Inheritance
    7. How browsers handle CSS
  3. Basic Mental Model
    1. Everything on the web is a box
    2. The box model
    3. How big is your box?
    4. The relationship between px and em
    5. The `box-sizing` property
    6. The `display` property
    7. Formatting contexts
    8. Block boxes
    9. Inline boxes
    10. What is inline-block?
  4. Flexbox and Grid
    1. The parent-child relationship
    2. Sizing in Flexbox
    3. Flex directions
    4. Basic grid concepts
    5. Setting up a grid
    6. Placing grid items
    7. Box alignment
  5. Building web layouts
    1. Arranging your boxes on the web
    2. Positioning schemes
    3. Floating boxes
  6. Typography
    1. Making your text look good
    2. What is a font?
    3. Typesetting with CSS

Arranging your boxes on the web

1m:34s

There was a lot of talk about boxes in the previous section, so hopefully you have it ingrained in your mind that the web is really made up of a bunch of boxes of content. And web designers and developers are doing their best to present these boxes in the most aesthetically pleasing manner which best delivers whatever the intended message is.

Although a number of different CSS properties were mentioned in the previous section, the key property of that entire section was the display property. It is the property that determines a box’s type and behaviour, which in turn impacts how we can lay it out on the page.

This section is a good time to get familiar with the position property. A key thing I’d like to emphasize here is that although many CSS properties can be used in isolation, often, it is the combination of different CSS properties that gets us to the desired end result. There are also some CSS properties that only apply when another property is of a specific value.

If the prospect of having to memorise how all the CSS properties sounds daunting, don’t worry, you don’t have to memorise anything. Using CSS is a little bit like learning a new language, the more you use it, the more familiar you get and eventually you don’t consciously think about rules and conjugations any more, things come naturally.

Rather than rote memorisation, it is better to understand exactly what the properties are doing. Then you will know exactly what to search for when you need to achieve certain end results and can’t remember what values the properties need to be.

If you hadn’t gone through the previous section on all the different types of boxes, I highly recommend you do that, or at least go through the lesson on The box model and the one on Formatting contexts.