Quantcast
Channel: Nifty Snippets
Viewing all articles
Browse latest Browse all 35

Measuring Scrollbar Size

$
0
0
Normally we want to avoid doing this sort of thing, but sometimes you just end up having no other option: Recently I couldn't avoid doing some sizing logic in JavaScript rather than CSS and markup, and I had to know the size of the scrollbars on specific elements. I found this post by Alexandre Gomes (which in turn was based on a MooTools forum thread; those forums are gone now), which shows a

Viewing all articles
Browse latest Browse all 35

Trending Articles