To hide the scroll bar if not needed with CSS, we set the overflow-y
property.
For instance, we write
div {
overflow-y: auto;
}
to only show the vertical scrollbar only when needed with overflow-y: auto;
.
To hide the scroll bar if not needed with CSS, we set the overflow-y
property.
For instance, we write
div {
overflow-y: auto;
}
to only show the vertical scrollbar only when needed with overflow-y: auto;
.