Skip to content

Instantly share code, notes, and snippets.

Created August 2, 2017 18:46
Show Gist options
  • Save anonymous/f494ef52e8faa9ebdd1326d621fc52c7 to your computer and use it in GitHub Desktop.
Save anonymous/f494ef52e8faa9ebdd1326d621fc52c7 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/kuqirobine
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.verb-wrapper{
width:400px;
border: 1px solid green;
}
.level {
width: calc(100% - 20px);
border: 1px solid orange;
margin: 10px;
}
.title{
text-align: center;
}
.level-two-wrap,
.ele-wrap{
display:flex;
justify-content:center;
}
.ele{
width:25%;
text-align:center;
border:1px solid red;
}
.section-one{
width:75%
}
.section-two{
width:25%;
}
.section-one .ele{
width:25%;
}
.section-two .ele{
width:100%;
}
</style>
</head>
<body>
<div class="main-container">
<div class="verb-wrapper">
<div class="level">
<div class="title">Title one</div>
<div class="ele-wrap">
<div class="ele">X</div>
<div class="ele">X</div>
<div class="ele">X</div>
<div class="ele">X</div>
</div>
</div>
<div class="level">
<div class="level-two-wrap">
<div class="section-one">
<div class="title">Title one</div>
<div class="ele-wrap">
<div class="ele">X</div>
<div class="ele">X</div>
<div class="ele">X</div>
</div>
</div>
<div class="section-two">
<div class="title">Title one</div>
<div class="ele single">X</div>
</div>
</div>
</div>
<div class="level">
<div class="title">Title one</div>
<div class="ele-wrap">
<div class="ele">X</div>
<div class="ele">X</div>
<div class="ele">X</div>
</div>
</div>
</div>
</div>
<script id="jsbin-source-css" type="text/css"> .verb-wrapper{
width:400px;
border: 1px solid green;
}
.level {
width: calc(100% - 20px);
border: 1px solid orange;
margin: 10px;
}
.title{
text-align: center;
}
.level-two-wrap,
.ele-wrap{
display:flex;
justify-content:center;
}
.ele{
width:25%;
text-align:center;
border:1px solid red;
}
.section-one{
width:75%
}
.section-two{
width:25%;
}
.section-one .ele{
width:25%;
}
.section-two .ele{
width:100%;
}</script>
</body>
</html>
.verb-wrapper{
width:400px;
border: 1px solid green;
}
.level {
width: calc(100% - 20px);
border: 1px solid orange;
margin: 10px;
}
.title{
text-align: center;
}
.level-two-wrap,
.ele-wrap{
display:flex;
justify-content:center;
}
.ele{
width:25%;
text-align:center;
border:1px solid red;
}
.section-one{
width:75%
}
.section-two{
width:25%;
}
.section-one .ele{
width:25%;
}
.section-two .ele{
width:100%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment