<h1 class="title">Container</h1>
<div class="container text-center color1">
<div class="row color2">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 test-grid color3">
col-12
</div>
</div>
<div class="row color2">
<div class="col-xs-11 col-sm-11 col-md-11 col-lg-11 test-grid color4">
col-11
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 test-grid color5">
col-1
</div>
</div>
<div class="row color2">
<div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 test-grid color6">
col-10
</div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 test-grid color7">
col-2
</div>
</div>
<div class="row color2">
<div class="col-xs-9 col-sm-9 col-md-9 col-lg-9 test-grid color8">
col-9
</div>
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 test-grid color1">
col-3
</div>
</div>
<div class="row color2">
<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8 test-grid color2">
col-8
</div>
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 test-grid color3">
col-4
</div>
</div>
<div class="row color2">
<div class="col-xs-7 col-sm-7 col-md-7 col-lg-7 test-grid color4">
col-7
</div>
<div class="col-xs-5 col-sm-5 col-md-5 col-lg-5 test-grid color5">
col-5
</div>
</div>
<div class="row color2">
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 test-grid color6">
col-6
</div>
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 test-grid color7">
col-6
</div>
</div>
<div class="row color2">
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 test-grid color8">
col-4
</div>
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 test-grid color1">
col-4
</div>
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 test-grid color2">
col-4
</div>
</div>
<div class="row color2">
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 test-grid color3">
col-3
</div>
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 test-grid color4">
col-3
</div>
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 test-grid color5">
col-3
</div>
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 test-grid color6">
col-3
</div>
</div>
<div class="row color2">
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 test-grid color7">
col-2
</div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 test-grid color8">
col-2
</div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 test-grid color1">
col-2
</div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 test-grid color2">
col-2
</div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 test-grid color3">
col-2
</div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 test-grid color4">
col-2
</div>
</div>
<div class="row color2">
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 test-grid color5">
col-1
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 test-grid color6">
col-1
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 test-grid color7">
col-1
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 test-grid color8">
col-1
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 test-grid color1">
col-1
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 test-grid color2">
col-1
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 test-grid color3">
col-1
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 test-grid color4">
col-1
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 test-grid color5">
col-1
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 test-grid color6">
col-1
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 test-grid color7">
col-1
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 test-grid color8">
col-1
</div>
</div>
</div>
<div style="margin-bottom: 40px"></div>
<h1 class="title">Container-Fluid</h1>
<div class="container-fluid text-center color1">
<div class="row color2">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 test-grid color3">
col-12
</div>
</div>
<div class="row color2">
<div class="col-xs-11 col-sm-11 col-md-11 col-lg-11 test-grid color4">
col-11
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 test-grid color5">
col-1
</div>
</div>
<div class="row color2">
<div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 test-grid color6">
col-10
</div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 test-grid color7">
col-2
</div>
</div>
<div class="row color2">
<div class="col-xs-9 col-sm-9 col-md-9 col-lg-9 test-grid color8">
col-9
</div>
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 test-grid color1">
col-3
</div>
</div>
<div class="row color2">
<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8 test-grid color2">
col-8
</div>
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 test-grid color3">
col-4
</div>
</div>
<div class="row color2">
<div class="col-xs-7 col-sm-7 col-md-7 col-lg-7 test-grid color4">
col-7
</div>
<div class="col-xs-5 col-sm-5 col-md-5 col-lg-5 test-grid color5">
col-5
</div>
</div>
<div class="row color2">
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 test-grid color6">
col-6
</div>
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 test-grid color7">
col-6
</div>
</div>
<div class="row color2">
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 test-grid color8">
col-4
</div>
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 test-grid color1">
col-4
</div>
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 test-grid color2">
col-4
</div>
</div>
<div class="row color2">
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 test-grid color3">
col-3
</div>
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 test-grid color4">
col-3
</div>
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 test-grid color5">
col-3
</div>
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 test-grid color6">
col-3
</div>
</div>
<div class="row color2">
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 test-grid color7">
col-2
</div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 test-grid color8">
col-2
</div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 test-grid color1">
col-2
</div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 test-grid color2">
col-2
</div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 test-grid color3">
col-2
</div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 test-grid color4">
col-2
</div>
</div>
<div class="row color2">
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 test-grid color5">
col-1
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 test-grid color6">
col-1
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 test-grid color7">
col-1
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 test-grid color8">
col-1
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 test-grid color1">
col-1
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 test-grid color2">
col-1
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 test-grid color3">
col-1
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 test-grid color4">
col-1
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 test-grid color5">
col-1
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 test-grid color6">
col-1
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 test-grid color7">
col-1
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 test-grid color8">
col-1
</div>
</div>
</div>
body {
margin: 40px 0;
}
.text-center {
text-align: center;
}
.test-grid {
height: 50px;
font-weight: bold;
}
.title {
margin-bottom: 10px;
font-size: 28px;
}
.color1 {
background-color: tomato;
}
.color2 {
background-color: green;
}
.color3 {
background-color: orange;
}
.color4 {
background-color: blueviolet;
}
.color5 {
background-color: blue;
}
.color6 {
background-color: yellow;
}
.color7 {
background-color: red;
}
.color8 {
background-color: cyan;
}
This Pen doesn't use any external JavaScript resources.