Created
July 30, 2013 19:59
-
-
Save adrenalin/6116351 to your computer and use it in GitHub Desktop.
Answer to http://stackoverflow.com/questions/17955986/div-not-taking-parent-height-3-columns/17956113
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
<!doctype html> | |
<html> | |
<head> | |
<style type="text/css"> | |
html, body { | |
height: 100%; | |
margin: 0; | |
} | |
</style> | |
</head> | |
<body> | |
<div class='main_container' style='height:100%; width:100%; border: solid 1px blue; position: relative;'> | |
<div class='float_left' style='width: 100px; height:100%; border: solid 1px green; float: left;"'>green</div> | |
<div class='float_right' style='width: 100px; height: 100%; border: solid 1px green; float: right; border: solid 1px cyan;'>cyan</div> | |
<div class='content' style='border: solid 1px red; height: 100%;'> | |
//elastic content that sometimes makes the page longer or shorter - red | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment