Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Using tinyscrollbar actually requires a bit of work. The things you need to do are: 1. You need to define a scrollbar, and a viewport div 2. You need to style them 3. You should get rid of overflow:scroll, as tinyscrollbar does not override the overflow functionality, and you'll get the default scrollbar alongside the tiny one.</p> <p>This is the code you should use:</p> <pre><code> &lt;html&gt; &lt;head&gt; &lt;link rel="stylesheet" type="text/css" href="scrolltest.css" /&gt; &lt;script type="text/javascript" src="http://code.jquery.com/jquery-latest.js" &gt;&lt;/script&gt; &lt;script src="jquery.tinyscrollbar.js"&gt;&lt;/script&gt; &lt;script&gt; $(document).ready(function () { $("#chatlist").tinyscrollbar(); }); &lt;/script&gt; &lt;style&gt; #chatlist { width: 50px; height:140px; border:1px solid black; } #chatlist .viewport { width: 50px; height: 140px; overflow: hidden; position: relative; } #chatlist .overview { list-style: none; position: absolute; left: 0; top: 0; } #chatlist .thumb .end, #chatlist .thumb { background-color: #003D5D; } #chatlist .scrollbar { position: relative; float: right; width: 15px; } #chatlist .track { background-color: #D8EEFD; height: 100%; width:13px; position: relative; padding: 0 1px; } #chatlist .thumb { height: 20px; width: 13px; cursor: pointer; overflow: hidden; position: absolute; top: 0; } #chatlist .thumb .end { overflow: hidden; height: 5px; width: 13px; } #chatlist .disable{ display: none; } .noSelect { user-select: none; -o-user-select: none; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="chatlist" &gt; &lt;div class="scrollbar"&gt;&lt;div class="track"&gt;&lt;div class="thumb"&gt;&lt;div class="end"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;div class="viewport"&gt; &lt;div class="overview"&gt; &lt;ul&gt; &lt;li&gt;item&lt;/li&gt; &lt;li&gt;item&lt;/li&gt; &lt;li&gt;item&lt;/li&gt; &lt;li&gt;item&lt;/li&gt; &lt;li&gt;item&lt;/li&gt; &lt;li&gt;item&lt;/li&gt; &lt;li&gt;item&lt;/li&gt; &lt;li&gt;item&lt;/li&gt; &lt;li&gt;item&lt;/li&gt; &lt;li&gt;item&lt;/li&gt; &lt;li&gt;item&lt;/li&gt; &lt;li&gt;item&lt;/li&gt; &lt;li&gt;item&lt;/li&gt; &lt;li&gt;item&lt;/li&gt; &lt;li&gt;item&lt;/li&gt; &lt;li&gt;item&lt;/li&gt; &lt;li&gt;item&lt;/li&gt; &lt;li&gt;item&lt;/li&gt; &lt;li&gt;item&lt;/li&gt; &lt;li&gt;item&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </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.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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