1

In my project, we have a common css file and in which, we use webkit-scrollbar{ display: none } to hide scroll bar in chrome, but in some page, we need to display scroll bar in chrome. I have tried some way I have found on internet. Ex: display: block, initial ,... or all : unset, but it doesn't work. Anyone have any idea for this problem ? Thanks

  • related to this one https://stackoverflow.com/questions/16670931/hide-scroll-bar-but-while-still-being-able-to-scroll – najmieh sadat safarabadi Jan 16 '22 at 09:54
  • @NajmiehSadatSafarabadi : It doesn't related to the topic you have mentioned, I need to override webkit-scrollbar{ display: none } in chrome to display scrollbar, not to hide scroll bar like your topic you have mentioned above – QUANG Tuấn Vũ Jan 16 '22 at 10:03

1 Answers1

0

Try using ::-webkit-scrollbar { visibility: visible; } on those pages where you want the scroll to appear.

Kundan
  • 1,754
  • 16
  • 37