0

Is there css selector that applies if javascript is not available? I do not ask about the no script tag but css.

1.21 gigawatts
  • 16,517
  • 32
  • 123
  • 231
  • 1
    Does this answer your question? [Define css if javascript is not enabled](https://stackoverflow.com/questions/4665748/define-css-if-javascript-is-not-enabled) – SuperStormer May 15 '21 at 16:38

1 Answers1

2

There is no actual "selector" to check if javascript is enabled in css.

Still, I think you might find this SO Answer helpful. It suggests to put a "no-js" class on the body, and then remove it with a simple script. If javascript is disabled, you will be able to use body.no-js as a "selector".

Drago96
  • 1,265
  • 10
  • 19