<?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>ruído / noise &#187; [lang_en]code[/lang_en][lang_pt]codigo[/lang_pt]</title>
	<atom:link href="http://ruido.rhwinter.com/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://ruido.rhwinter.com</link>
	<description>noise, dust and heat</description>
	<lastBuildDate>Mon, 08 Mar 2010 18:29:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Printing pages not meant to be printed</title>
		<link>http://ruido.rhwinter.com/2007/02/05/como-imprimir-paginas-que-nao-foram-feitas-para-serem-impressas/</link>
		<comments>http://ruido.rhwinter.com/2007/02/05/como-imprimir-paginas-que-nao-foram-feitas-para-serem-impressas/#comments</comments>
		<pubDate>Mon, 05 Feb 2007 11:46:50 +0000</pubDate>
		<dc:creator>rhwinter</dc:creator>
				<category><![CDATA[[lang_en]code[/lang_en][lang_pt]codigo[/lang_pt]]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://ruido.rhwinter.com/2007/02/05/como-imprimir-paginas-que-nao-foram-feitas-para-serem-impressas/</guid>
		<description><![CDATA[I know that most people out there are not really interested in printing pages from the internets. But hey, some of us are! The main problem you find when trying to print pages is: they (usually) are not meant to be printed! In comes Firefox and its add-ons. More specifically: the Web Developer Firefox add-on. [...]]]></description>
			<content:encoded><![CDATA[<p>I know that most people out there are not really interested in printing pages from the internets. But hey, some of us are! The main problem you find when trying to print pages is: they (usually) are not meant to be printed! In comes <a title="Get Firefox!!!" href="http://www.getfirefox.com">Firefox</a> and its <a title="Firefox Add-ons" href="https://addons.mozilla.org/firefox/">add-ons</a>. More specifically: the <a title="Webdeveloper Firefox Add-on" href="https://addons.mozilla.org/firefox/60/">Web Developer</a> Firefox add-on. With it you can (among a million other things) change a page&#8217;s look by altering its <a title="CSS on Wikipedia" href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets">CSS</a>. Ok, this tip is not going to work for everyone, but if you do <a title="Learn CSS at the w3schools" href="http://www.w3schools.com/css/default.asp">know CSS</a>, a little bit might go a long way to help you save paper and your poor eyes: the changes you make on the CSS using Web Developer <strong>are</strong> taken into account when a webpage is printed!</p>
<p>An example: this <a title="Typographer.org Interview with Barnbrook" href="http://www.typographer.org/archive/mag-interview-barnbrook.html">interview with Jonathan Barnbrook</a> really got me interested and I wanted to print it. It takes just a quick look at the page to realize it will look bad when printed. More specifically, it&#8217;ll look like this:</p>
<div style="text-align: center"><a title="Typographer interview before applying CSS" class="imagelink" href="http://ruido.rhwinter.com/wp-content/uploads/2007/01/1_antes.jpg"><img width="350" height="480" alt="Typographer interview before applying CSS" id="image38" src="http://ruido.rhwinter.com/wp-content/uploads/2007/01/1_antes.jpg" /></a></div>
<p>You can see how the font is really really small and a lot of prrrecious paper is being wasted (the article spans 7 printed pages). Now just fire up the &#8216;Edit CSS&#8217; feature on Web Developer (under <em>Tools-> Web Developer-> CSS</em>). At the end of the code shown on the newly opened sidebar type something like:<br />
<code /></p>
<blockquote><p>* {<br />
background: white;<br />
font-size:12.5pt;<br />
}<br />
table {<br />
width:100%;<br />
}<br />
i {<br />
font-family:Georgia;<br />
font-size:16pt;<br />
font-style:normal;<br />
font-weight:bold;<br />
}<br />
.bodytext{<br />
font-family:Georgia;<br />
font-weight:bold;<br />
}<br />
p{<br />
text-align:justify;<br />
font-family: Times New Roman;<br />
margin:0;<br />
padding:0;<br />
margin-top:0.5em;<br />
line-height:1.5em;<br />
text-indent:25px;<br />
font-weight:normal;<br />
}<br />
.headings {<br />
font-size:24pt;<br />
}</p></blockquote>
<p></code><br />
And you&#8217;ll get is this:</p>
<div style="text-align: center"><a title="Typographer interview after applying CSS" class="imagelink" href="http://ruido.rhwinter.com/wp-content/uploads/2007/01/1_depois.jpg"><img width="350" height="481" alt="Typographer interview after applying CSS" id="image39" src="http://ruido.rhwinter.com/wp-content/uploads/2007/01/1_depois.jpg" /></a></div>
<p>Notice how fonts are larger, changed and much more readable when printed. All the wasted space is gone and, despite the fact that the printed article still amounts to 7 pages, we are not wasting paper: it is actually being used to improve readability (you could have used smaller &#8220;line-height&#8221; so that lines are not so far apart; you could also use smaller fonts). And that was just a quick <em>dirty</em> edit of the CSS, the more you want it to look good, the further you&#8217;ll get.</p>
<p> Another trick worth mentioning is: if a page has lots of links and you don&#8217;t want them to be stupid blue text you can actually write the link address after the linked word, simply use this nifty css rule:</p>
<blockquote><p>A:after {<br />
/* Expand URLs for printing */<br />
content:&#8221; (&#8221; attr(href) &#8220;) &#8220;;<br />
text-decoration:none;<br />
}</p></blockquote>
<p>See how this:</p>
<div style="text-align: center"><img id="image55" alt="Example of simple blue linked text" src="http://ruido.rhwinter.com/wp-content/uploads/2007/01/sag01.jpg" /></div>
<p>Magically turns into this:</p>
<div style="text-align: center"><img id="image54" alt="Example of expanded URL" src="http://ruido.rhwinter.com/wp-content/uploads/2007/01/sag00.thumbnail.jpg" /></div>
<p>Hope this was useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://ruido.rhwinter.com/2007/02/05/como-imprimir-paginas-que-nao-foram-feitas-para-serem-impressas/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
