Answers for "always show scrollbar in div"

CSS
0

Always Show Scroll Bar

Make scrollbar always show up instead of autohide
.list
  {
    background-color: #fff;
    height: inherit;
    overflow-y: scroll;
  }

.list::-webkit-scrollbar
  {
    background-color: white;
    border-radius: 10px;
    width: 20px;
  }

.list::-webkit-scrollbar-thumb
  {
    background-color: grey;
    border-radius: 10px;
    border: 5px solid white;
  }

.list::-webkit-scrollbar-thumb:vertical
  {
    height: 20px!important;
    width: 20px;
  }
Posted by: Guest on June-04-2021
0

html always show scrollbar

jQuery shouldn't be required. You could try adding the CSS:

body    {overflow-y:scroll;}
This works across the latest browsers, even IE6.
Posted by: Guest on March-25-2021

Browse Popular Code Answers by Language