<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Koodoz Design &#187; printing</title>
	<atom:link href="http://www.koodoz.com.au/tag/printing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.koodoz.com.au</link>
	<description>Koodoz Design is a creative design studio based in Richmond, Melbourne. We help businesses unleash their full potential through visual communication and clever design.</description>
	<lastBuildDate>Mon, 23 Jan 2012 03:40:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Working with print style sheets: an introduction</title>
		<link>http://www.koodoz.com.au/klog/web-design-html-xhtml-css-cascading-style-sheets-hyper-text-markup-language-javascript-flash-php/working-with-print-style-sheets-an-introduction/</link>
		<comments>http://www.koodoz.com.au/klog/web-design-html-xhtml-css-cascading-style-sheets-hyper-text-markup-language-javascript-flash-php/working-with-print-style-sheets-an-introduction/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 01:38:34 +0000</pubDate>
		<dc:creator>Daniel Angel</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[print]]></category>
		<category><![CDATA[printing]]></category>
		<category><![CDATA[style sheets]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.koodoz.com.au/?p=1009</guid>
		<description><![CDATA[

Don&#8217;t you just hate it when you print a website &#8230;]]></description>
			<content:encoded><![CDATA[<img src="http://www.koodoz.com.au/wp-content/uploads/2009/07/press.jpg" alt="the press ... oh, the press" title="press" width="290" height="373" class="size-full wp-image-1022" />

<p>Don&#8217;t you just hate it when you print a website only to find out that it&#8217;s gone all wrong? Background images and colours are lost, text becomes unreadable due to lack of contrast and many elements, such as menus, are unnecessary when in paper, thus wasting precious micro-drops of <a href="http://www.mademan.com/wallstreetfighter/2007/02/whats-most-expensive-liquid-you-might.html" rel="external">the most expensive liquid in the world</a>. Worry not, for <acronym title="Cascading Style Sheets">CSS</acronym> is the answer to all of these problems.<span id="more-1009"></span></p>

<h3>You can create a style sheet <em>exclusively</em> for print media</h3>

<p>Amazingly, many people &mdash;even seasoned web professionals&mdash; don&#8217;t know this. The CSS2 standard defines <a href="http://www.w3.org/TR/CSS2/media.html" rel="external">ten different media types</a>: <em>all</em>, <em>braille</em>, <em>embossed</em>, <em>handheld</em>, <em>print</em>, <em>projection</em>, <em>screen</em>, <em>speech</em>, <em>tty</em> and <em>tv</em>. I bet you didn&#8217;t know you can use CSS for braille printers or TVs!</p>

<h3>Inserting print style sheets into your document</h3>

<p>You can associate print styles with your documents in numerous ways. The most common one is through the use of the <code>&lt;link&gt;</code> tag. You need to use the <em>media</em> attribute to specify that it&#8217;s meant for print:</p>

<p>
<pre>
&lt;link rel=&quot;stylesheet&quot; type&quot;text/css&quot; <br /> href=&quot;print-stylesheet.css&quot; <strong>media=&quot;print&quot;</strong> /&gt;
</pre>
</p>

<p>You can also use the <code>@import</code> rule inside style tags &#8211; notice the media specification after the parenthesis:

<p>
<pre>
&lt;style type=&quot;text/css&quot;&gt;
  @import url(&quot;print-stylesheet.css&quot;) <strong>print</strong>;
&lt;/style&gt;
</pre>
</p>

<p>Finally, you can even specify different media on the same css file. You can do this by using the @media rule:</p>

<p>
<pre>
&lt;style type=&quot;text/css&quot;&gt;
@media screen {
   body {background: magenta;}
}
<strong>@media print {
   body {background: none;}
}</strong>
&lt;/style&gt;
</pre>
</p>

<h3>Styling documents for print</h3>

<p>Okay, so now you know how to specify your styles. You now need to tell the printer how to render the document. Let&#8217;s take our beloved Koodoz website as an example. Consider our <a href="http://www.koodoz.com.au/services/design/">design services</a> page. There are tons of elements that would be useless on a piece of paper: the main menu, the <acronym title="Really Simple Sindication">RSS</acronym> subscription link and the form elements, for instance, so let&#8217;s remove these:</p>

<p>
<pre>
p#eco, p#rss-info, form, ul#nav {
	display: none;
}
</pre>
</p>

<p>Also, unless you <em>absolutely</em> need to, do not use colour. Non-decorative images are okay, but other than that, everything else should be black and white, including links. You can, however, use shades of grey for visited and non-visited links, but be careful with the contrast. This provides a nice little usability cue:</p>

<p>
<pre>
a {
	color: #666;
}
a:visited {
	color: #999;
}
</pre>
</p>

<p>Now, for typography, you want to take <a href="http://www.charlotteswebstudios.com/article.php?ttd=2&#038;ark=1" rel="external">this piece of advice</a>: for the screen, sans-serif fonts are easier on the eye. For print, however, go with serif. In our case, we&#8217;ll combine both: sans-serif for the headers and serif for paragraphs and other large bits of text:</p>

<p>
<pre>
h1, h2, h3, h4, h5, h6 {
	font-family: Arial, Helvetica, sans-serif;
}
p, ul, ol {
	font-family: Georgia, &quot;Times New Roman&quot;, serif;
}
</pre>
</p>

<h3>Just the tip of the iceberg&hellip;</h3>

<p>These are just the basic recommendations for printing. You can do many, many more interesting things: Separate content sections, format tables, use the CSS <code>first-letter</code> pseudo element, <abbr title="et cetera">etc</abbr>. Next thing you know, you&#8217;ll have mastered editorial design!</p>

<img src="http://www.koodoz.com.au/wp-content/uploads/2009/07/print-css.jpg" alt="comparison: before and after" title="print-css" width="540" height="810" class="size-full wp-image-1027 center" />]]></content:encoded>
			<wfw:commentRss>http://www.koodoz.com.au/klog/web-design-html-xhtml-css-cascading-style-sheets-hyper-text-markup-language-javascript-flash-php/working-with-print-style-sheets-an-introduction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

