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

Flexbox basics and terminology

Before we go too far, we should define a few Flexbox basics and some terminology that I'll use throughout the chapter. Every Flexbox layout is dependent on an outer container. As we move through the chapter, I'll refer to this container as the parent. Within the parent container there will always be a collection of boxes or blocks. I'll refer to these boxes as children or child elements of the parent. Why don't we start by talking a little bit more about why you would want to use Flexbox? The main purpose of Flexbox is to allow for the dynamic resizing of child boxes within their parent container.

This works for the resizing of both width and height properties on-the-fly. Many designers and developers prefer this technique as it allows for easier layouts with less code:

主站蜘蛛池模板: 扶沟县| 新沂市| 类乌齐县| 泰顺县| 盘山县| 吉木萨尔县| 子洲县| 仁化县| 江阴市| 苍梧县| 中卫市| 齐河县| 玉树县| 朔州市| 栖霞市| 邹城市| 高台县| 疏附县| 历史| 商丘市| 资阳市| 察隅县| 平山县| 禹城市| 寿光市| 襄城县| 临夏县| 盈江县| 和静县| 米脂县| 新化县| 永福县| 方城县| 鸡东县| 承德市| 城市| 五华县| 丹凤县| 射洪县| 吴川市| 岱山县|