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

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:

主站蜘蛛池模板: 额济纳旗| 保山市| 甘泉县| 龙游县| 江孜县| 中阳县| 宽城| 柳林县| 博乐市| 元江| 航空| 晋中市| 东平县| 常德市| 洛浦县| 巨鹿县| 霸州市| 元谋县| 绍兴市| 新平| 习水县| 安义县| 门头沟区| 汨罗市| 化隆| 台山市| 嘉义县| 铜山县| 涪陵区| 罗城| 沈阳市| 泰安市| 临海市| 神农架林区| 建湖县| 荣昌县| 乌拉特后旗| 湟源县| 珲春市| 泸定县| 改则县|