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

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:

主站蜘蛛池模板: 万载县| 海安县| 孝昌县| 合山市| 雅江县| 黄龙县| 图木舒克市| 利津县| 隆安县| 茂名市| 临澧县| 晋江市| 鄂尔多斯市| 淮安市| 深州市| 商水县| 溧阳市| 精河县| 田林县| 望江县| 馆陶县| 稻城县| 房产| 贵港市| 曲阜市| 巢湖市| 体育| 广宁县| 芮城县| 那曲县| 彭山县| 海林市| 博野县| 固安县| 奉新县| 渭源县| 万州区| 中牟县| 德令哈市| 集贤县| 衡东县|