How it works…
There are several simple, yet important concepts to mention in this recipe. For example, it is worth mentioning that we have used partials within partials in this recipe, in order to make our code more modular and to stick to the principle of DRY development.
Also, we have used the d-flex utility class to display the wrapping div as the flex container (which will in turn make the wrapped rows into flex items). To control the positioning of these rows as flex items, we use the justify-content-* helper classes. However, the effect of applying these classes might not be visible for two reasons. The first reason is the size of the viewport. If you preview the web page we made on a larger viewport, the justify-content-* helper will ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access