38. Grid Positioning: Pros & Cons
Advantages Disadvantages
Simple syntax Reliance on other modules
*-syntax (multilength) Somewhat restrictive
gr unit Thinking is involved
Explicit grid No new placement mechanism
39. One cool thing about Grid Positioning Module
The gr unit
A measurement unit to match your grid units!
(Well, not exactly.)
40. Grid Positioning: the gr unit
blockquote.pullquote {
float: top left column;
float-offset: 1gr 4gr;
width: 7gr;
}
58. Template Layout: the ::slot() pseudo-element
::slot() allows you
to style a slot,
regardless of the
content.
body::slot(a) { background-color: silver; }
76. CSS3 Layout in action: Template playing nice with Flexbox
77. Remember these important points
Source order is no longer an issue
You can still float and position (absolute on gr!)
There may be power in two modules
Use media queries for alternative layouts!
78. Media queries and CSS3 Layout
div { display: "a a a"
"b c c"
"d d d"; }
becomes
div { display: "a"
"c"
"b"
"d"; }
81. Give us some layout,
dammit!
We’re at the point that we don’t care which module it is.
82. Give us some layout,
dammit!
We’re at the point that we don’t care which module it is.
(As long as it’s at least Template Layout. Thank you.)
83. There are huge advantages for designers and developers
CSS is the framework
84. There are huge advantages for designers and developers
CSS is the framework
Maintainability
85. There are huge advantages for designers and developers
CSS is the framework
Maintainability
How designers think
86. A solid layout mechanism
will change the face
of the Web.
87. Learn more or get involved
CSS3-layout
http://www.w3.org/TR/css3-layout
CSS3-flexbox
http://www.w3.org/TR/css3-flexbox
CSS3-grid
http://www.w3.org/TR/css3-grid
CSS WG Mailing list
www-style@w3.org
88. Thank you!
This presentation is available at:
the-haystack.com/presentations/fronteers09/
twitter.com/stephenhay
Special thanks to Bert Bos for his input, and to Khoi Vinh for
allowing me to use his wonderful example.