Book Image

Bootstrap 4 Site Blueprints - Second Edition

By : Ian Whitney, David Cochran
Book Image

Bootstrap 4 Site Blueprints - Second Edition

By: Ian Whitney, David Cochran

Overview of this book

Packed with trade secrets, this second edition is your one-stop solution to creating websites that will provide the best experience for your users. We cover six popular, real-world examples, where each project teaches you about the various functionalities of Bootstrap 4 and their implementation. The book starts off by getting you up and running with the new features of Bootstrap 4 before gradually moving on to customizing your blog with Bootstrap and SASS, building a portfolio site, and turning it into a WordPress theme. In the process, you will learn to recompile Bootstrap files using SASS, design a user interface, and integrate JavaScript plugins. Towards the end of the book, you will also be introduced to integrating Bootstrap 4 with popular application frameworks such as Angular 2, Ruby on Rails, and React.
Table of Contents (15 chapters)
Bootstrap 4 Site Blueprints
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface

Beautifying the features list


We need to enlarge the icons, align the text at the center, and iron out the grid layout. Let's review the markup structure for the features list:

<section id="features"> 
  <div class="container"> 
    <h1>Features</h1> 
    <div class="row"> 
      <div class="features-item col-md-4"> 
        <span class="icon fa fa-cloud"></span> 
        <h2>Feature 1</h2> 
        <p>Donec id elit non mi porta gravida at eget metus. Fusce            dapibus, tellus ac cursus commodo. </p> 
      </div> 
   ... 

Each feature with its icon, heading, and paragraph is wrapped in a div tag with two classes: features-item and col-md-4.

With this in mind, let's write the styles we need:

  1. Create scss/includes/_features.scss, a new Sass partial, and do not forget to import it in the scss/app.scss file:

            @import "includes/navbar"; 
            @import...