Given a with a fixed width, I would like its \"active width\" to be constant (in px). By \"active width\" I mean the
width
px
With jQuery:
var t = jQuery('').css({ position: 'absolute', top: '-100px', overflowX: 'hidden', overflowY: 'scroll' }).prependTo('body'), w = t[0].offsetWidth - t[0].clientWidth; console.log('bar width = ', w); t.remove();
bar width = 18