Instantly share code, notes, and snippets.

What would you like to do?
Flexible layout using boxes
<!DOCTYPE html>
<style type="text/css">
body {width: 100%; height: 100%; margin: 0px; padding: 0px;}
#layout { background: yellow; display: -webkit-box; -webkit-box-orient: vertical; }
#main-container { background: red; display: -webkit-box; -webkit-box-flex: 1; }
#sidebar { background: green; -webkit-box-flex: 0; }
#map-canvas { background: black; -webkit-box-flex: 1; }
#footer { background: yellow; -webkit-box-flex: 0; height: 50px; }
<div id="layout">
<div id="main-container">
<div id="sidebar">
<div id="map-canvas"></div>
<div id="footer">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment