Created
February 21, 2016 15:18
-
-
Save LongHairedHacker/3feee4ad186dd5287501 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
<html> | |
<head> | |
<style type="text/css"> | |
.container { | |
display: flex; /* or inline-flex */ | |
flex-direction: row; | |
flex-wrap: wrap; | |
justify-content: space-around; | |
align-content: stretch; | |
} | |
.widgetbox { | |
flex-grow: 1; | |
flex-shrink: 1; | |
text-align: center; | |
display: flex; | |
flex-direction: column; | |
justify-content: space-around; | |
} | |
.widgetbox-lg { | |
flex-basis: 50%; | |
} | |
.widget { | |
background-color: orange; | |
margin: 2px; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="widgetbox"> | |
<div class="widget"> | |
<img src="http://dummyimage.com/200x4:3"/> | |
<br/> | |
<br/> | |
Bar | |
</div> | |
</div> | |
<div class="widgetbox widgetbox-lg"> | |
<div class="widget"> | |
<img src="http://dummyimage.com/400x4:3"/> | |
</div> | |
</div> | |
<div class="widgetbox"> | |
<div class="widget"> | |
<img src="http://dummyimage.com/100x4:3"/> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment