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

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:

主站蜘蛛池模板: 方正县| 灯塔市| 湄潭县| 新竹市| 甘孜| 全南县| 香河县| 西和县| 左云县| 始兴县| 苗栗县| 鄱阳县| 渝北区| 富裕县| 龙门县| 成都市| 马龙县| 沁水县| 金山区| 桐柏县| 托克逊县| 德庆县| 攀枝花市| 昂仁县| 舟山市| 当涂县| 友谊县| 丹阳市| 北京市| 商南县| 龙胜| 六盘水市| 贵州省| 辉县市| 安义县| 淮安市| 西宁市| 宣恩县| 板桥市| 云浮市| 宣化县|