Next Generation Layout on the Web

@divya • Product Manager, Adobe

nimbu.in/bdconf/

What layout are we talking about?

Restrictions on web layout

Follow order of HTML markup.

Rectangular containers.

Cannot center content vertically.

No widow, orphan controls.

No ligatures.

What is possible in modern browsers?

(Latest of Chrome, Safari, Internet Explorer, Firefox)

Center content vertically.

Organize content outside of source order (somewhat).

Widow, orphan controls.

Ligatures.

What can we see in the future?

Actual layout of content irrespective of order in HTML.

Clip containers into any shape.

Text wrapping without rectangles.

What we will cover

Flexbox

.flex-container {
 display: flex; 
 justify-content: center; 
 align-items: center; 
}

What else can Flexbox do?

More examples: codepen.io/tag/flexbox

Widows, Orphans

.multicol h1 {
    widows: 4;
}

Ligatures

Demo

Future

Full control of content layout

Regions

Demo

Use cases

Fold content inline: css-tricks.com/examples/AdRegions/

Content irrespective of order in markup.

Full control over templates for all your break points.

More examples: codepen.io/collection/jabto

Organizing content in grids

Grids

Demo

Clipping content in shapes

Clipping Paths

Demoprogress toolbarhtml5rocks.com/en/tutorials/masking/adobe/

Shape Tools

betravis.github.io/shape-tools/polygon-drawing/

Wrapping Content in Shapes

Shapes

Demo

More Examples

codepen.io/collection/qFesk

Greater control over web fonts

Font Load Events

Load a font, take action when fonts are loaded

Demo

Now

Future

Follow

@adobeweb & codepen.io/adobe/

Use a spacebar or arrow keys to navigate