[support] how to make form print on less paper
sander-martijn
lists at severeddreams.com
Tue Jan 29 19:43:37 UTC 2008
That's quite simple actually and has nothing to do with drupal. Create
a print css file and include that. set display:none on any element you
don't need and do any other tweaks you need to get it looking right.
Use the media attribute:
<style type="text/css" media="Print"></style>
OR
<link rel="Stylesheet" href="print.css" media="Print" />
You can set it as the main css file while you're working on it so that
you don't waste tons of paper seeing how it looks, then switch it ot the
print one when it's right.
Whenever anyone clicks print it will use that css instead. I include it
on almost all of my sites.
.s
Jean Gazis wrote:
> I created a long order form for a website that launched in December.
> This duplicated a function from the pre-Drupal site and it basically
> just emails the form to the site owner, it is not an e-commerce
> function. There are a lot of items on the form and now they are
> complaining that the form prints out as 3 pages even if the person
> orders only one item.
>
> Is there a way to make the form print only the fields that have a user
> response and not the empty fields?
>
> You can see the form here: http://www.urbanorganic.com/node/47
>
> Thanks,
>
> --
> Jean Gazis
> www.jeangazis.com <http://www.jeangazis.com>
> www.boxofrain.us <http://www.boxofrain.us>
>
> "Believe those who are seeking the truth; doubt those who find it." -
> André Gide
>
More information about the support
mailing list