Reply to Re: Controlling page margins

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация