﻿<?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>Ladysign Dev Blog &#187; tricks</title>
	<atom:link href="http://www.ladysign-apps.com/blog/tag/tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ladysign-apps.com/blog</link>
	<description>Girls can code.</description>
	<lastBuildDate>Mon, 01 Feb 2010 09:44:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>7 CSS tricks for a print stylesheet</title>
		<link>http://www.ladysign-apps.com/blog/code/css/7-css-tricks-for-a-print-stylesheet/</link>
		<comments>http://www.ladysign-apps.com/blog/code/css/7-css-tricks-for-a-print-stylesheet/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 08:24:03 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[print stylesheet]]></category>
		<category><![CDATA[print.css]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://ladysign-apps.com/blog/?p=875</guid>
		<description><![CDATA[<p><strong>Difficulty:</strong> 1 out of 5 stars<br />
There are some cool styling tricks, which are nice to have when it comes to printing out a webpage.<br />
Please see my Print C[......]</p>]]></description>
			<content:encoded><![CDATA[<p><strong>Difficulty:</strong> 1 out of 5 stars<br />
There are some cool styling tricks, which are nice to have when it comes to printing out a webpage.<br />
Please see my Print CSS snippets and tricks:</p>
<ol>
<li>Do not use much styles. If you print out a webpage you don&#8217;t want to print colors! (unless to color hyperlinks). Keep it plain and simple and write a short print stylesheet.<br/>
</li>
<li>Make sure you named your (2nd) stylesheet for printing: print.css<br />
And give it the &#8216;media&#8217; attribute print:</p>
<pre class="brush: xml;">&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;print.css&quot; media=&quot;print&quot; /&gt;</pre>
<p><br/>
</li>
<li>Use a good readable font. I would say a &#8220;serif&#8221; 12pt font and ofcourse keep it black.
<pre class="brush: css;">body { color : #000000; background : #ffffff; font-family : "Times New Roman", Times, serif; font-size : 12pt; }</pre>
<p><br/>
</li>
<li>It should be clear when a hyperlink is printed. Therefore keep links underlined. You can even color it blue.
<pre class="brush: css;">a { text-decoration : underline; color : #0000ff; }</pre>
<p><br/>
</li>
<li>Do not print out layout parts, navigation, javascript or flash animations.
<pre class="brush: css;">#navigation, #headerImage { display: none; }</pre>
<p><br/>
</li>
<li>This is a handy trick: With these styles you can set a page break for printing before or after:<br />
<em>Possible attributes are: always (print page break) | auto (default &#8211; page break where page ends) | left | right.</em></p>
<pre class="brush: css;">H1 {page-break-after: auto}
H2 {page-break-before: always}</pre>
<p><br/>
</li>
<li>Another handy trick, is to print the URL after an underlined hyperlink:
<pre class="brush: css;">a:link:after, a:visited:after { content: " (" attr(href) ")"; }</pre>
<p><br/>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.ladysign-apps.com/blog/code/css/7-css-tricks-for-a-print-stylesheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
