HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Learn how to always show scrollbars with CSS
Add overflow: scroll;
to show both the
horizontal and vertical scrollbar:
To only show the vertical scrollbar, or only the horizontal scrollbar, use overflow-y
or overflow-x
:
body {
overflow-y: scroll; /* Show vertical scrollbar */
overflow-x: scroll; /* Show horizontal scrollbar */
}
Try it Yourself »
Tip: To learn more about the overflow
property, go to our CSS Overflow Tutorial or CSS overflow Property Reference.