-
-
Save yashuvit89/17bf2538be9d71cbc3452a38b6d2bb88 to your computer and use it in GitHub Desktop.
Document // source http://jsbin.com/senitor
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 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> |
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
.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