Trying to create a fluid centered content area with a defined max-width and a equal height sidebar with flexbox for a wordpress theme. Thing works like a charm in Safari, Firefox and Chrome but completely goes apeshit in explorer.
Working Example (in safari, fire... etc)
http://nicklasbryntesson.se/test/Flexbox%20Vs%20Table/layout-flex.html
the basic structure for the content area:
<header id="masthead" class="site-header" role="banner">
<h1>Header</h1>
</header><!-- #masthead -->
<div id="content" class="site-content">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<article>
<h1>The Content</h1>
</article><!-- #post-## -->
</main><!-- #main -->
</div><!-- #primary -->
<div id="secondary" class="widget-area" role="complementary">
<h2 class="widget-title">Sidebar</h2>
</div><!-- #secondary -->
</div><!-- #content -->
<footer id="colophon" class="site-footer" role="siteinfo">
<h1>footer</h1>
</footer>
The basic CSS for Wide screens:
@media screen and (min-width: 50em) {
.site-content {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.site-main {
-webkit-box-flex: 1;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
}
.widget-area {
-webkit-box-flex: 0;
-ms-flex: 0 0 18em;
flex: 0 0 18em;
}
.content-area {
max-width: 40em;
height: 100%;
margin: 0 auto;
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
}
}
Im ready to throw in the towel on this, can't seem to figure out if there is a prefix error, or if I'm targeting the wrong divs.