Created
August 8, 2016 15:04
-
-
Save anonymous/89d1c3a921dfb42de514fb173e3b9a35 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/pelucokuji
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
.main { | |
border: 1px solid grey; | |
} | |
.row { | |
display: flex; | |
flex-direction: row; | |
align-content: space-between; | |
} | |
.cell { | |
flex: 1; | |
border-right: 1px solid grey; | |
} | |
.secondary { | |
display: flex; | |
flex-direction: row; | |
align-content: space-between; | |
} | |
.secondary > div { | |
flex: 1; | |
border-right: 1px solid grey; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="main"> | |
<div class="row"> | |
<div class="cell" style="flex: 7 1 0;"> | |
<div class="primary">cell1</div> | |
<div class="secondary"> | |
<div>hi</div> | |
<div>bye</div> | |
<div>bye</div> | |
<div>bye</div> | |
<div>bye</div> | |
<div>bye</div> | |
<div>bye</div> | |
</div> | |
</div> | |
<div class="cell" style="flex: 3 1 0;"> | |
<div class="primary">cell1</div> | |
<div class="secondary"> | |
<div>hi</div> | |
<div>hi</div> | |
<div>bye</div> | |
</div> | |
</div> | |
<div class="cell" style="flex: 2 1 0;"> | |
<div class="primary">cell1</div> | |
<div class="secondary"> | |
<div>hi</div> | |
<div>bye</div> | |
</div> | |
</div> | |
<div class="cell" style="flex: 1 1 0;"> | |
<div class="primary">cell1</div> | |
<div class="secondary"> | |
<div>hi</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
<script id="jsbin-source-css" type="text/css">.main{ | |
border: 1px solid grey; | |
} | |
.row{ | |
display: flex; | |
flex-direction: row; | |
align-content: space-between; | |
} | |
.cell{ | |
flex: 1; | |
border-right: 1px solid grey; | |
} | |
.secondary { | |
display: flex; | |
flex-direction: row; | |
align-content: space-between; | |
> div { | |
flex: 1; | |
border-right: 1px solid grey; | |
} | |
}</script> | |
</body> | |
</html> |
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
.main { | |
border: 1px solid grey; | |
} | |
.row { | |
display: flex; | |
flex-direction: row; | |
align-content: space-between; | |
} | |
.cell { | |
flex: 1; | |
border-right: 1px solid grey; | |
} | |
.secondary { | |
display: flex; | |
flex-direction: row; | |
align-content: space-between; | |
} | |
.secondary > div { | |
flex: 1; | |
border-right: 1px solid grey; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment