Note that there are some explanatory texts on larger screens.

plurals
  1. POscroll a collection of divs inside a main div
    primarykey
    data
    text
    <p>I have a group of small div boxes that go horizontally along the top of my page , There could be up to 50 of these that I want to display as scrollable inside an existing larger div . I had set the main 'FloatMain' div to overflow:scroll and I though this would be the answer but the small divs just keep over flowing the main div. I have looked at all the solutions on here but nothing seems to help me with me particular problem, Any help please ? </p> <pre><code> &lt;div id="FloatMain"&gt; &lt;div title="Driver Details" id="i1001" class="divd" style="left:100px"&gt;i1001&lt;br&gt;Paul Stott&lt;/div&gt; &lt;div title="Driver Details" id="i1002" class="divd" style="left:155px"&gt;i1002&lt;br&gt;Simon Latcham&lt;/div&gt; &lt;div title="Driver Details" id="i1003" class="divd" style="left:210px"&gt;i1003&lt;br&gt;Phil Murphy&lt;/div&gt; &lt;div title="Driver Details" id="i1004" class="divd" style="left:265px"&gt;i1004&lt;br&gt;Lee Taylor &lt;/div&gt; &lt;div title="Driver Details" id="i1005" class="divd" style="left:320px"&gt;i1005&lt;br&gt;Martin Macklin&lt;/div&gt; &lt;div title="Driver Details" id="i1006" class="divd" style="left:375px"&gt;i1006&lt;br&gt;&lt;/div&gt; etc ... more of these ..... &lt;/div&gt; </code></pre> <p>The style details </p> <pre><code>.divd { position:fixed ; width: 50px; height: 50px; top: 50px ; left: 50px ; border: 1px solid black; background-color:#999; border-radius:5px; z-index:200; } #FloatMain { position:fixed ; width: 300px; height: 300px; top: 40px ; border: 2px solid black; background-color:#FFF; color:#000; left:50% ; margin-left:-150px; display:none ; border-radius:7px; z-index:10; } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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