Reader small image

You're reading from  Bootstrap 4 Cookbook

Product typeBook
Published inJun 2017
Reading LevelBeginner
PublisherPackt
ISBN-139781785889295
Edition1st Edition
Languages
Right arrow
Author (1)
Ajdin Imsirovic
Ajdin Imsirovic
author image
Ajdin Imsirovic

Ajdin Imsirovic is a full-stack web developer who has published several courses on the subject of web design and web development. He has also authored three books, Bootstrap 4 Cookbook, Elm Web Development, and Vue.js Quick Start Guide. In his fourth book, Vue CLI 3 Quick Start Guide, he introduces readers to the rich ecosystem of frontend tooling and best practices.
Read more about Ajdin Imsirovic

Right arrow

Enriching text content with Bootstrap typography classes


In this recipe, we demonstrate the use of Bootstrap's typography classes. Bootstrap 4 offers a number of different classes, which allow for easy manipulation of text styles out of the box.

Getting ready

Navigate to the third recipe of Chapter 3 website (you can access it by navigating to chapter3/complete/app in the code files then running the harp server command, which will allow you to visit the completed website for the this chapter, at localhost:9000 in your browser). Here, you can click on the Recipe dropdown in the navbar, click on the recipe 3 link, and preview the final result that we are trying to achieve.

To get this look, we will combine text color classes, background color classes, display classes, and vertical text alignment classes. We will create this look from the empty files readily available in our chapter3/start/recipe3 folder.

How to do it...

  1. Open chapter3/start/app/recipe3.ejs and add the following code to it:
     ...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Bootstrap 4 Cookbook
Published in: Jun 2017Publisher: PacktISBN-13: 9781785889295

Author (1)

author image
Ajdin Imsirovic

Ajdin Imsirovic is a full-stack web developer who has published several courses on the subject of web design and web development. He has also authored three books, Bootstrap 4 Cookbook, Elm Web Development, and Vue.js Quick Start Guide. In his fourth book, Vue CLI 3 Quick Start Guide, he introduces readers to the rich ecosystem of frontend tooling and best practices.
Read more about Ajdin Imsirovic