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 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 $19.99/month. Cancel anytime