Open hamidmehdizade opened 6 years ago
Can you provide some code? You need to set some css style in order to use mCustomScrollbar. Steps:
<link rel="stylesheet" href="/path/to/jquery.mCustomScrollbar.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="/path/to/jquery.mCustomScrollbar.concat.min.js"></script>
height
or width
to your element that you want to have mCustomScrollbar
.content{
height: 250px;
}
$(".content").mCustomScrollbar({
setHeight: 250 // You can use 'integer' for pixels or 'string' for percentage e.g '25%'
});
And that's it.
Hello I used mCustomScrollbar in my project but the scrollbar is not showing. I don't think I missed anything, but it's still not working. Can you help me, please? Thanks.