I want to have a row where columns are going to be horizontally scrollable:
As you can see the row is the outer block (with padding). Inside of it, there are columns where each has some span*
class such as span3
. And since all of the columns do not fit in the row, the scrollbar is on the bottom.
Here is what I tried doing (with inline css) and so far no luck.
<div class="row">
<!-- the parent element which will have scrollbar -->
<div class="span12" style="white-space: nowrap; overflow-x: auto;">
<div class="row">
<div class="span3" style="display: inline-block;">content here</div>
<div class="span3" style="display: inline-block;">content here</div>
<div class="span3" style="display: inline-block;">content here</div>
...
<div>
</div>
</div>
But then the columns just wrap once they can't fit into the row. How can I do this?
Thank you.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…