When building websites with HTML, we can position items on the screen using rows and columns. You can think of this like an Excel table:
However, using just plain tables can make this really difficult, and makes our websites look bad on mobile devices. To fix this, we can use a CSS package called Bootstrap.
Bootstrap allows you to quickly and easily create rows and columns to help build the layout of your website.
It provides a system of rows, where each row is divided into 12 columns.
So, if you want a row to take up the entire width of the page, you’d say that row should have a column with a width of 12. If you wanted a row to only take up half the page, you’d say it needs to have a column with a width of 6. Let’s explore together with this example:
Grid mockup:
Website with borders on the grid:
Finished website: