Skip to content

Instantly share code, notes, and snippets.

@yashuvit89
Forked from anonymous/index.html
Created November 7, 2016 14:24
Show Gist options
  • Save yashuvit89/17bf2538be9d71cbc3452a38b6d2bb88 to your computer and use it in GitHub Desktop.
Save yashuvit89/17bf2538be9d71cbc3452a38b6d2bb88 to your computer and use it in GitHub Desktop.
Document // source http://jsbin.com/senitor
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style id="jsbin-css">
.grid{
width: 100%;
}
.row{
width: 100%;
background: gray;
}
*, *:after, *:before{
box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
}
.row:after, .row:before{
content: "";
display: table;
clear: both;
}
[class*=col-]{
float: left;
width: 16.66%;
background-color: #FFDCDC;
padding: 5px;
}
.col-1 > p{
background-color: #FFC2C2;
padding: 0;
margin: 0;
}
</style>
</head>
<body>
<div class="grid">
<div class="row">
<div class="col-1"><p>Col 1</p></div>
<div class="col-1"><p>Col 2</p></div>
<div class="col-1"><p>Col 3</p></div>
<div class="col-1"><p>Col 4</p></div>
<div class="col-1"><p>Col 5</p></div>
<div class="col-1"><p>Col 6</p></div>
</div>
<div class="row">
<div class="col-1"><p>Col 1</p></div>
<div class="col-1"><p>Col 2</p></div>
<div class="col-1"><p>Col 3</p></div>
<div class="col-1"><p>Col 4</p></div>
<div class="col-1"><p>Col 5</p></div>
<div class="col-1"><p>Col 6</p></div>
</div>
</div>
<script id="jsbin-source-css" type="text/css">.grid{
width: 100%;
}
.row{
width: 100%;
background: gray;
}
*, *:after, *:before{
box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
}
.row:after, .row:before{
content: "";
display: table;
clear: both;
}
[class*=col-]{
float: left;
width: 16.66%;
background-color: #FFDCDC;
padding: 5px;
}
.col-1 > p{
background-color: #FFC2C2;
padding: 0;
margin: 0;
}</script>
</body>
</html>
.grid{
width: 100%;
}
.row{
width: 100%;
background: gray;
}
*, *:after, *:before{
box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
}
.row:after, .row:before{
content: "";
display: table;
clear: both;
}
[class*=col-]{
float: left;
width: 16.66%;
background-color: #FFDCDC;
padding: 5px;
}
.col-1 > p{
background-color: #FFC2C2;
padding: 0;
margin: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment