• diaphragmwp@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      1
      ·
      8 hours ago

      JS is a programming language that runs from the website on your computer. By “JS scrollbar” it was meant that the scrollbar is generated by the code, as if it was a program.

      CSS is just a sheet of rules on how things should look like, it’s not meant to run programs. This person is pointing out you can just tell the browser to add a scrollbar to something using CSS, without programming.