How can I get Bootstrap four columns grid span two rows on a second column?
Hi, if somene can help me to achieve the kind of portfolio grid with 4 columns (see the pic enter image description here) where second column span 2 rows. (have a plan to put images with hover caption effect inside).
I tried with this solutions, but havent found the right one. Links below:
How can I get a Bootstrap column to span multiple rows?
How to make a div in the middle of two others to span multiple rows, like rowspan in tables
Twitter Bootstrap 3 rowspan and reorder
Thank you in advance!
2
Answers
Assuming all cells have the same height (as the the image shows), all you have to do is create a four columns structure, and within them put one or two elements.
Something like that:
You cannot do this with bootstrap column grid style . The tallest column will push the bottom row . You can do this using masonry which suits very nice with bootstrap grid columns . See it here Masonry page