You are here: Re: Controlling page margins « HTML « IT news, forums, messages
Re: Controlling page margins

Posted by Nikita the Spider on 08/31/06 02:17

In article <WqqJg.3804$bM.2590@newsread4.news.pas.earthlink.net>,
"Russell Campbell" <nospam@byte-me-you-spammer.com> wrote:
> "Nikita the Spider" <NikitaTheSpider@gmail.com> wrote in message
> news:NikitaTheSpider-
>
> > Hi Russell,
> > Have you tried this?
> >
> > @media print {
> > body {
> > margin: 0px 0px 0px 0px;
> > padding: 0px 0px 0px 0px;
> > width: 100%;
> > }
> > }
> >
>
> I'm not sure this will help, even if IE 6 handled it properly. Is this
> going to make the printer start printing at the very edge of the page with
> the 0px value (which most laser printers can't do, anyway)? What I need is
> to tell the printer to use about a 1/4 inch margin, which most laser
> printers can do. I think the main problem right now is IE's poor support of
> CSS2.

Well, if IE understands that, it's pretty easy to adjust it to whatever
you want. 1pt = 1/72 of an inch, 25/72 = .35, so .35pt might get you the
margins of 1/4 inch. I don't remember if that works under IE or not; I
wrote that CSS a long time ago. Why not try it and report back to us?

BTW, as with (many) others in the group, I find top posting pretty hard
to read too.

--
Philip
http://NikitaTheSpider.com/
Whole-site HTML validation, link checking and more

 

Navigation:

[Reply to this 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

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