Chapter 17 Modern Web Layout with Flexbox

Chapter 16 RWD Frameworks Review....

Lightweight CSS Grid Systems (page 497)

Heavyweight CSS/JavaScript frameworks, include JavaScript code replacing jQueryUI.

These frameworks are all based a a 12 unit wide "fluid" grid system. This layout has two problems...

Introducing Flexbox

Flexbox Basics

  1. Flex container can be any HTML element
  2. Flex items are inside the flex container
  3. AutoPrefix automatically adds vendor prefixes to CSS3 code. added display: -ms-flexbox; likely IE10

flexbox basics example. - flexbox cimw115 site Jill Reiche

Flex-Flow

flexflow basics example

flex shortcut flex: grow shrink basis;

flexflow4.html figure 17-4

Property justify-content - not used often - flexflow5.html Fiture 17-5

flex box must have fixed width flex-basis: 200px; word wrap and multiple rows for each item - not used often

align-items: flex-start flex-end center space-between space-around stretch - flexbox6.html

align-content flexbox7.html not used that often

flex Item Properties: order property

each flex item can have an order: number; it determines the order of the item.

align-self page figure 17-8 page 544

 

flex-summary