I'm using bootstrap 3.3.7. I have a four divs that have a width base on col-xs-2
of bootstrap.
This is my code:
<div class="container">
<div class="row">
<div id="first" class="col-sm-2 col-sm-offset-1 rec">
</div>
<div id="second" class="col-sm-2 col-sm-offset-1 rec">
</div>
<div id="third" class="col-sm-2 col-sm-offset-1 rec">
</div>
<div id="four" class="col-sm-2 col-sm-offset-1 rec">
sss
</div>
</div>
</div>
CSS:
.rec {
height: 100px;
}
#first {
background-color: red;
}
#second {
background-color: blue;
}
#third {
background-color: yellow;
}
#four {
background-color: green;
}
I wants that the four divs will be in the center of the screen, and I can't achieved it yet - See fiddle: https://jsfiddle.net/ptwbn2av/483/
If you have an idea without col-sm-offset
it will be good also.