-
-
Save yoelnacho/7461352 to your computer and use it in GitHub Desktop.
equal-height-columns.css
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
.css-table { | |
display:table; | |
width:500px; | |
background-color:#F9F9F9; | |
} | |
.css-table-cell { | |
display:table-cell; | |
width:30%; | |
padding:3%; | |
} | |
.css-table-cell:nth-child(2n+1){ | |
background-color: #cacaca; | |
} |
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 css="css-table"> | |
<div class="css-table-cell"></div> | |
<div class="css-table-cell"></div> | |
<div class="css-table-cell"></div> | |
</div> |
Thanks, dude!!! I'm gonna ignore IE7, it's the best solution!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Support: 93.86%
http://caniuse.com/css-table