On Tue, 05 Oct 2004 14:13:04 GMT, Grant Wagner
[snip]
<style type="text/css">
@media print {
margin-left: 6em;
margin-right: 6em;
}
</style>
Note those are the document margins, _not_ the printed page margins.
What that means is that if the browser is configured with a 1" margin on
the page, the above CSS will add a 6em margin inside of that 1".
You can use the the CSS page at-rule (@page) to specify the page size and
margins. In such a rule, font units, such as em and ex, are not allowed.
I'd also question the suitability of px, but it's not explicitly
mentioned. If percentages are used for the margins, they are relative to
the size of the page. See <URL:
http://www.w3.org/TR/REC-CSS2/page.html>
for more information.
@page {
/* A4 */
size: 21cm 29.7cm;
/* 2.1cm left/right margins, 2.97cm top/bottom */
margin: 10%;
}
Of IE, Mozilla (Suite and Firefox), and Opera, only Opera supports this.
I suppose there isn't much point in including this in the FAQ until more
support is acheived.
[snip]
Mike