|
Posted by Nikita the Spider on 08/30/06 15:32
In article <53ZIg.2906$bM.703@newsread4.news.pas.earthlink.net>,
"Russell Campbell" <nospam@byte-me-you-spammer.com> wrote:
> I need to control the page margins when the user prints the page from the
> browser. It looked like the @page CSS2 command would do it, but it doesn't
> seem to work in IE 6. Perhaps that's because IE 6 does not handle CSS2 (I'm
> not sure if it doesn't handle it at all or just doesn't handle it well). Or
> perhaps the margins that can be controlled via @page are not the printer
> margins. Basically the printer uses about a half-inch margin and I need to
> go to 1/4 inch or so. Can this be done via HTML, CSS, or JavaScript?
Hi Russell,
Have you tried this?
@media print {
body {
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
width: 100%;
}
}
--
Philip
http://NikitaTheSpider.com/
Whole-site HTML validation, link checking and more
Navigation:
[Reply to this message]
|