:: - webkit-scrollbar-button with content
I tried to create a webkit scrollbar like Visual Studio.
Example:
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:
Can a property be used content: "";
to set a UTF character such as β² or βΌ? Why won't it appear?
Here is the Fiddle
+3
Adrian preuss
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
Alexander Paul
source
to share