Skip to content

Instantly share code, notes, and snippets.

@HereIsJade
Created August 7, 2018 19:25
Show Gist options
  • Save HereIsJade/ebc722abbe702f28fe8f50688e0aff8a to your computer and use it in GitHub Desktop.
Save HereIsJade/ebc722abbe702f28fe8f50688e0aff8a to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/parutib
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
*{
padding:0;
margin:0;
}
ul{
list-style:none;
}
.container{
height:100vh;
display:flex;
flex-direction:column;
}
header{
background: #ddd;
height:100px;
}
main{
flex-grow:1;
overflow: auto;
}
footer{
background:lightblue;
}
footer>ul{
display:flex;
height:80px;
}
footer>ul>li{
border:1px solid black;
flex-grow:1;
}
</style>
</head>
<body>
<div class="container">
<header>Header</header>
<main>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
<p>main</p>
</main>
<footer>
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</footer>
</div>
<script id="jsbin-source-css" type="text/css">*{
padding:0;
margin:0;
}
ul{
list-style:none;
}
.container{
height:100vh;
display:flex;
flex-direction:column;
}
header{
background: #ddd;
height:100px;
}
main{
flex-grow:1;
overflow: auto;
}
footer{
background:lightblue;
}
footer>ul{
display:flex;
height:80px;
}
footer>ul>li{
border:1px solid black;
flex-grow:1;
}</script>
</body>
</html>
*{
padding:0;
margin:0;
}
ul{
list-style:none;
}
.container{
height:100vh;
display:flex;
flex-direction:column;
}
header{
background: #ddd;
height:100px;
}
main{
flex-grow:1;
overflow: auto;
}
footer{
background:lightblue;
}
footer>ul{
display:flex;
height:80px;
}
footer>ul>li{
border:1px solid black;
flex-grow:1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment