Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Bootstrap Site Blueprints Volume II

You're reading from   Bootstrap Site Blueprints Volume II Maximize the potential of Bootstrap for faster and more responsive web applications

Arrow left icon
Product type Paperback
Published in Jan 2016
Publisher Packt
ISBN-13 9781785281099
Length 328 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Matt Lambert Matt Lambert
Author Profile Icon Matt Lambert
Matt Lambert
Arrow right icon
View More author details
Toc

Coding the friends section


Time to start the final template of this project and the book! The last page that we'll cover is a friends page for our social networking website. It will include a list of all our friends, their bios or descriptions, and a way to delete them:

Like the previous templates, the left and right sidebars won't be changed for this one. We'll only need to edit the middle column, so open up friends.ejs and insert this page-header code at the top of the column:

<h1 class="page-header">
  Friends
  <span class="pull-right"><small>134 Friends</small></span>
</h1>

I'm using the same pattern here as that of the other page headers. But within the <span> tag on this <h1> tag, we are going to use the <small> tag to indicate the number of friends the user has. A <small> tag with a header tag in Bootstrap provides some built-in styles you can take advantage of.

Adding a friend entry

As in the previous templates, let's dissect...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime