The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> How to print an alternate page, I want to print a specific page instead of the .html
PIJoe
post Jan 22 2007, 11:10 PM
Post #1





Group: Members
Posts: 1
Joined: 22-January 07
Member No.: 1,648



OK... I'm beyond frustration. I'm sure there is a SIMPLE fix to this....

I need to specify an alternate file for printing (instead of the webpage). What I'm actually doing is printing a coupon that is located in the center of the page and I don't want to print the rest of the page content. Several places make reference to this type of usage... for alternate languages, alternate devices, even specifically to get a "printer friendly" file to print instead of html

Assume the coupon is contained in a file called coupon.html (or .pdf or .txt or anything else that will work)

Based on what I read (and I have tried to figure this out....)

<link rel="alternate" media="print" href="coupon.html" /> SHOULD work... but it doesn't

you can also add ... type="text/css" but that is optional

I know how to set the coupon apart with a class and make only that class visible to a printer... but it prints in the same relative location and if it's a long webpage... you get two blank sheets with a coupon 2/3 of the way down on page one... not acceptable.

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 18th April 2024 - 01:46 PM