Printing with style

April 18, 2006 11:22 PM | Comments (4)

I was applying for a CDP account online, and was asked to fill in my details. Finally, I had to print a summary page, sign it and mail it to them.

However, these were the instructions:

  1. Select "File", click on "Page Setup"
  2. Select Page Size as "A4"
  3. Adjust the margins for header and footer to 0.2 inches
  4. Remove the headings for header and footer
  5. Click Ok to save

And I wondered: can't a print stylesheet resolve most of those problems?

You could set the margin-top and margin-bottom to 0.2 inches (and adjust the padding too).

You could specify a class or ID for headers and footers, and display:none when printed.

Not sure if we can set page size using current CSS techniques. But a print stylesheet would definitely make things easier for users.

Recent entries

4 Comments

I wonder if there are more than 20 people in Singapore who knows what print.css means.

Yup, we can set the size of paged media, though I'm inclined to think it won't work in IE.

But I've been wrong before.

Very much agree. If user removed the header and footer, I bet 99.9% don't know how to put them back.

Btw, will CSS for print media work if header and footer need to be set when there's multiple page when printed?

Just leave them be in the content structure and the header and footer will appear in order?

Subscribe to my feed

Feedburner

About this Entry

This page contains a single entry by vantan published on April 18, 2006 11:22 PM.

Easter Sunday was the previous entry in this blog.

Rethinking the Mini is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

On Twitter...