<?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/"
xmlns:media="http://search.yahoo.com/mrss/"
><channel><title>Yoast&#187; CSS Archives  - Yoast - Tweaking Websites</title> <atom:link href="http://yoast.com/tag/css/feed/" rel="self" type="application/rss+xml" /><link>http://yoast.com</link> <description>Tweaking Websites</description> <lastBuildDate>Sun, 07 Mar 2010 11:56:16 +0000</lastBuildDate> <generator>http://wordpress.org/?v=</generator> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <image><title>Yoast</title> <url>http://netdna.yoast.com/wp-content/themes/yoast-v2/images/yoast-logo-rss.png</url><link>http://yoast.com</link> <width>144</width> <height>103</height> <description>Tweaking Websites</description> </image> <item><title>CSS Image Replacement, what&#039;s up Matt?</title><link>http://yoast.com/google-speed-sprites/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=google-speed-sprites</link> <comments>http://yoast.com/google-speed-sprites/#comments</comments> <pubDate>Thu, 25 Jun 2009 21:41:09 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[SEO]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[Sprites]]></category><guid
isPermaLink="false">http://yoast.com/?p=1502</guid> <description><![CDATA[So I'm a big fan of CSS image replacement, for several reasons, most importantly because it allows for a semantically correct page while having some text replaced with images, but also because I love sprites and I love using them well.
I've also always been in favor of the use of CSS Image Replacement for headings, [...]<p><a
href="http://yoast.com/google-speed-sprites/">CSS Image Replacement, what's up Matt?</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p> ]]></description> <content:encoded><![CDATA[<p>So I'm a big fan of CSS image replacement, for several reasons, most importantly because it allows for a semantically correct page while having some text replaced with images, but also because I love sprites and I love using them well.</p><p>I've also always been in favor of the use of CSS Image Replacement for headings, while not wanting to fake the search engines, I've kept a simple rule: if you OCR the page, it should be <em>exactly</em> the same as when you read the HTML.</p><p>I've <a
href="http://www.davidnaylor.co.uk/replacing-h1-tags-with-images.html#comment-5843">said so</a> on Dave's blog back in January '08, and then, Matt Cutts <a
href="http://www.davidnaylor.co.uk/replacing-h1-tags-with-images.html#comment-5842">agreed with me</a>. Well, Dave pinged me today, <a
href="http://www.davidnaylor.co.uk/should-i-include-my-logo-text-using-alt-or-css.html">and blogged it too</a>, because in a video today on Youtube, <a
href="http://www.mattcutts.com/blog/">Matt</a> said something else:</p><p><a
href="http://yoast.com/google-speed-sprites/"><em>Click here to view the embedded video.</em></a></p><p>Now Matt, how would you go about doing something like my menu, here on <a
href="http://yoast.com">Yoast.com</a>, without doing CSS Image Replacement? You know that thing, <a
href="http://code.google.com/speed/">Speed</a> that your colleagues are going for? Well so am I. My navigation looks like this (when shrunk heavily:)</p><p><img
title="Navigation" src="http://netdna.yoast.com/wp-content/themes/yoast-v2/img/nav.gif" alt="Navigation" width="580" /></p><p>And the HTML for it looks like this:</p><div
class="wp_syntax"><div
class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ul</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;nav&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;a1&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://yoast.com/wordpress/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>WordPress<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;a2&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://yoast.com/articles/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Articles<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;a3&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://yoast.com/tools/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Tools<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;a4&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://yoast.com/hire-me/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Hire Me<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;u1&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://yoast.com/advertise-here/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Advertise<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;u2&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://yoast.com/sitemap/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Sitemap<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;u3&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://yoast.com/contact/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Contact<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;u4&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://yoast.com/speaking/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Speaking<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div><p>I think that's a pretty cool use of CSS, HTML and the possibilities it offers to mark up websites in clean, semantic code, with a great look, while going for speed. I mean, how would you do that with alt tags?</p><p>I hope you agree Matt, because otherwise you're contradicting yourself... Because, well, the Google result pages look like this:</p><p><img
src="http://uploads.yoast.com/css-image-replacement-20090625-230851.png" alt="Google or &quot;Google&quot;" /></p><p><span
class="strike">And that even violates my own guidelines... It says "Google" in the text (notice the quotes?) and Google on the image (notice the lack of quotes?).</span><sup>*</sup> And by the way, the Google Webmaster blog <a
href="http://googlewebmastercentral.blogspot.com/2008/05/design-patterns-for-accessible.html">said something else</a> as well.</p><p>Maybe you were trying to be friendly to people and not make it too hard on them, or you didn't feel like telling the complete story because that confuses people. But please, please, please, be aware that there are some SEO's out there who actually trust what you tell them, like I do, and who don't like to be disappointed twice in a month.</p><p>You took away PageRank sculpting as a valid technique, which was a technique you said had its merits, although it was only used by a few, now you're going to take away CSS image replacement? A technique used by just about ANY decent web designer out there? I think a bit of clarification is needed here.</p><p>Otherwise I just might have to go with what <a
href="http://demib.dk/">Mikkel</a> said on this one as well... He said this, on a post of yours <a
href="http://www.mattcutts.com/blog/seo-advice-use-text/#comment-19798">back in '06</a> about using text:</p><blockquote><p><em>Matt, you know I allways use tons of text. Real text. All over my cloaked pages – and it works really well, thanks</em></p></blockquote><p><sup>*</sup> <strong>Update:</strong> as noted by <a
href="http://www.broes.nl/">Thijs</a> in the comments, the quotes are added by Safari's web inspector, they're not in the source.</p><p><a
href="http://yoast.com/google-speed-sprites/">CSS Image Replacement, what's up Matt?</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p> ]]></content:encoded> <wfw:commentRss>http://yoast.com/google-speed-sprites/feed/</wfw:commentRss> <slash:comments>63</slash:comments> <media:thumbnail url="http://netdna.yoast.com/wp-content/themes/yoast-v2/img/nav.gif" /> <media:content url="http://netdna.yoast.com/wp-content/themes/yoast-v2/img/nav.gif" medium="image"> <media:title type="html">Navigation</media:title> </media:content> <media:content url="http://uploads.yoast.com/css-image-replacement-20090625-230851.png" medium="image"> <media:title type="html">Google or &#34;Google&#34;</media:title> </media:content> </item> <item><title>Meet Yoast!</title><link>http://yoast.com/meet-yoast/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=meet-yoast</link> <comments>http://yoast.com/meet-yoast/#comments</comments> <pubDate>Mon, 09 Jun 2008 11:46:36 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[SEO]]></category> <category><![CDATA[Blogging]]></category> <category><![CDATA[CSS]]></category><guid
isPermaLink="false">http://yoast.com/?p=651</guid> <description><![CDATA[<a
href="http://yoast.com/meet-yoast/"><img
src="http://cdn.yoast.com/uploads/2008/06/yoast-redesign.png" alt="Yoast Redesign" title="Yoast Redesign" width="256" height="251" class="alignright size-full wp-image-652" /></a>I've redesigned! Read the full post on it, and check out the great new design by clicking around!<p><a
href="http://yoast.com/meet-yoast/">Meet Yoast!</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p> ]]></description> <content:encoded><![CDATA[<p>After a couple of years on joostdevalk.nl, I've decided it was time to do a couple of things at the same time:</p><ul><li>redesign to a more professional look</li><li>move to a .com domain and US based hosting</li><li>301 redirect the entire old domain to that new domain</li></ul><p><a
href="http://yoast.com/"><img
src="http://netdna.yoast.com/wp-content/uploads/2008/06/yoast-redesign.png" alt="Yoast Redesign" title="Yoast Redesign" width="256" height="251" class="alignright size-full wp-image-652" /></a>Now those of you who are unlucky enough to have me in your IM list have been spammed a lot by me the last few weeks, while I was doing all the redesign work, and deciding which domain I was going to use. In the end, I decided to go with <a
href="http://yoast.com">yoast.com</a>. This name was created when at SMX Stockholm last year, I tried to explain to <a
href="http://www.seomoz.org/team/randfish">Rand Fishkin</a> and some other people how to pronounce my first name, Joost, properly. Rand spoke the great words "ow that's easy, just toast with a y", and then: yoast was born.</p><p>It took some time (and money) to acquire yoast.com, but I succeeded in that too, and then went on to pick a designer. I chose to work with Alen Grakalic of <a
href="http://www.cssglobe.com/">CSS Globe</a>, who not only creates great designs, but can code them to my, very very high, XHTML and CSS standards too. We worked together for a couple of weeks, with me getting feedback from some of my very good friends like Ben Jesson of <a
href="http://www.conversion-rate-experts.com/">Conversion Rate Experts</a>, <a
href="http://www.jenniferslegg.com/">Jennifer Slegg</a> and <a
href="http://www.royhuiskes.com/">Roy Huiskes</a>.</p><p>In the new design, I wanted to do a couple of new things:</p><ul><li>Create a better homepage, which had to be more than a blog index page.</li><li>Create a separate blog index page, while keeping the URL's for posts the same.</li><li>Make a better distinction between utility pages, like contact, advertising etc., and the "really" important pages: SEO tools, WordPress plugins and Articles.</li><li>Clean up the template for single post pages and pages.</li></ul><p>And preserve a couple of others:</p><ul><li>Make the RSS button still stand out as much as it did in the old design.</li><li>Keep the tag cloud.</li><li>Make sure the comments stayed as important as they were in the previous design.</li></ul><p>Alen did a great job, as you can see in the new design. Now the last thing I had to do was get a new logo and tagline. I'd always called this blog an SEO blog, and in some sense, it is. But a lot of what I write about has hardly anything to do with SEO. So I started discussing a new tagline with the above mentioned friends, and Daniel Scocco of <a
href="http://www.dailyblogtips.com/">Daily Blog Tips</a>.</p><p>In the end, I decided to go with "Tweaking Websites", as that's what I do. For the logo, my buddy <a
href="http://www.brentcsutoras.com/">Brent Csutoras</a> pointed me to a site called <a
href="http://99designs.com/">99designs</a>. This site allows you to launch a contest for a design. I set a $400 price, and got a massive load of designs submitted, <a
href="http://99designs.com/contests/7948">check them out</a>.</p><p>In the end, a German guy called <a
href="http://www.mediaberger.com/">Christian Hockenberger</a> won. He came up with <a
href="http://99designs.com/contests/7948/entries/536764">this design</a>. I'd like to thank all of my friends for all of their help in this move! Now on to what is basically a very big experiment: a 301 redirect of an entire site to a new, US hosted domain.</p><p>Some stuff won't be finished today, some moving still needs to be done. But do look around and share your feelings about the redesign in the comments!</p><p><a
href="http://yoast.com/meet-yoast/">Meet Yoast!</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p> ]]></content:encoded> <wfw:commentRss>http://yoast.com/meet-yoast/feed/</wfw:commentRss> <slash:comments>68</slash:comments> <media:thumbnail url="http://netdna.yoast.com/wp-content/uploads/2008/06/yoast-redesign-150x150.png" /> <media:content url="http://netdna.yoast.com/wp-content/uploads/2008/06/yoast-redesign.png" medium="image"> <media:title type="html">yoast-redesign</media:title> <media:description type="html">Yoast Redesign</media:description> <media:thumbnail url="http://netdna.yoast.com/wp-content/uploads/2008/06/yoast-redesign-150x150.png" /> </media:content> </item> <item><title>User stylesheets to show nofollows</title><link>http://yoast.com/user-stylesheet-nofollows/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=user-stylesheet-nofollows</link> <comments>http://yoast.com/user-stylesheet-nofollows/#comments</comments> <pubDate>Sat, 05 Apr 2008 18:57:40 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[SEO]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[Firefox]]></category> <category><![CDATA[Nofollow]]></category> <category><![CDATA[Safari]]></category><guid
isPermaLink="false">http://www.joostdevalk.nl/?p=596</guid> <description><![CDATA[Update: now works with links with rel="external nofollow" etc too!
I've recently switched back to Safari as my main browser because good ol' Firefox kept crashing on me, and I must say that it's been a smooth experience so far. Safari is a great browser, of course, and 3.1 is very fast as well. One of [...]<p><a
href="http://yoast.com/user-stylesheet-nofollows/">User stylesheets to show nofollows</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p> ]]></description> <content:encoded><![CDATA[<p><strong>Update:</strong> now works with links with <code>rel="external nofollow"</code> etc too!</p><p>I've recently switched back to Safari as my main browser because good ol' Firefox kept crashing on me, and I must say that it's been a smooth experience so far. Safari is a great browser, of course, and 3.1 is very fast as well. One of the things I like to see for every site though is where they use nofollow, so I had to find a way to do that in Safari.</p><p><span
id="more-596"></span>The easiest way of doing that, in my opinion, is using a user stylesheet. You can specify it in your Safari preferences, under Advanced:</p><p><img
class="alignnone size-full wp-image-598" title="User Stylesheet Selection" src="http://netdna.yoast.com/wp-content/uploads/2008/04/user-stylesheet-selection.png" alt="User Stylesheet Selection" width="494" height="285" /></p><p>(BTW, you can use <a
href="http://webdesign.about.com/od/css/ht/htcssuserfirefo.htm">user style sheets on Firefox</a> too.)</p><p>Then put the following in the stylesheet you selected:</p><pre>
a[rel~=nofollow] {
background-color: pink !important;
color: black !important;
font-weight: normal !important;
text-decoration: underline !important;
}
</pre><p>And after that, all nofollow links you encounter should look something <a
style="background-color: pink; color: #000; text-decoration:underline;" href="#">like this</a>.</p><p>If you want to make sure you see nofollowed image-links as well, add this:</p><pre>
a[rel~=nofollow] img {
border-bottom: 3px solid pink !important;
}
</pre><p>That will add a small pink bottom border to the image that is linked. Download the entire stylesheet <a
rel="nofollow" href="http://netdna.yoast.com/wp-content/uploads/2008/04/nofollow-stylesheet.css">here</a>.</p><p><a
href="http://yoast.com/user-stylesheet-nofollows/">User stylesheets to show nofollows</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p> ]]></content:encoded> <wfw:commentRss>http://yoast.com/user-stylesheet-nofollows/feed/</wfw:commentRss> <slash:comments>21</slash:comments> <media:thumbnail url="http://netdna.yoast.com/wp-content/uploads/2008/04/user-stylesheet-selection-150x150.png" /> <media:content url="http://netdna.yoast.com/wp-content/uploads/2008/04/user-stylesheet-selection.png" medium="image"> <media:title type="html">User Stylesheet Selection</media:title> <media:description type="html">User Stylesheet Selection</media:description> <media:thumbnail url="http://netdna.yoast.com/wp-content/uploads/2008/04/user-stylesheet-selection-150x150.png" /> </media:content> </item> <item><title>Added a print CSS style sheet</title><link>http://yoast.com/added-print-css-style-sheet/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=added-print-css-style-sheet</link> <comments>http://yoast.com/added-print-css-style-sheet/#comments</comments> <pubDate>Sun, 02 Mar 2008 16:10:57 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[Webdesign & development]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[Web Design]]></category><guid
isPermaLink="false">http://www.joostdevalk.nl/added-print-css-style-sheet/</guid> <description><![CDATA[Today, I checked an item off on my todo list that had been on there way too long: I created a print style sheet for this site. Every time I write an article that is longer than 5 paragraphs, I get emails from readers asking for a better print style sheet. Until just a few [...]<p><a
href="http://yoast.com/added-print-css-style-sheet/">Added a print CSS style sheet</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p> ]]></description> <content:encoded><![CDATA[<p>Today, I checked an item off on my todo list that had been on there way too long: I created a print style sheet for this site. Every time I write an article that is longer than 5 paragraphs, I get emails from readers asking for a better print style sheet. Until just a few minutes ago, printing would include the header, the sidebar and the comments, not exactly friendly.</p><p>Next to that links would be in a different color, depleting your color cartridges and not giving you <em>any</em> info whatsoever. When you've printed an article, you usually have to go back to the online version to be able to open the links. There's a solution for that, and it's actually quite easy: using CSS to add the URL after the link. That's really easy to do with the <code>content</code> declaration, like this:</p><pre>#content a:after {
	content: " (" attr(href) ") ";
	font-size: 80%;
}</pre><p>Next to that I used <code>display:none;</code> to hide the menu, sidebar and comments, so you get just the article, in black text, on a white background.</p><p>Of course, feel free to have a look at (and copy) my <a
href="http://yoast.com/wp-content/themes/jdv/print.css" rel="nofollow">print css</a>!</p><p><a
href="http://yoast.com/added-print-css-style-sheet/">Added a print CSS style sheet</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p> ]]></content:encoded> <wfw:commentRss>http://yoast.com/added-print-css-style-sheet/feed/</wfw:commentRss> <slash:comments>16</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using apc
Page Caching using apc
Database Caching 6/17 queries in 0.009 seconds using apc
Content Delivery Network via netdna.yoast.com

Served from: yoast.com @ 2010-03-16 00:41:53 -->