In this chapter I’ll explain yet another value for the display attribute: flex. This is a very flexible (pun intended) way of laying out elements. Conceptually, this is pretty straightforward although the terminology can be confusing, primarily because of its flexibility. When using flex, you need a container element that has child items inside it. There are separate attributes that are configured on the container and the items. It is supported by IE11 and above as well as all major browsers, although there are some issues with Safari. If you must support these browsers, ...
© Mark J. Collins 2017
Mark J. Collins, Pro HTML5 with CSS, JavaScript, and Multimedia, 10.1007/978-1-4842-2463-2_14
14. Flexbox
Mark J. Collins1
(1)Chesterfield, Virginia, USA
Get Pro HTML5 with CSS, JavaScript, and Multimedia: Complete Website Development and Best Practices now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.