How to make custom scrollbar for cross browser using DOJO?

Posted In HTML & CSS
  • jalpa-solanki 2 years ago
    I want to create custom scrollbar using DOJO which should be cross browser support.
    So how can i create it?

    I want to create custom scrollbar using DOJO which should be cross browser support. So how can i create it?

  • devdojo 2 years ago
    Can you be a little more descriptive when you say `using DOJO`, which product or library are you referring to, can you provide a link :)
    
    Thanks.

    Can you be a little more descriptive when you say using DOJO, which product or library are you referring to, can you provide a link :)

    Thanks.

  • jalpa-solanki 2 years ago
    Hi....
    I am not referring any product or library.
    Actually I am creating one table with fixed height. so if my data is more, vertical scrollbar is coming.
    And I need to customize that vertical scrollbar with different color, size etc.
    
    Also for our application, jQuery cannot be used. So could please guide me that using only DOJO, how can i customize the scrollbar? 
    example as the below image:
    ![](https://s3-us-west-2.amazonaws.com/i.cdpn.io/452698.dMYgeO.f196c2e0-98ba-483d-87cd-4199a52ea6bc.png)
    

    Hi.... I am not referring any product or library. Actually I am creating one table with fixed height. so if my data is more, vertical scrollbar is coming. And I need to customize that vertical scrollbar with different color, size etc.

    Also for our application, jQuery cannot be used. So could please guide me that using only DOJO, how can i customize the scrollbar? example as the below image:

  • devdojo 2 years ago
    Hey There :)
    
    Using CSS you can easily add customizations to your scrollbar with the following:
    
    ```css
    #container::-webkit-scrollbar-track {
        border-radius: 0px;
        background: #3D4047;
    }
    ```
    
    You may also want to take a look at this reference and it will tell you how to customize the whole thing. [https://css-tricks.com/custom-scrollbars-in-webkit/](https://css-tricks.com/custom-scrollbars-in-webkit/)
    
    You do not need to use jQuery for the scrollbars. If webkit is not supported by the browser it simply won't apply the styles. Hope that helps :)
    
    Thanks. Talk to you soon.

    Hey There :)

    Using CSS you can easily add customizations to your scrollbar with the following:

    #container::-webkit-scrollbar-track {
        border-radius: 0px;
        background: #3D4047;
    }
    

    You may also want to take a look at this reference and it will tell you how to customize the whole thing. https://css-tricks.com/custom-scrollbars-in-webkit/

    You do not need to use jQuery for the scrollbars. If webkit is not supported by the browser it simply won't apply the styles. Hope that helps :)

    Thanks. Talk to you soon.

  • jalpa-solanki 2 years ago
    Hi,
    Webkit is supported by Chrome only.
    It is not cross browser supported. What should i do if i want the scrollbar styling for IE-11 also.

    Hi, Webkit is supported by Chrome only. It is not cross browser supported. What should i do if i want the scrollbar styling for IE-11 also.

  • devdojo 2 years ago
    Hey There :)
    
    In that case, I might recommend using a library for that. I've checked out a few libraries that will work with older browsers as well you may want to check out the following resources:
    
    [Nano Bar JS](https://jamesflorentino.github.io/nanoScrollerJS/)
    [Simple Bar](http://grsmto.github.io/simplebar/)
    [Perfect Scrollbar](http://noraesae.github.io/perfect-scrollbar/)
    
    Hope that helps dude :)
    
    Thanks.

    Hey There :)

    In that case, I might recommend using a library for that. I've checked out a few libraries that will work with older browsers as well you may want to check out the following resources:

    Nano Bar JS Simple Bar Perfect Scrollbar

    Hope that helps dude :)

    Thanks.

  • ali-rivers 10 months ago
    That is easy with the way of the using scroll bar on the internet purpose then only from the custom to check that part. I have also some browsers for the scrolling of this part on the time of the [college-paper.org reviews](https://www.bestessayservicereviews.com/essay-writing/college-paper-org-review/) website that scrolling will come with the more options on the internet.

    That is easy with the way of the using scroll bar on the internet purpose then only from the custom to check that part. I have also some browsers for the scrolling of this part on the time of the college-paper.org reviews website that scrolling will come with the more options on the internet.

  • agustin-lilly 1 month ago
    First of all elaborate what to do you on scroll bar, i usually learn through [stream2watch](https://cranefest.com/alternatives-stream2watch/)

    First of all elaborate what to do you on scroll bar, i usually learn through stream2watch

  • agustin-lilly 1 month ago
    Just go tou this web, you can get everything to want to learn. [Firstrowsports](https://lyemium.com/firstrowsports/)

    Just go tou this web, you can get everything to want to learn. Firstrowsports

  • james-swanson 1 month ago
    Not I know how to do that. This guide is really informative. But I want you to check [top essay services](https://www.topratedessayservices.com/) now. It's pretty decent and you should try it out.

    Not I know how to do that. This guide is really informative. But I want you to check top essay services now. It's pretty decent and you should try it out.

Please login or signup to leave a response.

Login

or Sign Up

Sign Up

or Login
×
Want to create your own SAAS?

I can teach you to create your own Software as a Service. Click here to learn more!

Visit SAAS Adventure!