S
S
Semmy_992018-03-06 16:26:58
css
Semmy_99, 2018-03-06 16:26:58

Can webkit-scrollbar-thumb be set to a backgound image?

Hello. It is necessary to make a scroll with styles at the block. Support for chrome only.
background-color is set.
But background: color url('...') 0 0 no-repeat doesn't work.
Tell me if this pseudo-class supports a background image and how can I make an image in general?
It is necessary to make three white horizontal stripes in the scroll.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dima, 2018-03-06
Dolgoter @DDolgy

You have an extra color there like)

div::-webkit-scrollbar {
  background-image:url("http://superstroi68.ru/media/catalog/product/cache/1/image/1024x768/9df78eab33525d08d6e5fb8d27136e95/0/f/0f41753be0a3e44686910abb1e0f07a3.jpg");
  background-size:cover;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question