Skip to content

Instantly share code, notes, and snippets.

Created August 8, 2016 15:04
Show Gist options
  • Save anonymous/89d1c3a921dfb42de514fb173e3b9a35 to your computer and use it in GitHub Desktop.
Save anonymous/89d1c3a921dfb42de514fb173e3b9a35 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/pelucokuji
<!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>
.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