Forum Moderators: not2easy
<style>
main {
background: #FFF;
min-height: 400px;
/* IE9 doesn't recognize flex, so assign this first then overwrite it next */
display: block;
display: flex
}
aside { flex-basis: 330px }
</style>
<main>
<section>
Left column (main content)
</section>
<aside>
Right column (ads and similar, not relevant to the main content)
</aside>
</main> <script>
if (window.getComputedStyle(document.querySelector('main')).getPropertyValue('display') !== 'flex')
document.querySelector('aside').display = 'none';
</script>
main {
background: #FFF;
min-height: 400px;
display: block;
display: flex
}
aside {
width: 0;
flex-basis: 330px
}