Created
June 10, 2010 17:08
-
-
Save kwhinnery/433307 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style> | |
html,body {margin:0;padding:0;} | |
#app { | |
height:100%; | |
display: -webkit-box; | |
-webkit-box-orient: vertical; | |
-webkit-box-align:stretch; | |
} | |
#header { | |
height:50px; | |
background-color:#cdcdcd; | |
} | |
#footer { | |
height:30px; | |
background-color:#cdcdcd; | |
} | |
#content { | |
-webkit-box-flex:1; | |
display: -webkit-box; | |
-webkit-box-orient: horizontal; | |
-webkit-box-align:stretch; | |
} | |
#sidebar { width:120px; background-color:#676767;} | |
#main { | |
-webkit-box-flex:1; | |
background-color:green; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="app"> | |
<div id="header">This is the header</div> | |
<div id="content"> | |
<div id="sidebar">Sidebar</div> | |
<div id="main">Main Content</div> | |
</div> | |
<div id="footer"> | |
© 2010 Awesome Productions Ltd. | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice, I had to add
height:100%;
onto yourhtml, body { margin: 0; padding: 0; }
to get this to work