Box Model

The CSS box model describes how much space an HTML element occupies and how that space is divided.

Every HTML element is represented as a rectangular box with four layers:

  1. Content: the actual text, image, or other content inside the element.
  2. Padding: the space between the content and the border.
  3. Border: the visible edge surrounding the content and padding.
  4. Margin: the space outside the border, separating the element from other elements.

The difference between content-box and border-box

We can take away a few points:

Using grid to put blocks next to eachother

Please start the next assignment (it's not actually an assigment)

This method of using grid creates an amount of columns. By default every block will take up 1 column (fraction).

This method of using grid will try to put as many blocks as possible next to eachother. As long as they meet the minimal requirements.