Created
May 15, 2013 19:03
-
-
Save data-enhanced/5586434 to your computer and use it in GitHub Desktop.
Grid of items using inline-table to handle items of various heights by keeping each row the height of the tallest item
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
.products-grid { | |
display: table; | |
} | |
.product-item { | |
display: inline-table; | |
vertical-align: top; // needed by Safari | |
width: 46%; | |
margin-left: 2%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment