Created
March 21, 2012 20:22
-
-
Save pgherveou/2152520 to your computer and use it in GitHub Desktop.
Untitled
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
.row { | |
border: 1px solid black; | |
display: table; | |
width: 100%; | |
} | |
.cell { | |
display: table-cell; | |
background-color: red; | |
vertical-align: middle; | |
} | |
.cell-2 { | |
font-size: 28px; | |
background: green; | |
width: 50px; | |
} | |
.cell-1 { | |
font-size: 18px; | |
background: lightblue; | |
} | |
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
<div class="table"> | |
<div class="row"> | |
<div class="cell cell-1">cell 1</div> | |
<div class="cell cell-2">cell 2</div> | |
<div class="cell cell-1">cell 3</div> | |
</div> | |
</div> | |
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
{"view":"split","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment