how to hide the scrollbar in css code example
Example 1: hide scrollbar css
.scrollbar-hidden::-webkit-scrollbar {
display: none;
}
.scrollbar-hidden {
-ms-overflow-style: none;
scrollbar-width: none;
}
Example 2: css hide scrollbar but allow scroll
html {
overflow: scroll;
}
::-webkit-scrollbar {
width: 0px;
background: transparent;
}
Example 3: remove scrollbar css
.example::-webkit-scrollbar {
display: none;
}
.example {
-ms-overflow-style: none;
}
Example 4: hide scrollbar css
html {
overflow: scroll;
overflow-x: hidden;
}
::-webkit-scrollbar {
width: 0px;
::-webkit-scrollbar-thumb {
background: #FF0000;
}
Example 5: how to hide the scrollbar in css
::-webkit-scrollbar {
display: none;
}
Example 6: how to get my footer to the bottom of the page using css
#page-container {
position: relative;
min-height: 100vh;
}
#content-wrap {
padding-bottom: 2.5rem;
}
#footer {
position: absolute;
bottom: 0;
width: 100%;
height: 2.5rem;
}