I've been trying all day to get a container to display its content in the form of columns and expand towards the side instead of down when the number of children div
's increases. I've tried everything from -vendor-box-orient
layout to inline-block
, nothing seems to be working. Here is the use case.
<div class="container">
<div class="row">
<div class="item">
</div>
<div class="item">
</div>
</div>
</div>
The .container
is supposed to be overflow-x:scroll
while .row
is supposed to exceed .container
if it has enough children to do so, instead of leaving overflow visible. So, how can I get .row
to collapse to the width of its collective children as it would work if it was vertical?
Use case: JSfiddle