I’d like to create single row with two overlapping columns like that:
.row
.col-sm-7
.col-sm-6
so that 6th column of the grid is overlapped.
It’s partially possible with a .col-sm-pull-1
:
.row
.col-sm-6
.col-sm-6.col-sm-pull-1
but the 12th column becomes empty. I tried:
.row
.col-sm-6
.col-sm-7.col-sm-pull-1
but the second column moves to the next row.
I found the answer for Bootstrap 2 (How to overlap columns using twitter bootstrap?). Is it possible with the Bootstrap 3?
3
Answers
You need to place the new column under the same div as the one you want to overlap.
Here is an example
Here’s a jfiddle example: http://jsfiddle.net/NachoSupreme/o0fs78fv/
Fiddle If you want to overlap the two columns in one row, you’ll need negative margins. The bootstrap gutters/margins are layed out using positive and negative margins. I would recommend ids for the columns and then you can use z-index if you want one over the other one.
So change right margin on first and left margin on the second.
How the grid works is a great reference for how its built.
After seeing your image example, I think perhaps this is what you are looking for. (I made them overlap 2 columns because that will center it better)