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 private messages section


The next page that we are going to tackle is the private messages template. This is where you would come to send a direct message to one of your friends on the social network—a message that you want to keep private and hidden from other users. The left and right sidebars will remain the same; only the content of the center column will change.

Before we start, let's see what this page will look like:

Open the messages.ejs file and paste the page-header code at the top of the column:

<h1 class="page-header">
  Messages
  <span class="pull-right">
    <button class="btn btn-primary">New Message</button>
  </span>
</h1>

Note that in this header, I've added a <span> tag that is right aligned with a button inside of it. This is the button that a user would click on to start a new message. The span needs to be nested inside the <h1> tag as it's a block element, but we don't want to break the button onto a new line...

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 €14.99/month. Cancel anytime}