:: - webkit-scrollbar-button with content

I tried to create a webkit scrollbar like Visual Studio.

Example:

Original Visual Studio Scrollbar

My question is how can I set ::-webkit-scrollbar-button

as an example?

Here is my code:

::-webkit-scrollbar-button {
    height: 10px;
    content: "β–²";
    color: rgb(255, 255, 255);
    background: rgb(255, 0, 0);
}

      

Output: My scrollbar

Can a property be used content: "";

to set a UTF character such as β–² or β–Ό? Why won't it appear?

Here is the Fiddle

+3


source to share


1 answer


content: ""

doesn't seem to work with the scrollbar. I also tried with help content: "\25B2"

but still doesn't work.



Maybe you can use a background image like in this Fiddle

+1


source







All Articles