How to make a flex responsive template

Thursday 16th, Mar, 2017 | #HTML 5 #CSS2 / CSS3 #Playground

The flexible box layout is a way of using CSS’s display property in a whole new manner. Block elements stack vertically while inline elements stack horizontally(until they break onto a new line).

Flexbox elements can stack vertically or horizontally based on your setup. They can be evenly spaced across the page or squeezed tight up against each other. The point is offering more control to developers who want to build naturally responsive layouts.

HTML

<body> <header> <h2>HEADER</h2> </header> <div class="content_wrapper"> <section class="main"> </section> <aside class="sidebar"> <h3>Sidebar</h3> </aside> </div> <footer> <h3>Footer</h3> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p> </footer> </body>

CSS