You are here: Re: How do we "somewhat" control print size- web page « HTML « IT news, forums, messages
Re: How do we "somewhat" control print size- web page

Posted by Andy Dingley on 02/11/06 22:24

On 11 Feb 2006 06:43:53 -0800, "Phil" <thinkofanamefast@aol.com> wrote:

>Im not a designer or developer...but for a children's website with
>paper doll images, we want to have a printables page - but realize it
>is impossible to guarantee printed image size due to variations
>(resolution of printer setting, screen, etc.).

You can do this pretty robustly with CSS.

Learn about @media print { ... } in your CSS and use sizes in
absolute units, like mm. Use position: absolute; too, and to set the
position of the child's name element.

You can set the size of a bounding box and an image to a physical
dimension that will print quite accurately. Position on the paper will
vary a bit, depending on user settings, but so long as your bounding
element box is "about a page" in size, it will behave for you. Make it
small enough to allow reasonable margins on both US Letter and Euro A4
paper. Make it large enough that "100%" and "Scale to fit" both give
reasonable results.

>We do not want to do it as pdf, which would allow control of image
>size, because we want a doll's name to merge onto the printable page
>adjacent to doll, and to do this with pdf would require dynamic merge
>generation software..

It;s really not that hard to generate PDFs, if you went that route..

 

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

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