Web Design Tips and Tricks

Printing and Sending the Two Things Users Want to Do

Printing and Sending: The Two Things Users Want to Do.

There's something you have to realise about the way users interact with articles. To put it simply, they don't just want to read them: they also want to print them out, and send them on to their friends, family and colleagues. If you can make it easier for them to do this, then your site will be a hit. But how? Well, read on.

The Print and Send Links.

At either the top or the bottom of your article, you should offer clear 'print this article' and 'send this article to a friend' links. It's up to you how you present them, but a generally good place is underneath the byline and date, like this:

Article Headline
by Bob Smith
January 1, 2010
Print this article
Send this article to a friend

If that looks messy, though, try moving the links to the end of the article. You might even link to have the 'print' link at the top of the page and the send to a friend link at the bottom.

You should also note that there are standard 'icons' (small pictures) to represent printing and sending. Printing is a picture of a printer (the same one used in word processors), while sending is a picture of an envelope. Using these icons will make it much easier for people to see what the different functions of your website are. In many cases, you can even leave out the text and just have the icons, or only have the text appear when the user hovers over the icons – this saves on space without sacrificing usability.

CSS for Printing.

It's an unfortunate fact of the web that many web pages look simply terrible if you print them as they are. No-one wants ads on their print-outs, or blue-underlined links, or navigation, or many of the other elements of a web page. For your visitors who want to print, then, it's good to be able to remove these things from your page when they press that 'print' button, before you tell the browser to start printing.

How can you do this easily? Well, luckily, CSS has a built-in mechanism for it. It lets you specify different styles depending on media, with the default being media:screen – for printing, you can use media:print, and add or take away different parts of the style quickly and easily.

It's not difficult to switch between the screen and print CSS stylesheets when that print button is pressed – all you need to do is add a second stylesheet underneath your first one. That means that your stylesheet declaration (in your HTML head) needs to look like this:

<link rel="stylesheet" media="screen" href="mystyle.css" type="text/css">

<link rel="stylesheet" media="print" href="mystyle-print.css" type="text/css">

The mystyle-print.css contains all the CSS that will be applied to the document when it prints: nothing from mystyle.css will be applied. Browsers should then apply this stylesheet automatically when your document is printed – all that remains is to link to javascript:self.print() for your 'print this page' link.

Sending Pages.

The best way to handle the sending of pages is to provide three input boxes for the person doing the sending: one asking for their name or email address, one asking for the recipient's email address, and an extra box for any customised message you might want to send.

All you need to do then is create an email from this information: in PHP, for example, this is as simple as using the mail() function. Include the information entered by the sender in the message's 'from' field, instead of the name of your website, and keep your own words to a minimum if the sender wrote a custom message: it's much better for a message to look like this:

Thought you might like this! http://www.example.com/article/101

than like this:

You've been sent an article from example.com! The sender said: "Thought you might like this!" http://www.example.com/article/101

Basically, emphasise the fact that it's from their friend, not from your website, and you'll get far more people clicking the link. It's also worth including the title and even the intro, as well as just a link to the article, so the person involved is more tempted to click it – after all, if their friend thought they'd be interested, they probably will be.

 

 Article index
 
5-Simple-Steps-to-Accepting-Payments
5-Steps-to-Understanding-HTML
10-Easy-Ways-to-Promote-Your-Website
5-Ways-to-Avoid-the-1998-Look
6-Reasons-Why-You-Need-a-Website
7-Ways-to-Make-Your-Web-Forms-Better
Ads-Under-the-Radar-Linking-to-Affiliates
AJAX-Should-You-Believe-the-Hype
All-About-Design-Principles-and-Elements
An-Introduction-to-Paint-Shop-Pro
An-Issue-of-Width-the-Resolution-Problem
A-Question-of-Scroll-Bars
Avoiding-the-Nuts-and-Bolts-Content-Management-Software
Beware-the-Stock-Photographer-Picking-Your-Pictures.
Building-a-Budget-Website
Building-Online-Communities
Clean-Page-Structure-Headings-and-Lists
ColdFusion-Quicker-Scripting-at-a-Price
Column-Designs-with-CSS
Content-is-King
CSS-and-the-End-of-Tables
Cut-to-the-Chase-How-to-Make-Your-Website-Load-Faster
Designing-for-Sales
Designing-for-Search-Engines
Dont-Be-Scared-Its-Only-Code-HTML-for-Beginners
Dreamweaver-The-Professional-Touch
Encryption-and-Security-with-SSL
Finding-a-Good-HTML-Editor
Focus-on-the-User-Task-Oriented-Websites
Fonts-are-More-Important-Than-You-Think
Free-Graphics-Alternatives
FrontPage-Easy-Pages
Hints-All-the-Way
Hiring-Professionals-5-Things-to-Look-For
How-Databases-Work
How-the-Web-Works
How-to-Get-Your-Website-Talked-About-on-Blogs
How-to-Install-and-Configure-a-Forum
How-to-Make-Visitors-Add-You-to-Their-Favorites
How-to-Run-Ads-Without-Driving-Visitors-Crazy
How-to-Set-Up-Your-Hosting-in-5-Minutes-Flat
IIS-and-ASP-Microsofts-Server
Image-Formats-GIF-JPEG-PNG-and-More
Its-a-World-Wide-Web-Going-International
JSP-Java-on-Your-Server
LAMP-The-Most-Popular-Server-System-Ever
Making-Friends-and-Influencing-People-the-Importance-of-Links
Making-Searches-Simple
Offering-Free-Downloads-on-Your-Website
Opening-a-Web-Shop-with-E-Commerce-Software
Perl-Cryptic-Power
Photoshop-a-Graphic-Designers-Dream
PHP-Easy-Dynamic-Websites
Picking-a-Colour-Scheme
Printing-and-Sending-the-Two-Things-Users-Want-to-Do
Putting-Multimedia-to-Good-Use
Python-and-Ruby-the-Newer-Alternatives
Registering-a-Domain-Name
Registering-Your-Users-by-Stealth
RSS-Really-Simple-Syndication
Setting-Up-a-Mailing-List
Setting-up-a-Test-Server-on-Your-Own-Computer
Some-Places-to-Go-For-More-Information
Taking-HTML-Further
Taking-HTML-Further-with-Javascript
Taking-Your-Website-Mobile
Text-Ads-Unobtrusive-Advertising
The-5-Principles-of-Effective-Navigation
The-Art-of-the-Logo
The-Basics-of-Web-Forms
The-Basics-of-Web-Servers
The-Case-Against-Flash
The-Confusing-World-of-Web-Hosting-Making-Your-Decision
The-Evils-of-PDFs
The-Importance-of-Validation
The-Many-Flavours-of-HTML
Theres-More-than-One-Web-Browser
The-Smaller-the-Better-Avoiding-Graphical-Overload
The-Top-10-Biggest-Web-Design-Mistakes
The-Web-Designers-Toolbox
The-Web-is-Not-Paper
Time-for-User-Testing
Titles-and-Headlines-Its-Not-a-Newspaper
Tracking-Your-Visitors
Understanding-Web-Jargon
Uploading-Your-Website-with-FTP
Using-Flash-Sensibly
Using-Quizzes-and-Games-to-Get-Traffic
VBScript-Javascript-Made-Easy
Websites-and-Weblogs-Whats-the-Difference
What-Do-You-Want-Your-Website-to-Do
What-You-See-Isnt-Always-What-You-Get
Which-Database-is-Right-for-You
Why-Doing-It-Yourself-is-Best
Why-Java-Will-Drive-Your-Visitors-Away
Why-Word-is-Bad-for-the-Web
Why-You-Should-Put-Your-Content-in-a-Weblog-Format
Why-You-Should-Stick-to-Design-Conventions
Working-With-Templates
Writing-for-the-Web
Site Map