Skip to content

Instantly share code, notes, and snippets.

@data-enhanced
Created May 15, 2013 19:03
Show Gist options
  • Save data-enhanced/5586434 to your computer and use it in GitHub Desktop.
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
.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