|
Posted by Michael Laplante on 04/30/06 02:19
"Toby Inkster" <usenet200604@tobyinkster.co.uk> wrote in message
news:1jsbi3-gva.ln1@ophelia.g5n.co.uk...
> Michael Laplante wrote:
> Stop trying. Use a print stylesheet instead.
Not very helpful, I'm afraid. From:
http://css-discuss.incutio.com/?page=PrintStylesheets
--Quote--
When printing Web documents, margins are set in the browser's Page Setup (or
Print Setup) dialog box. These margin settings, although set within the
browser, are controlled at the operating system/printer driver level and are
not controllable at the HTML/CSS/DOM level. (For CSS-controlled printed page
headers and footers see PrintingHeaders.)
....
When subsequently printing pages, you may find that the top or bottom line
of text is "cut off", or find even worse page-break mangling (see "Page
Breaks" below). If so, slightly increase the top or bottom margin
respectively. Experiments with my own sites suggest that a generous bottom
margin will reduce page-break problems (it forms a kind of overflow area).
However, adjusting margins is under the control of browser users rather than
developers and you can place no reliance on its having been done at all, let
alone well.
In your site's screen stylesheet, you may have chosen to set margins and
padding on the <body> element (browsers set their own default values). If
you have a print stylesheet, you will probably want to set the values for
margin and padding to zero since the user's "print margins", as described
above, must be assumed to be sufficient (and what the user wants).
-- End quote--
So that tells me that a print stylesheet won't necessarily guarantee the
margins I'm looking for. For now, I've used the table "brute force" method
which works in both IE and FF. The CSS equivalent -- to my mind -- would be
a "container" of suitably narrowl fixed width, centered on the page. I
figured that <body> or <div> could be the containers, but apparently it's
not that easy.
If anyone has an elegant -- and relatively simple -- CSS method, please let
me know.
M
[Back to original message]
|