Â
How can I code it so that if a scroll bar needs to appear the width of the div increases by at least the width of the scroll bar? As the div's items are relatively small I don't want nearly half their width covered by a scroll bar.
How about making the scroll-bar thin like so:
.scroll {
scrollbar-width: thin;
}
Then attach that style to the div.
scroll-bar hasn't got a width and the committee is is still debating about it. So you are at the mercy of the browser used by the user/customer.
With over 1.2 billion devices now running Windows 10, customer satisfaction is higher than any previous version of windows.