Disable Scrollbar Css Code Example


Example 1: hide scrollbar css


/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hidden::-webkit-scrollbar {
display: none;
}

/* Hide scrollbar for IE, Edge add Firefox */
.scrollbar-hidden {
-ms-overflow-style: none;
scrollbar-width: none; /* Firefox */
}

Example 2: remove scrollbar css


/* Hide scrollbar for Chrome, Safari and Opera */
.example::-webkit-scrollbar {
display: none;
}

/* Hide scrollbar for IE and Edge */
.example {
-ms-overflow-style: none;
}

Example 3: disable scroll css


/* Answer to: "disable scroll css" */

/*
You must set the height and overflow of the body, to disable
scrolling.
*/


html, body {
margin: 0;
height: 100%;
overflow: hidden
}

Example 4: css stop scrollbar


html {
scrollbar-width: none; /* For Firefox */
-ms-overflow-style: none; /* For Internet Explorer and Edge */
}

html::-webkit-scrollbar {
width: 0px; /* For Chrome, Safari, and Opera */
}

Example 5: hide scrollbar html css


/* On Chrome */
.hide-scrollbar::-webkit-scrollbar {
display: none;
}
/* For Firefox and IE */
.hide-scrollbar {
scrollbar-width: none;
-ms-overflow-style: none;
}

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable