* ArcticFox <[EMAIL PROTECTED]> [070722 00:35]: > >> My web site includes links to documents in PDF format. Because of >> length, the documents are set in a 10-point font, with footnotes in an >> 8- or 9-point. >> >> I am attempting to accommodate visitors with impaired vision, by >> generating a HTML version of each PDF document, in order to enable a >> visitor to enlarge the type via the browser. >> >> But sometimes a visitor needs to be able to print out hardcopy for >> reading off-line. I do not know to specify the font size used in the >> print version of a HTML document. What is the mechanism? Does a >> browser access a default style sheet for printing? >> >> Can someone point me in the right direction? >> > Assuming you are talking about wanting to print the HTML version of the > page, include a snippet of CSS with the '@media print' rule in it in the > <head> of the document. If you don't use CSS anywhere else in the document > the following should be all you need (test it however, to ensure that it > works as intended.) > > <style> > @media print { > body { font-size:xx; } > } > </style> > > Replace 'xx' with the size you desire. I suggest starting with '2em' and > working up from there.
Thanks, Arctic! That's the type of solution I hoped to find. I was going to ask you if there is an easy way to allow the user to select from a variety of font sizes (for example, NORMAL - LARGE - HUGE). But then it occurred to me that anyone with normal vision should be printing out the PDF version, and a CSS which specifies a single very large font should be adequate for most vision-impaired users. (After all, they still make magnifying lenses, don't they?) RLH -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]