Created
July 22, 2014 21:53
-
-
Save jaredly/60592d2f3ce9263627ae to your computer and use it in GitHub Desktop.
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
var rows = []; | |
for (var i=0; i<items.length; i+=2){ | |
rows.push(<div className="parent-row"> | |
<div className="parent-card"> | |
{items[i]} | |
</div> | |
<div className="parent-card"> | |
{items[i+1]} | |
</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
.parent-row { | |
display: flex; | |
align-items: stretch; | |
} | |
.parent-card { | |
flex: 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment