 <p>this trick may help you on getting the scrollbar width for any browser, you can use it as a function:</p> <p><a href="http://stackoverflow.com/questions/986937/how-can-i-get-the-browsers-scrollbar-sizes">How can I get the browser&#39;s scrollbar sizes?</a></p> <p>and if you're woried about leaving the white space if the scrollbar isn't showing, you can force it with css:</p> <pre><code>body { overflow-y: scroll; } </code></pre>