54. So what do we do now?
pureCSS grid module
uses inline-block for <= IE9
<div class="pure-g">
<div class="pure-u-1-3"><p>Thirds</p></div>
<div class="pure-u-1-3"><p>Thirds</p></div>
<div class="pure-u-1-3"><p>Thirds</p></div>
</div>
Works very well if
you know how many
columns
55. So what do we do now?
pureCSS grid module
uses inline-block for <= IE9
<div class="pure-g">
<div class="pure-u-1-3"><p>Thirds</p></div>
<div class="pure-u-1-3"><p>Thirds</p></div>
<div class="pure-u-1-3"><p>Thirds</p></div>
</div>
jQuery insertAfter()
re-order with javascript
<div class=“order-3”>
<div class=“order-1”>
<div class=“order-2”>
<div class=“order-3”>
$(window).resize(function() {
if ($(window).width() < 960) {
$(“.order-3”).insertAfter( $(“.order-2”) );
56. So what do we do now?
a {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex
}
a {
display: flex;
}
Autoprefixer post-processor
57. Holy Grail Layout
header, footer, three columns
• Has a fluid center with fixed-width sidebars
• Center column should appear first in the HTML
• Columns should be the same height
• Minimal markup
• The footer should "stick" to the bottom of the page when content is sparse
http://codepen.io/adamskye/pen/OPJKEP