Created
December 20, 2011 12:45
-
-
Save pgherveou/1501457 to your computer and use it in GitHub Desktop.
table display test
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
/** | |
* table display test | |
*/ | |
body { | |
min-height:100%; | |
padding-top: 100px | |
} | |
div { | |
outline: 2px solid grey; | |
padding: 1em; | |
margin: 1em; | |
} | |
.table-div { | |
background: green; | |
display: table; | |
} | |
.table-row { | |
background: blue; | |
display: table-row; | |
} | |
.table-cell { | |
background: red; | |
display: table-cell; | |
vertical-align: middle | |
} | |
.r1c1 { | |
font-size: 3em | |
} | |
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
<!-- content to be placed inside <body>…</body> --> | |
<div class='table-div'> | |
<div class='table-row'> | |
<div class='table-cell r1c1'> | |
(r1-c1) *********** (r1-c1) | |
</div> | |
<div class='table-cell r1C2'> | |
(r1-c2) *************** (r1-c2) | |
</div> | |
</div> | |
<div class='table-row'> | |
<div class='table-cell r2c1'> | |
(r2-c1) ***************** (r2-c1) | |
</div> | |
<div class='table-cell r2c2'> | |
(r2-c2) ************ (r2-c2) | |
</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","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment