- Learning Bootstrap
- Aravind Shenoy Ulrich Sossou
- 268字
- 2021-08-05 16:52:30
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:

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:

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

Thus, you can see the mobile-first approach of Bootstrap demonstrated by the preceding screenshots.
- Kubernetes修煉手冊
- Getting Started with oVirt 3.3
- Linux運維實戰:CentOS7.6操作系統從入門到精通
- Kubernetes網絡權威指南:基礎、原理與實踐
- Windows Server 2012 Hyper-V Cookbook
- 嵌入式Linux驅動程序和系統開發實例精講
- Linux內核設計的藝術:圖解Linux操作系統架構設計與實現原理
- Linux系統最佳實踐工具:命令行技術
- Windows 10從新手到高手
- 大學計算機應用基礎實踐教程(Windows 7+MS Office 2010)
- Multi-Cloud for Architects
- Zabbix監控系統之深度解析和實踐
- Linux集群之美
- Mastering Sass
- 15分鐘!畫出我的漫畫角色:賣萌篇