0

Is there any way to change the default scroll bar style? or hide the scroll bar and enable to scroll?

2

2 Answers 2

2

For hide

body {
overflow:hidden;

}

change scroll bar in chrome and safari

::-webkit-scrollbar {
width: 12px;

}

 ::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px #bebebe; 
-webkit-border-radius: 1px;
border-radius: 1px;

}

 ::-webkit-scrollbar-thumb {
-webkit-border-radius: 1px;
border-radius: 1px;
background: #dcdcdc; 
-webkit-box-shadow: inset 0 0 6px #bebebe; 

}

::-webkit-scrollbar-thumb:window-inactive {
background: bebebe; 

}

Sign up to request clarification or add additional context in comments.

Comments

1

You can use jQuery plugins to customize the scroll bar

I recommend using jScrollPane

It is easy to use.. and you can customize per your requirement

There are some other plugins also which might useful for you.. You can search over internet

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.