Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You should have a container for all the <code>&lt;div&gt;</code> that has <code>width</code> equal to the sum of all <code>&lt;div&gt;</code>. Then the parent of this container has to have <code>overflow: auto</code>.</p> <p>If you don't know the total width prior to the render you can use JS to calculate it.</p> <p>Continuing your example:</p> <pre><code>&lt;div class="row-fluid"&gt; &lt;div class="span12"&gt; &lt;!-- Changed from `hidden` to `auto`. --&gt; &lt;div style="overflow:auto;width:90%;"&gt; &lt;!-- This is the div that does the trick: --&gt; &lt;div style="width:1200px;"&gt; &lt;div style="display:inline-block;width:100px;"&gt;some content&lt;/div&gt; &lt;div style="display:inline-block;width:100px;"&gt;some content&lt;/div&gt; &lt;div style="display:inline-block;width:100px;"&gt;some content&lt;/div&gt; &lt;div style="display:inline-block;width:100px;"&gt;some content&lt;/div&gt; &lt;div style="display:inline-block;width:100px;"&gt;some content&lt;/div&gt; &lt;div style="display:inline-block;width:100px;"&gt;some content&lt;/div&gt; &lt;div style="display:inline-block;width:100px;"&gt;some content&lt;/div&gt; &lt;div style="display:inline-block;width:100px;"&gt;some content&lt;/div&gt; &lt;div style="display:inline-block;width:100px;"&gt;some content&lt;/div&gt; &lt;div style="display:inline-block;width:100px;"&gt;some content&lt;/div&gt; &lt;div style="display:inline-block;width:100px;"&gt;some content&lt;/div&gt; &lt;div style="display:inline-block;width:100px;"&gt;some content&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload