This is a mental model that might help you better understand how things are laid out on web pages. Everything that you see on a web page has a rectangular border around it, in some cases, we can visualise these borders with CSS, but in others, these rectangular boundaries are only evident to the browser.
We can most likely attribute this to the nature of the ubiquitous screens around us these days. A vast majority of the screens we use today are raster displays, whose mechanics centre around a grid of discrete pixels.
The high-resolution screens of today are just better at packing more pixels into a smaller space, giving us the illusion of curves and irregular shapes, but really, when you zoom all the way in, its all boxes plotted on a grid.
There will be references to the example code used in the Getting started section, so it would be good if you had those files open in your code editor, and the index.html file loaded in your preferred browser.
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