Answers for "overflow x scroll bar hidden"

CSS
-1

how to hide scrollbar overflow

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;
}
Posted by: Guest on August-14-2021
1

css show scrollbar if overflow

/*You can automatically show a scrollbar IF there is overflow with  this: */
body {
  overflow:auto;
}
/*If you want to always show a scrollbar, use this: */
body {
  overflow:scroll;
}
Posted by: Guest on April-18-2021

Browse Popular Code Answers by Language