Sometimes, we want to make the main scrollbar always visible with CSS.
In this article, we’ll look at how to make the main scrollbar always visible with CSS.
How to make the main scrollbar always visible with CSS?
To make the main scrollbar always visible with CSS, we set the overflow
property.
For instance, we write
html {
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;
}
to set trhe overflow-y
propwerty to scroll
to always show the vertical scrollbar on the page.
Conclusion
To make the main scrollbar always visible with CSS, we set the overflow
property.