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

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:

主站蜘蛛池模板: 南召县| 青川县| 九江市| 阿城市| 金华市| 灌阳县| 天津市| 潢川县| 常山县| 六盘水市| 本溪市| 泉州市| 斗六市| 北辰区| 景东| 鄂托克旗| 米林县| 凌源市| 德州市| 金川县| 广南县| 尼木县| 乌恰县| 元阳县| 瓦房店市| 五指山市| 长顺县| 西乌珠穆沁旗| 斗六市| 防城港市| 包头市| 通辽市| 威海市| 游戏| 金湖县| 大方县| 东源县| 社会| 南昌市| 万宁市| 高州市|