- Mastering Bootstrap 4(Second Edition)
- Benjamin Jakobus Jason Marah
- 280字
- 2021-06-24 19:25:47
Layout
Possibly the most important and widely used feature is Bootstrap's ability to lay out and organize a page. At the core of this functionality lies the Bootstrap grid system: a series of CSS classes and media queries that allow you to easily define the horizontal and vertical position of elements on a page, taking into account different screen sizes at the same time. Using the grid system is as easy as applying a few classes to your elements and specifying a tier (that is, the viewport size at which the sizing for the element takes effect). No JavaScript magic or custom CSS rules need to be written. With Bootstrap 4, this grid system has been completely overhauled, and a new grid tier has been added. This means that in contrast to Bootstrap 3, the grid system now offers tiers for extra-small, small, medium, large, and extra-large displays. We will be talking about tiers, breakpoints, and Bootstrap's grid system extensively in Chapter 2, Making a Style Statement.
Along with the grid system, Bootstrap offers the following:
- Responsive containers.
- Responsive breakpoints for adjusting page layout in response to differing screen sizes.
- Media objects that act as building blocks and allow you to build your own structural components.
- Utility classes that allow you to manipulate elements in a responsive manner. For example, you can use the layout utility classes to hide elements, depending on screen size.
Also, Bootstrap 4 now ships with default support for a CSS3 layout mode called flexbox, for the easier positioning of elements while also accounting for different screen sizes. We will be talking about how to manage element alignment using flexbox later on in Chapter 8, Utilities.
- Social Media Mining with R
- Linux運(yùn)維實(shí)戰(zhàn):CentOS7.6操作系統(tǒng)從入門(mén)到精通
- 發(fā)布!設(shè)計(jì)與部署穩(wěn)定的分布式系統(tǒng)(第2版)
- 計(jì)算機(jī)系統(tǒng)開(kāi)發(fā)與優(yōu)化實(shí)戰(zhàn)
- RESS Essentials
- Joomla! 3 Template Essentials
- 細(xì)說(shuō)Linux基礎(chǔ)知識(shí)
- Ceph分布式存儲(chǔ)實(shí)戰(zhàn)
- Windows 7應(yīng)用入門(mén)與技巧
- 計(jì)算機(jī)系統(tǒng)的自主設(shè)計(jì)
- Windows 8實(shí)戰(zhàn)從入門(mén)到精通(超值版)
- Windows 7實(shí)戰(zhàn)從入門(mén)到精通
- 分布式高可用架構(gòu)之道
- Mastering Windows 8 C++ App Development
- Mastering AWS CloudFormation