I understand I need to make a seperate CSS file that needs to be called when the user wants to print any page on my website, but what [U]link[/U] is used to call it. Example:
[code=php]<a href=”what link goes here to call the special css?”>Printer Friendly</a>[/code]
@1234567890authorDec 17.2008 — #I already know how to make the website accessible through css for print. I have a link on every page on a website that says "Printer Friendly", so when the person needs to print the page they will click said link. [U]I need to know what I put in the link a href.[/U]
@KDLADec 18.2008 — #You don't need a button to initiate it.<i> </i><link rel="stylesheet" type="text/css" href="filename.css" media="print" /> in the <head> section will make it automatically load when the print function begins.
I'm assuming, though, your question really has to do with JAVASCRIPT, rather than CSS. If that's the case, you need to refer to articles having to do with a "stylesheet switcher." This involves more than a link reference, but some script to create the function, first. When you create the script, you'll need to leave out the reference to a cookie.