Drupal - special css file if JS is turned off?
Posted
by jsims281
on Stack Overflow
See other posts from Stack Overflow
or by jsims281
Published on 2010-05-24T11:03:15Z
Indexed on
2010/05/24
11:11 UTC
Read the original article
Hit count: 228
I'm building a Drupal theme up and want to know if there is a Drupalish way to add a css file only if the user has js turned off.
This would ideally go in the theme.info file to keep it neat!
Something like this would be ideal:
conditional-stylesheets[if no javascript][all][] = nojs.css
If this isn't possible then I'm going to keep all the css that needs JS out of the css files, and add it dynamically using JS but this seems a bit messy...
Any ideas?
© Stack Overflow or respective owner