Answers for "how to remove horizontal scrollbar"

CSS
5

css how to remove horizontal scrollbar

html, body {
    max-width: 100%;
    overflow-x: hidden;
}
Posted by: Guest on November-24-2019
36

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 */
}
Posted by: Guest on July-01-2020
4

hide horizontal scrollbar css

.x-scroll-disabled {
	overflow-x: hidden;
}
Posted by: Guest on March-23-2020
4

remove horizontal scrollbar css

overflow-x: hidden;
Posted by: Guest on October-11-2020
0

how to remove horizontal scrolling

/* this works for vertical scrolling also

this is useful for those who can't use overflow: hidden or any other solution
because the css on the website changes in someway */

::-webkit-scrollbar:horizontal {
  display: none;
}
Posted by: Guest on April-19-2021
0

how to remove horizontal scroll on elementor

(function (debug) {
    var w = debug.documentElement.offsetWidth,
        t = debug.createTreeWalker(debug.body, NodeFilter.SHOW_ELEMENT),
        b;
    while (t.nextNode()) {
        b = t.currentNode.getBoundingClientRect();
        if (b.right > w || b.left < 0) {
            t.currentNode.style.setProperty('outline', '1px dotted red', 'important');
            console.log(t.currentNode);
        }
    };
}(document));
Posted by: Guest on July-22-2020

Code answers related to "how to remove horizontal scrollbar"

Browse Popular Code Answers by Language