www.north-square.com
+44 (0) 845 47 48 456 info@north-square.com

North Square completes its evaluation of the new Allerdale Council website. North Square has worked for 26 councils in the UK.
View major clients, testimonials, and request references in our Client Portfolio.
(January 2008)
02 August 2007
Web developers have always had to ensure that their pages were viewable on screens at 800 by 600 resolution (width by height) and above. The problem with 800 by 600 is that most printers cannot print objects beyond 500 to 600 pixels across on standard A4 or legal letter paper.
Some web developers just ignore the problem of printing. Others create printer-friendly links on the page that are narrower. These links are designed to replace the use of the Print function in the user's browser. These printer-friendly pages are either:
The problem with these techniques are:
With the advent of Cascading Style Sheets (CSS), developers can now create a specific print-friendly CSS file. The screen version of the page can be modified so that all objects fit onto standard print paper. Developers do not need to update 2 different pages and users can print pages using the function in the browser.
In our Website Evaluation Reports, we recommend that printable pages differ from screen pages in the following ways:
In the next section we discuss how to code some of the above.
The following code can be used between <head> and </head> to link to a printer-friendly Cascading Style Sheet:
<link rel="stylesheet" type="text/css" media="print" href="print.css" />
The media attribute can contain many values such as all, screen, print, aural and braille. Creating a printer-friendly style sheet often involves copying the all or screen style sheets and removing or hiding objects.
In Cascading Style Sheets, objects can either be removed completely from the page, or hidden. Objects that are removed are taken out of the natural flow of the page and where applicable, other objects will move up the page to fill the void. Objects that are hidden remain part of the page framework, but are hidden from view. In most cases, objects will need removing although it is normal to experiment with both techniques. For example, on the North Square printable pages, we remove the navigation bar:
navigation_bar {display: none}
The code to hide objects is:
navigation_bar {visibility: hidden}
Web pages that have fixed width dimensions e.g. width: 670px; can easily be converted to variable width e.g. width: 100%;.
The following code is taken from the North Square print-friendly Cascading Style Sheet file.
a[href^="/"]:after { content: " (http://www.north-square.com" attr(href) ") ";}
Make sure your domain is inserted into the code above.
by David Miller
Website Analyst,
North Square Interactive
North Square Interactive is an online consultancy that delivers cost effective, best practice, Website Evaluation reports, Usability Testing, Website Competitor Analysis, Accessibility Audits, Browser Testing, and more. For further information about all of our services, please visit our Online Consultancy Index.