Hide Horizontal Scrollbar Css Code Example


Example 1: DISABLE the Horizontal Scroll


html, body {
max-width: 100%;
overflow-x: hidden;
}

Example 2: 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 3: hide horizontal scrollbar css


.x-scroll-disabled {
overflow-x: hidden;
}

Example 4: remove horizontal scrollbar css


overflow-x: hidden;

Example 5: hide scrollbar css


/* A very quick an applicable solution is to use this piece of code: */
html {
overflow: scroll;
overflow-x: hidden;
}
::-webkit-scrollbar {
width: 0px; /* remove scrollbar space /
background: transparent; / optional: just make scrollbar invisible /
}
/ optional: show position indicator in red */

::-webkit-scrollbar-thumb {
background: #FF0000;
}

Example 6: 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