Answers for "css always show scrollbar"

CSS
1

css scrollbar always visible

html {
    overflow-y:scroll;
}
Posted by: Guest on May-27-2021
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

Browse Popular Code Answers by Language