官术网_书友最值得收藏!

Chapter 3. Jumping into Flexbox

Alright, now that we have finished setting up all the Bootstrap build tools, let's jump into an actual great new feature of Bootstrap 4. The latest version of the framework comes with CSS Flexbox support. The goal of the Flexbox layout module is to create a more effective way of designing a layout for a website or web application. The grid of boxes is aligned in a way that distributes them across their container even if their size is unknown. This is where the "Flex" in Flexbox comes from.

The motivation for a flexible box arose from a web design for mobiles. A way to have a section grow or shrink to best fill the available space was needed when building responsive web applications or websites. Flexbox is the opposite of block layouts that are either vertically or horizontally driven. It's important to note that Flexbox is generally best suited for use when designing web applications. The traditional grid method still works best for larger websites.

In our blog project, we're going to use Flexbox to create a homepage. There will be several rows of blocks, each being a post. I'll show you a few ways to lay the blocks out and different ways you can customize the contents of each block, all using the new Flexbox layout in Bootstrap.

主站蜘蛛池模板: 古丈县| 西贡区| 呼玛县| 堆龙德庆县| 林周县| 云南省| 章丘市| 潞城市| 富锦市| 宁河县| 襄樊市| 兴海县| 新邵县| 务川| 泰安市| 三江| 霍林郭勒市| 神木县| 潜山县| 宜君县| 哈巴河县| 莱州市| 青川县| 元朗区| 高平市| 石泉县| 安化县| 广南县| 开江县| 惠州市| 旌德县| 会泽县| 花垣县| 法库县| 平谷区| 锦州市| 博客| 屯昌县| 麻城市| 永康市| 本溪市|