E
E
Egor Zhivagin2019-01-30 11:30:29
css
Egor Zhivagin, 2019-01-30 11:30:29

Is it possible to remove only the vertical scroll from the block with -webkit-scrollbar?

::-webkit-scrollbarNever used a selector before.
Task: remove the vertical scroll, leaving the horizontal one. Example - here
What is the question:
Remove both scrollers turns out

.parent::-webkit-scrollbar{
/*   display: none; */
  opacity: 0;
}

But then "return" one of them - no
.parent::-webkit-scrollbar:vertical{
/*   display: block; */
  opacity: 1;
}

Tried to remove only one, remove/show other properties, ... Sense 0. As if the browser does not understand selectors :vertical, :horizontal. (It is written about these selectors here , for example)
I know that this is all poorly supported by the browser, but maybe I screwed up somewhere? Tell me gentlemen

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question