<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: scrollbar code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Fri, 25 Jul 2008 03:09:11 GMT</pubDate>
    <description>DZone Snippets: scrollbar code</description>
    <item>
      <title>Force scrollbar with CSS</title>
      <link>http://snippets.dzone.com/posts/show/5327</link>
      <description>// Force Scrollbar&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;html {overflow: scroll}&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Sun, 06 Apr 2008 21:11:26 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5327</guid>
      <author>t0b1 (T.B.)</author>
    </item>
    <item>
      <title>get size of scrollbar</title>
      <link>http://snippets.dzone.com/posts/show/2995</link>
      <description>// description of your code here&lt;br /&gt;from http://www.fleegix.org/articles/2006/05/30/getting-the-scrollbar-width-in-pixels&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;function getScrollerWidth() {&lt;br /&gt;    var scr = null;&lt;br /&gt;    var inn = null;&lt;br /&gt;    var wNoScroll = 0;&lt;br /&gt;    var wScroll = 0;&lt;br /&gt;&lt;br /&gt;    // Outer scrolling div&lt;br /&gt;    scr = document.createElement('div');&lt;br /&gt;    scr.style.position = 'absolute';&lt;br /&gt;    scr.style.top = '-1000px';&lt;br /&gt;    scr.style.left = '-1000px';&lt;br /&gt;    scr.style.width = '100px';&lt;br /&gt;    scr.style.height = '50px';&lt;br /&gt;    // Start with no scrollbar&lt;br /&gt;    scr.style.overflow = 'hidden';&lt;br /&gt;&lt;br /&gt;    // Inner content div&lt;br /&gt;    inn = document.createElement('div');&lt;br /&gt;    inn.style.width = '100%';&lt;br /&gt;    inn.style.height = '200px';&lt;br /&gt;&lt;br /&gt;    // Put the inner div in the scrolling div&lt;br /&gt;    scr.appendChild(inn);&lt;br /&gt;    // Append the scrolling div to the doc&lt;br /&gt;    document.body.appendChild(scr);&lt;br /&gt;&lt;br /&gt;    // Width of the inner div sans scrollbar&lt;br /&gt;    wNoScroll = inn.offsetWidth;&lt;br /&gt;    // Add the scrollbar&lt;br /&gt;    scr.style.overflow = 'auto';&lt;br /&gt;    // Width of the inner div width scrollbar&lt;br /&gt;    wScroll = inn.offsetWidth;&lt;br /&gt;&lt;br /&gt;    // Remove the scrolling div from the doc&lt;br /&gt;    document.body.removeChild(&lt;br /&gt;        document.body.lastChild);&lt;br /&gt;&lt;br /&gt;    // Pixel width of the scroller&lt;br /&gt;    return (wNoScroll - wScroll);&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Tue, 14 Nov 2006 04:30:22 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/2995</guid>
      <author>superjoe (joe)</author>
    </item>
  </channel>
</rss>
