Created
May 18, 2015 20:51
-
-
Save codenameyau/9362a02521c4260799f6 to your computer and use it in GitHub Desktop.
Autofill children width to fill parent
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
/*! | |
* Description: | |
* Fill variable child containers to 100% width | |
* http://stackoverflow.com/a/5862782 | |
*/ | |
.control-container { | |
width: 100%; | |
display: table; | |
table-layout: fixed; | |
} | |
.control-container > div { | |
display: table-cell; | |
padding: 15px 5px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment