For styling scrollbar (of ul
) I have used css. .requestType
is the class of ul
.
css I used is -
.requestType{
height:600px; overflow-y: scroll; }
.requestType::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
border-radius: 10px;
background-color: #F5F5F5; }
.requestType::-webkit-scrollbar { width: 5px; background-color: #F5F5F5; }
.requestType::-webkit-scrollbar-thumb{
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
background-color: darkgray; }
.list-group {
display: flow-root; }
It works fine in chrome.
But in case of IE
and mozilla firefox
it applies simple scrollbar without styling it.
What should I do for styling scrollbar in IE
AND mozilla firefox
also.
<ul class="list-group mb-3 requestType" id="requestType">
<li class="list-group-item d-flex justify-content-between bg-light">
<div class="text-success">
<label class="Request_type" for="radio4">abc
<input type="radio" name="radio" value="abc" id="radio4">
<span class="checkmark"></span>
<h5><small class="text-muted">Brief description</small></h5>
</label>
</div>
</li>
<li class="list-group-item d-flex justify-content-between bg-light">
<div class="text-success">
<label class="Request_type" for="radio6">xyz
<input type="radio" name="radio" value="xyz" id="radio6">
<span class="checkmark"></span>
<h5><small class="text-muted">Brief description</small></h5>
</label>
</div>
</li>