Book Image

Learning Bootstrap 4 by Building Projects

Book Image

Learning Bootstrap 4 by Building Projects

Overview of this book

Bootstrap, the world’s most popular frontend framework, is an open source toolkit for building web applications with HTML, CSS, and JavaScript. Learning Bootstrap 4 by Building Projects covers the essentials of Bootstrap 4 along with best practices. The book begins by introducing you to the latest features of Bootstrap 4. You will learn different elements and components of Bootstrap, such as the strict grid system, Sass, which replaced Less, flexbox, Font Awesome, and cards. As you make your way through the chapters, you will use a template that will help you to build different kinds of real-world websites, such as a social media website, a company landing page, a media hosting website, and a profile page, with ease. By the end of this book, you will have built websites that are visually appealing, responsive, and robust.
Table of Contents (9 chapters)
Free Chapter
1
Introduction

Creating and styling bubble comments

Now that we are done with the wall comments, let's go ahead and create the bubble comments section. We will have to create a new card, so let's go back into our index.html file. Now we're creating the card post, which is going to be inside the section, but not inside card. So, I'm going to collapse the card we just created for our wall because we're going to create another card. Here is the code:

<div class="card post">
<div class="card-body">
<div class="row">
<div class="col-sm-2">
<a class="post-avatar thumbnail" href="profile.html">
<img src="img/user.png" class="img-fluid">
<div class="text-center">DevUser1</div>
</a>
&lt...