Im trying to get a row with multiple columns (dynamic with no max) and therefore to get an horizontal scroll.
When i insert a new column that exceeds the size 12 of bootstrap, it takes that column to a new line. What I want is to preserve that column in the same line and to get the horizontal scroll view.
Tried already with something like this, but didn't worked...
<div class="span11" style="overflow: auto">
<div class="row-fluid">
<div class="col-lg-3">COL1</div>
<div class="col-lg-3">COL1</div>
<div class="col-lg-3">COL1</div>
<div class="col-lg-3">COL1</div>
<div class="col-lg-3">COL1</div>
<div class="col-lg-3">COL1</div>
<div class="col-lg-3">COL1</div>
</div>
</div>
row-fluid need the style attribute " white-space: nowrap; " and the divs inside need the style attribute " display: inline-block; "
.row-fluid{
white-space: nowrap;
}
.row-fluid .col-lg-3{
display: inline-block;
}
try it
Larger screen will also need float: none;
in col-
classes.
.row-fluid {
overflow: auto;
white-space: nowrap;
}
.row-fluid .col-lg-3 {
display: inline-block;
float: none;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With