I know you can select an option in Firefox to turn off style sheets. But is there code that will do this so that a user can click a link to turn it off? Searched Google without much luck :/
I didn't know how to do this personally but I've used scripts in the past which I just found online. There are lots of examples - you just need to search better!
EDIT: these examples deal with switching stylesheets rather than simply disabling them, but I'm sure the principles demonstrated can be applied to your problem.
Right well I've already got a style switcher. What I've just decided to do is stick media=print to one of the stylesheet link tags and that seems to work the same!
To "disable" style sheets you just have a link to a blank style sheet - using media=print will work but is not the best as if someone who has poor eyesight wants to print off the page (when they are viewing the media=print stylesheet) they will suddenly get all the styles back!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.