.grid-container {
width : 100%;
max-width : 1200px;
}
/*-- our cleafix hack -- */
.row:before,.row:after {
content:"";
display: table ;
clear:both;
}
[class*='col-'] {
float: left;
min-height: 1px;
}
.col-1{
width: 16.66%;
}
.col-2{ 33.33%;
}
.col-3{ 50%;
}
.col-4{ 66.664%;
}
.col-5{ 83.33%;
}
.col-6{ 100%;
}
-- setting border box on all elements inside the grid --
.grid-container *{
box-sizing: border-box;
}
[class*='col-'] { 16.66%;
-- our gutter --*/
padding: 12px;
}
<div class="grid-container outline">
="row">
="col-1"><p>col-1</></div>
>
="col-2">col-2="col-3">col-3>
>
.grid-container{
max-width: 1200px;
}
display:
clear:both;
}
min-height:-- our gutter -- 12px;
background-color: #FFDCDC;
}
.col-1{ width: 16.66%; } 33.33%; } 50%; } 66.66%; } 83.33%; } 100%; }
.outline,.outline *{
outline: 1px solid #F6A1A1;
}
-- some extra column content styling --
[class*='col-'] > p {
background-color: #FFC2C2;
padding: 0;
margin:
text-align: center;
color: white;
}
@media all and (max-width:800px){
.col-1{ width: 33.33%; }
.col-2{ 50%; }
.col-3{ 83.33%; }
.col-4{ 100%; }
.col-5{
.col-6{ 100%; }
.row .col-2:last-of-type{
width: 100%;
}
.row .col-5 ~ .col-1{
}
@media all and (max-width:650px){
}
="col-4">col-4="col-5">col-5="col-6">col-6>