Created
July 19, 2017 13:58
-
-
Save Kcko/8cda0f175c1cd1478973e3f320dd0ea2 to your computer and use it in GitHub Desktop.
CSS - full height with resizable header & footer with TABLE LAYOUT
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
http://kod.djpw.cz/wwhc |
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, body { | |
height: 100%; | |
margin: 0; | |
} | |
.container { | |
display: table; | |
height: 100%; | |
/*border-spacing: 10px; | |
margin: 0 -10px; | |
*/ | |
width: 100%; | |
} | |
.nav, .content, .footer { | |
display: table-row; | |
} | |
.cell { | |
display: table-cell; | |
} | |
.nav div, .footer div { | |
background-color: #1565C0; | |
} | |
.content div { | |
height: 100%; /* Nutné, aby obsah dominantne zaberal všetko voľné miesto. */ | |
border: 1px solid; | |
} | |
p { | |
padding: 1em; | |
margin: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment