1

I have been working on a project that involves custom scroll bar here is the code

.scrollbar
{
  margin-left: 30px;
  float: left;
  height: 300px;
  width: 65px;
  background: #F5F5F5;
  overflow-y: scroll;
  margin-bottom: 25px;
}

.force-overflow
{
  min-height: 450px;
}


#style-2::-webkit-scrollbar-track
{
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
  border-radius: 10px;
  background-color: #F5F5F5;
}

#style-2::-webkit-scrollbar
{
  width: 12px;
  background-color: #F5F5F5;
}

#style-2::-webkit-scrollbar-thumb
{
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
  background-color: #D62929;
}
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<body id="main">
    <div class="scrollbar" id="style-2">
      <div class="force-overflow"></div>
    </div>
 </body>

the problem is it is only working on chrome how can i make it work on every browser. i have searched all over the internet but still cannot fine any reliable solution.thanks in advance

Calvin Nunes
  • 6,376
  • 4
  • 20
  • 48
uneeb meer
  • 682
  • 2
  • 7
  • 27

2 Answers2

0

Sorry friend firfox, Opera Mini & Edge not supported scrollbarstyle
YOU can check it here check it

MD Ashik
  • 9,117
  • 10
  • 52
  • 59
0

-WebKit- applies to Chrome and safari, not sure if other browsers support custom scroll bars but I think they don't

edvilme
  • 570
  • 7
  • 16