1

Can all CSS be written using JavaScript? I'm having a hard time setting these two rules in JavaScript.

*{cursor:none!important}
html::-webkit-scrollbar{display:none!important}
GFL
  • 1,278
  • 2
  • 15
  • 24
  • Take a look at the second answer (by Chris) on this one: https://stackoverflow.com/questions/12555258/set-webkit-scrollbar-thumb-visibility-in-jquery (note, it isn't a jquery answer) – Zachary Haber May 05 '20 at 02:24
  • Does this answer your question? [Set -webkit-scrollbar-thumb visibility in jQuery](https://stackoverflow.com/questions/12555258/set-webkit-scrollbar-thumb-visibility-in-jquery) – disinfor May 05 '20 at 03:06
  • One option would be to have multiple classes, and just use JS to assign the appropriate class. – kmoser May 05 '20 at 03:53
  • Does this answer your question? [Changing CSS pseudo-element styles via JavaScript](https://stackoverflow.com/questions/4481485/changing-css-pseudo-element-styles-via-javascript) – Richard May 05 '20 at 08:32

0 Answers0