December 3rd, 2003, 11:17 AM
turning css styles off
I'm setting up a printer friendly page where all img tags, font tags, and things like that are being stripped.
I know I could just strip all instances of a class being called too, but is there some way to just turn a css stylesheet 'off'?
So basically, when this printer friendly page is loaded, it would turn the stylesheet off so that all text is displayed as normal. I only have one stylesheet on the whole site, so i can call it specifically if I have to.
Thanks for your help
December 3rd, 2003, 01:11 PM
<LINK rel="stylesheet" type="text/css" media="print" href="foo.css">
you can specify an own css file for the print.
you don't even have to make an own priterfriendly page, just use the css to strip away the stuff you don't want.
ie. removing all images
removing an menu.
December 3rd, 2003, 01:36 PM
You could do this:
<link rel=stylesheet type="text/css" href="styles.css" id=css>
<a href=# onClick="document.getElementById('css').href=''">CSS Off</a>