how to remove horizontal and vertical scrollbar in 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: css how to remove horizontal scrollbar
html, body {
max-width: 100%;
overflow-x: hidden;
}
Example 3: remove horizontal scrollbar css
overflow-x: hidden;