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

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.

主站蜘蛛池模板: 名山县| 林芝县| 昌江| 宝坻区| 六枝特区| 宜兴市| 临武县| 察隅县| 石楼县| 祁门县| 枣阳市| 保靖县| 托克逊县| 栖霞市| 贵溪市| 大田县| 济阳县| 会昌县| 莲花县| 罗城| 岳普湖县| 常德市| 政和县| 常州市| 石阡县| 安阳县| 兴安盟| 兰州市| 增城市| 长寿区| 阿鲁科尔沁旗| 潮安县| 江山市| 韩城市| 金华市| 清镇市| 交口县| 望城县| 焉耆| 石泉县| 汤阴县|