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

The main part of your blog page


On small viewports, the sidebar is under the main content. On large viewports the side bar floats on the right side of the main content.

On large viewports the main content gets ¾ of the available space, the rest ¼ part is left for the side bar. We can accomplish this by using the col-md-9 and col-md-3 classes in our HTML.

The layout columns are set in the default layout template in the html/layouts/default.html file:

    <div class="main-content container"> 
        <div class="row"> 
          <main class="col-md-9" role="content">            
            {{> body}} 
          </main> 
          <aside class="col-md-3"> 
            {{> sidebar}} 
          </aside> 
        </div> 
    </div>   

Again the col-md-* classes are not required. You can accomplish the same by editing the following SCSS code in the scss/includes/_blog.scss file:

    main[role="content...