Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Bootstrap Site Blueprints Volume II

You're reading from  Bootstrap Site Blueprints Volume II

Product type Book
Published in Jan 2016
Publisher Packt
ISBN-13 9781785281099
Pages 328 pages
Edition 1st Edition
Languages
Author (1):
Matt Lambert Matt Lambert
Profile icon Matt Lambert

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 ₹800/month. Cancel anytime}