remove horizontal scrollbar css
/*for horizontal scroll functionality*/
.example{
overflow-x: auto;
flex-wrap: nowrap;
}
/* Hide horizontal scrollbar which you get after you use overflow-x as
auto or hidden */
/*for Chrome, Safari and Opera */
.example::-webkit-scrollbar {
display: none;
}
.example {
-ms-overflow-style: none; /*IE and Edge */
scrollbar-width: none; /* Firefox */
}
(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));