I am testing Twitter Bootstrap and got stuck with basic scaffolding with rows. I revisited their documentation number of times and I can see nesting columns where you can basically nest columns within a column but I cannot locate the capability of combining rows into one and have it aligned with column next to the uncombined rows.
Below picture should illustrate what I want to accomplish.
The only workaround solution I came across is using tables but I don't like this idea as my view is that the responsiveness wouldn't work with the use of tables.
Does anyone have any elegant solution to this? Most of the web layout I do will need fine level of flexibility so it will be great if I could pick up something useful here.
Paul's answer seems to defeat the purpose of bootstrap; that of being responsive to the viewport / screen size.
By nesting rows and columns you can achieve the same result, while retaining responsiveness.
Here is an up-to-date response to this problem;
You can view the codepen here.
Check this one. hope it will help full for you.
http://jsfiddle.net/j6amM/
You should use bootstrap column nesting.
See Bootstrap 3 or Bootstrap 4:
http://jsfiddle.net/DRanJ/125/
(In Fiddle screen, enlarge your test screen to see the result, because I'm using col-md-*, then responsive stacks columns)
Note: I am not sure that BS2 allows columns nesting, but in the answer of Paul Keister, the columns nesting is not used. You should use it and avoid to reinvente css while bootstrap do well.
The columns height are auto, if you add a second line (like I do in my example), column height adapt itself.
Divs stack vertically by default, so there is no need for special handling of "rows" within a column.
Here's the fiddle.
Note: This was for Bootstrap 2 (relevant when the question was asked).
You can accomplish this by using
row-fluid
to make a fluid (percentage) based row inside an existingblock
.Here's a JSFiddle example.
I did notice that there was an odd left margin that appears (or does not appear) for the spans inside of the
row-fluid
after the first one. This can be fixed with a small CSS tweak (it's the same CSS that is applied to the first child, expanded to those past the first child):