Is there a way to hide the scroll bars for Microsoft Chrome, and only hide them when there is no where to scroll? The following div/styles always display the scroll bar, horizontal and vertical. Even when the height is larger than the content.
<div style="background: red; width: 200px; height: 100px; overflow: scroll">
This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test.This is a test. This is a test. This is a test. This is a test. This is a test.This is a test. This is a test. This is a test. This is a test. This is a test.This is a test. This is a test. This is a test. This is a test. This is a test.
</div>
The following hides the scroll bar:
::webkit-scrollbar{
display:none
}
But I want them to show when there is somewhere to scroll
Is there also a way to hide only the horizontal scroll bar?