HTML Elements Forums ListBox Is it possible to style the List Boxe's scrollbar without additional js?

This topic contains 1 reply, has 2 voices, and was last updated by Avatar Hristofor 1 month, 4 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #100538
    Avatar
    ctstrist
    Participant

    title sums up my question. Is it possible to define scroll attributes when initializing the list box?

    #100540
    Avatar
    Hristofor
    Participant

    Hi ctstrist,

    It’s possible to customize the Scroll Bars inside the Listbox via CSS. Here’s the full CSS API of the element. Here’s an example on how to customize the Scroll bars inside specific List boxes:

    
     #listbox {
                --smart-scroll-bar-thumb-background-active: #003366;
                --smart-scroll-bar-thumb-background-hover: #336699;
                --smart-scroll-bar-thumb-background: #6699cc;
            }
    

    Best Regards,
    Christopher

    Smart HTML Elements Team
    https://www.htmlelements.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.