Answers for "how to get a scroll bar when overflow is hidden in html"

CSS
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
-1

hide the scrollbar in css if not overflow

.myClass {
  /*auto will remove and add the scroll bar as needed*/
  overflow: auto;
}
Posted by: Guest on September-30-2020

Code answers related to "how to get a scroll bar when overflow is hidden in html"

Browse Popular Code Answers by Language