Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Bootstrap

You're reading from   Learning Bootstrap Unearth the potential of Bootstrap to create responsive web pages using modern techniques

Arrow left icon
Product type Paperback
Published in Dec 2014
Publisher Packt
ISBN-13 9781782161844
Length 204 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Mobile-first design

With the advent of mobile phones and tablets, responsive web design is the need of the hour. Earlier, there was the graceful degradation approach wherein you build a website for desktops and then remove features and adapt it for small screen sizes with a lesser set of capabilities resulting in a watered down, subpar browsing experience.

With the release of Bootstrap 3, a mobile-first approach was implemented thereby helping you to create websites that function efficiently on mobile platforms despite the platform constraints. This included taking into account all the restrictions of mobile devices and creating a website that is powerful with cross-browser compatibility giving your website users an awesome mobile experience. Using progressive enhancement techniques, you then add other features for desktop users thereby increasing the accessibility significantly. Thus, your website is well-equipped to handle changes regardless of whether you are using an iPad device, a Windows PC, or any other platform of your choice.

Let's consider that we design a navigation bar for a web page. On a desktop screen, the web page will be displayed as follows:

Mobile-first design

It is quite evident that the website displays the navbar brand Packt Publishing alongside the menu options such as Books and Videos, Articles, Categories, and Support with the search field on the right-hand side.

However, on a small screen mobile phone, the web page would be displayed as follows:

Mobile-first design

On clicking the expandable mobile navigation icon displayed at the top right corner of the mobile screen, the following screen will be displayed:

Mobile-first design

Thus, you can see the mobile-first approach of Bootstrap demonstrated by the preceding screenshots.

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
Banner background image