I have come across an annoying aspect of building web apps -- scrollbars affect the width of elements and therefore affect the positioning of borders, etc.

Apparently Macs have an option in System Preferences --> General (for "show scroll bars") called "Automatically based on mouse or trackpad" and another option called "always".

The choice that the user makes here can affect the layout of my web app, and it is entirely outside of my control

Also, the scrollbars that appear based on the mouse and trackpad hover over the content instead of actually affecting the width of the HTML elements, and this has a big impact on the layout of the site, obviously.

One option is to set the following CSS:

```
* {
    -ms-overflow-style: none;
}

```

This will allow scrolling but prevent the scrollbars from being shown, but it only affects IE.

I can install this extension for Chrome (called "No Scrollbars Please"): <https://chrome.google.com/webstore/detail/no-scroll-bars-please/ahnbemfjhoibkhlijfbbjdjafbmhimdn/related?hl=en> but I don't necessarily want to force my users to intall a third-party extension I have no connection with and in addition I don't want to affect scrollbars on other websites by recommending this option.

What can I do? I want the solution to work on all browser-OS combinations.