Created
November 9, 2014 10:09
-
-
Save alem0lars/704ef4af6409cf3523ca to your computer and use it in GitHub Desktop.
Children will fill all of the available viewport space (also vertically!)
This file contains hidden or 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 { | |
width: 100%; | |
height: 100%; | |
&>body { | |
width: 100%; | |
height: 100%; | |
&>.content { | |
display: table; | |
width: 100%; | |
height: 100%; | |
&>* { | |
display: table-row; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should also set the height in the
.content
children.Two-children example:
height: 20%;
Three-children example:
height: 30%;
height: 10%;