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.
Welcome! Unfortunately, you don’t have access to this lesson. To get access, please purchase the course or enroll in Magical Dev School.
Unlock this lesson