mwaw
02-04-2004, 07:28 PM
I can't find an example of how the @page rule is used. My needs are simple. I just want my pages, when printed, to have a font size of 18pt and a margin of 2 inches.
In the HTML I included this:
<link rel="stylesheet" type="text/css" href="stylesheet_print.css" media="print">
In stylesheet_print.css I included this:
body {
font-size: 18pt;
}
@page {
size: 8.5in 11in;
margin: 2in;
}
I get a printout that has 18pt text, but the margin is just the default margin for the browser. The results are the same in IE6 and Moz1.5.
Thanks!
Mike Wilkinson
In the HTML I included this:
<link rel="stylesheet" type="text/css" href="stylesheet_print.css" media="print">
In stylesheet_print.css I included this:
body {
font-size: 18pt;
}
@page {
size: 8.5in 11in;
margin: 2in;
}
I get a printout that has 18pt text, but the margin is just the default margin for the browser. The results are the same in IE6 and Moz1.5.
Thanks!
Mike Wilkinson