|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
SitePoint Zealot
![]() ![]() Join Date: May 2003
Location: Boston, MA
Posts: 171
|
I don't know if this is the right forum, but where can I find information on creating a print-friendly version of my pages without creating a seperate file for each file? I love the way SP does it and I want to do something like it.
|
|
|
|
|
|
#3 |
|
SitePoint Zealot
![]() ![]() Join Date: May 2003
Location: Boston, MA
Posts: 171
|
I know how to do CSS (I won't do a site without them). What I'm wondering about is how to give my users a link to click that will reopen the page with a printer-friendly stylesheet rather than having to having to duplicate all the pages. But thanks for the link.
|
|
|
|
|
|
#4 |
|
SitePoint Wizard
![]() Join Date: Sep 2001
Location: Singapore
Posts: 5,332
|
You don't have to duplicate all the pages. You just need to define, at worst, a print stylesheet for each page. That is unlikely though, since most pages would be similar and they can use the same stylesheet. That's what the article was about - defining a print stylesheet that prints nicely without having the user click a 'Printer-friendly' link at all.
But yes I've mistaken your intention. If you want a printer-friendly page without duplicating, you could use a server-side script to change the stylesheet on the fly when the user clicks the link to the printer-friendly page. |
|
|
|
|
|
#5 | |
|
☆★☆★
![]() Join Date: Jan 2002
Location: in transition
Posts: 21,481
|
Quote:
. |
|
|
|
|
|
|
#6 | |
|
SitePoint Wizard
![]() Join Date: Sep 2001
Location: Singapore
Posts: 5,332
|
Quote:
|
|
|
|
|
|
|
#7 |
|
Rabble Rouser
![]() Join Date: Jan 2003
Location: Mountain View, CA
Posts: 431
|
Is there javascript that will activate Print Preview? That way you could use just the print css and still give a "link" to a printer-friendly page.
|
|
|
|
|
|
#8 | |
|
SitePoint Zealot
![]() ![]() Join Date: May 2003
Location: Boston, MA
Posts: 171
|
Quote:
|
|
|
|
|
|
|
#9 |
|
SitePoint Zealot
![]() ![]() Join Date: May 2003
Location: Boston, MA
Posts: 171
|
Ahh. I just looked more closely at the article. I do believe that will do the job. Thanks.
|
|
|
|
|
|
#10 | |
|
☆★☆★
![]() Join Date: Jan 2002
Location: in transition
Posts: 21,481
|
Quote:
. |
|
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 01:45.






.
.


Linear Mode
