RE: Line breaks - HTML doc with printer-friendly PDF?

Subject: RE: Line breaks - HTML doc with printer-friendly PDF?
From: "John Locke" <mail -at- freelock -dot- com>
To: "TECHWR-L" <techwr-l -at- lists -dot- raycomm -dot- com>
Date: Wed, 20 Jun 2001 12:00:44 -0700

Tom Maas asks,
> What is your preferred way to control where the line breaks happen when
> printing an HTML document?
>
> 1. Javascript (not supported on some browsers)?
> 2. Page length HTML table rows?
> 3. Multiple HTML files - one for every page?
> 4. New options in latest HTML?
> 4. Stay with PDF and live with the redundancy?
>

In my experience, the main thing that screws up printing HTML is the
combination of tables and graphics (ignoring frames, that is...). If you put
an image inside a table, it forces that column to be at least as wide as the
image. By the time you have a few columns, you end up off the right edge of
the page.

You can define a print-specific cascading style sheet, but nothing really
gives you control over page breaks.

Line breaks? I'd say don't worry about 'em. Keep the page design simple, and
the lines will automatically break at an appropriate place. The exception is
if the text is in a table cell that extends past the right edge of the page.
So make sure your tables can go as narrow as a typical page, and you're
fine... as long as the user hasn't increased their font size beyond what
you've tested... this could be a valid argument for prescriptive
font-setting in a print-specific style sheet.

This solution should work for the vast majority of Internet users, but can
be easily overridden by someone really trying... disabling all style sheets,
for example, in Opera. PDF is the only sure way, but HTML can work if you
keep it simple.

Good luck,
John Locke
http://www.freelock.com


^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

*** Deva(tm) Tools for Dreamweaver and Deva(tm) Search ***
Build Contents, Indexes, and Search for Web Sites and Help Systems
Available now at http://www.devahelp.com or info -at- devahelp -dot- com

Sponsored by Cub Lea, specialist in low-cost outsourced development
and documentation. Overload and time-sensitive jobs at exceptional
rates. Unique free gifts for all visitors to http://www.cublea.com

---
You are currently subscribed to techwr-l as: archive -at- raycomm -dot- com
To unsubscribe send a blank email to leave-techwr-l-obscured -at- lists -dot- raycomm -dot- com
Send administrative questions to ejray -at- raycomm -dot- com -dot- Visit
http://www.raycomm.com/techwhirl/ for more resources and info.


References:
Line breaks - HTML doc with printer-friendly PDF?: From: Tom Maas

Previous by Author: RE: TOOL needed
Next by Author: RE: pay per word
Previous by Thread: HTML doc with printer-friendly PDF?
Next by Thread: Re: Line breaks - HTML doc with printer-friendly PDF?


What this post helpful? Share it with friends and colleagues:


Sponsored Ads