/css-layout-workshop-march2014

Training material for a workshop on CSS layout, March 2014

Primary LanguageJavaScript

Modern Layout with CSS Flexbox, CSS Regions and more

Exercises for learning how to use new CSS layout features and techniques.

Prerequisites

The results of these exercises ought to work just fine in the latest version of Google Chrome. Special cases are individually marked.

You should already know how CSS works, what floats do, and what classes mean. If you need a refresh, try A Beginner's Guide to HTML and CSS by Shay Howe.

Self-directed learning

You will find the folders with exercises under the projects/ folder. They are named like 01_flexbox, 02_regions, and so forth. Open them in your code editor of choice.

Each folder contains some HTML files with exercises to learn about a specific feature or use case. In every HTML file there is a <style> tag with CSS and instructions. They're easy to follow. Look for this format:

/* STEP 1 */ 
/* Set property: value; to learn something new. */

The CSS in the <style> contains the essential bits for learning at each stage. Some demos also have linked stylesheets and scripts. Those files contain supporting code that make the demo look nice. They're out of sight to keep you focused.

A version of the each completed exercise lives one level lower, in the complete/ folder. Peek in there to see the result, if you need to.

Learning Resources

Flexbox

CSS Regions

CSS Shapes

Misc