Note that there are some explanatory texts on larger screens.

plurals
  1. POAligning DIVs beside each other and Adding an Horizontal ScrollBar in HTML
    primarykey
    data
    text
    <p>I have a Parent Div <code>chatRooms</code> , inside it there's many <code>chatRoom</code>'s, and the <code>chatRoomName</code> Div was made only for proper formatting.</p> <p>My Intention is to make each <code>chatRoom</code> <code>float:left;</code> beside the previous <code>chatRoom</code>, then have an horizontal scroll bar in case the maximum width of all <code>chatRoom</code>'s exceeds the width of the parent div <code>chatRooms</code>, and this is actually working but the exceeding <code>chatRoom</code>'s are being placed on a second line, not beside the last <code>chatRoom</code>, I want them all to say on the same line, even if some of them can't be seen, but I will be able to see them when I scroll right.</p> <pre><code>&lt;div id="chatRooms"&gt; &lt;div class="chatRoom"&gt; &lt;div class="chatRoomName"&gt; IUL &lt;/div&gt; &lt;/div&gt; &lt;div class="chatRoom"&gt; &lt;div class="chatRoomName"&gt; CCE &lt;/div&gt; &lt;/div&gt; &lt;div class="chatRoom"&gt; &lt;div class="chatRoomName"&gt; CCE &lt;/div&gt; &lt;/div&gt; &lt;div class="chatRoom"&gt; &lt;div class="chatRoomName"&gt; CCE &lt;/div&gt; &lt;/div&gt; &lt;div class="chatRoom"&gt; &lt;div class="chatRoomName"&gt; CCE &lt;/div&gt; &lt;/div&gt; &lt;div class="chatRoom"&gt; &lt;div class="chatRoomName"&gt; CCE &lt;/div&gt; &lt;/div&gt; &lt;div class="chatRoom"&gt; &lt;div class="chatRoomName"&gt; CCE &lt;/div&gt; &lt;/div&gt; &lt;div class="chatRoom"&gt; &lt;div class="chatRoomName"&gt; CCE &lt;/div&gt; &lt;/div&gt; &lt;div class="chatRoom"&gt; &lt;div class="chatRoomName"&gt; CCE &lt;/div&gt; &lt;/div&gt; &lt;div class="chatRoom"&gt; &lt;div class="chatRoomName"&gt; CCE &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>CSS:</p> <pre><code>#chatRooms { border-style:solid; border-width: 1px; border-color: green; overflow-x:scroll; margin-top:5px; height:30px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; } .chatRoom { width:100px; border-style:solid; border-color:green; margin-right:1px; float:left; cursor:pointer; } .chatRoomName:hover { color:chartreuse; } .chatRoomName { background-color:green; border-style:solid; border-color:green; color:white; } </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
    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