<?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>Leon Paternoster &#187; How-to</title>
	<atom:link href="http://leonpaternoster.com/category/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://leonpaternoster.com</link>
	<description>Web writing, planning and design from Ipswich, Suffolk</description>
	<lastBuildDate>Wed, 28 Jul 2010 19:42:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Good web copy is boring</title>
		<link>http://leonpaternoster.com/2010/05/good-web-copy-is-boring/</link>
		<comments>http://leonpaternoster.com/2010/05/good-web-copy-is-boring/#comments</comments>
		<pubDate>Wed, 05 May 2010 13:30:54 +0000</pubDate>
		<dc:creator>Leon</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[Writing]]></category>
		<category><![CDATA[brevity]]></category>
		<category><![CDATA[comms]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[sales]]></category>

		<guid isPermaLink="false">http://leonpaternoster.com/?p=1130</guid>
		<description><![CDATA[Simple, factual copy that gets to the point will help sell products and services. But convincing colleagues and clients of this fact isn't easy.]]></description>
			<content:encoded><![CDATA[<p>One of the most difficult things about writing web copy on a day to day basis is taking some text from a colleague and reforming it into an often brief missive.</p>
<p><em>Where have my lovely adjectives gone?</em> is what they&#8217;re thinking but not saying. <em>Most</em> people are very polite and will save their disapproval for another time (or person. But I digress).</p>
<p>Untrained web writers often make these mistakes:</p>
<ul>
<li>they assume that not having much to say about their product or service means it somehow lacks gravitas, substance <span class="amp">&amp;</span>c.</li>
<li>they think words can mask the fact there&#8217;s not much content</li>
<li>they think that writing <strong>unadorned by adjectives</strong> is dull</li>
<li>they think that short, <strong>simple, active sentences</strong> are dull</li>
<li>they think that their adjectives enhance the description of their product or service; that they help <em>paint a picture</em></li>
<li>they think bullet points, bolded keywords and short, bitty paragraphs look <strong>ugly</strong></li>
</ul>
<p>The problem with adjective–laden writing is that <em>readers</em> couldn&#8217;t care less whether your product is <em>innovative</em> and <em>new </em>because they haven&#8217;t come across a product that is <em>unoriginal</em> or <em>dated</em> in the last 10 years of browsing the web. These types of adjectives have less than <strong>zero meaning</strong>.</p>
<div id="attachment_1135" class="wp-caption aligncenter" style="width: 577px"><a href="http://www.mspa-eu.org/events/"><img class="size-full wp-image-1135" title="The MSPA annual conference web page" src="http://leonpaternoster.com/wp-content/uploads/2010/05/mspa1.jpg" alt="Screenshot of The MSPA annual conference web page - lots of text about Istanbul and culture" width="567" height="450" /></a><p class="wp-caption-text">Screenshot of The MSPA annual conference web page: lots of text about Istanbul but who&#39;s speaking and what will I learn?</p></div>
<p>Readers want to know how the product you&#8217;re offering will help them, so a quick summary of its <strong>benefits</strong> will suffice. Structure this is in a way that helps them <strong>scan</strong> your text, paint pictures with, erm, <strong>pictures</strong>, and you&#8217;re pretty much there.</p>
<p>On paper (or screen) it may <em>seem</em> boring, and a million miles from the original author&#8217;s conception of their product, but your readers will appreciate it. <strong>Conversions</strong> really do increase after copy is stripped down to communicate a clear message.</p>
<h1>Getting the boring message across</h1>
<p>Ben Locker explains how <a href="http://benlocker.co.uk/the-best-copywriting-so-simple-people-wont-pay-for-it/">clients don&#8217;t value simple copy</a>. I try and demonstrate its purpose to colleagues by:</p>
<ul>
<li>involving them in the content writing process by showing them drafts and explaining why I&#8217;ve made certain decisions</li>
<li>sitting them in on some simple, low–fi user testing. It doesn&#8217;t have to be related to whatever it is they&#8217;re interested in; witnessing how impatient real people are in real web situations is often an eye opener</li>
<li>getting them to perform a fact finding task using a real site which uses overly complicated copy (note their frustration)</li>
</ul>
<p>The key is getting clients or colleagues to see with the user&#8217;s (or customer&#8217;s) eyes. It&#8217;s not easy, but it can help build trust and make future work a lot easier.</p>
]]></content:encoded>
			<wfw:commentRss>http://leonpaternoster.com/2010/05/good-web-copy-is-boring/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Adventures in HTML5. Part one: Using HTML5 now</title>
		<link>http://leonpaternoster.com/2010/01/adventures-in-html5-part-one-use-it-now/</link>
		<comments>http://leonpaternoster.com/2010/01/adventures-in-html5-part-one-use-it-now/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 22:03:19 +0000</pubDate>
		<dc:creator>Leon</dc:creator>
				<category><![CDATA[Accessibility, usability and readability]]></category>
		<category><![CDATA[Exemplars]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[meaning]]></category>
		<category><![CDATA[screen readers]]></category>
		<category><![CDATA[semantics]]></category>
		<category><![CDATA[structure]]></category>

		<guid isPermaLink="false">http://leonpaternoster.com/?p=917</guid>
		<description><![CDATA[The first in a series of posts that documents my experience of <abbr title="HyperText Markup Language version 5">HTML5</abbr>. I begin by looking at whether we can start using <em>proper</em> (new tags and all) HTML5 now.]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s no real reason I&#8217;m aware of for not using an <abbr title="HyperText Markup Language">HTML5</abbr> DOCTYPE and HTML5 tags (with the exception of <code>audio</code> and <code>video</code>, <a href="http://diveintohtml5.org/video.html">which can be fixed</a>). So that means the first line of any HTML document should be:</p>
<p><code>&lt;!doctype html&gt;</code></p>
<p>Which is reason enough to start using HTML5. But it also means that instead of structuring pages with:</p>
<pre><code>&lt;div id="header"&gt;
... &lt;div id="nav"&gt;
&lt;div id="content"&gt;
... &lt;div class="post"&gt;
&lt;div id="sidebar"&gt;
&lt;div id="footer"&gt;</code></pre>
<p>You can use:</p>
<pre><code>&lt;header&gt;
... &lt;nav&gt;
&lt;article&gt;
... &lt;header&gt;
... &lt;section&gt;
... &lt;footer&gt;
&lt;aside&gt;
&lt;footer&gt;</code></pre>
<p>Which is <em>very</em> exciting (and radically different from the last seven or so table–free years of markup). At last we can structure documents with <em>real</em> tags. There will be less <code>&lt;div&gt;s</code> in the world, which is a good thing.</p>
<h1>Browser support</h1>
<p>All modern browsers interpret HTML5 tags and allow <abbr title="Cascading Style Sheets">CSS</abbr> to style <code>aside</code>, <code>header</code> etc., and you can force Internet Explorer to join the party with a small snippet of javascript. I hotlink to some Google Code–hosted javascript by adding the following to the <code>head</code> section of HTML pages:</p>
<p><code>&lt;!--[if IE]&gt;&lt;script src="<a href="http://html5shiv.googlecode.com/svn/trunk/html5.js">http://html5shiv.googlecode.com/svn/trunk/html5.js</a>"&gt;&lt;/script&gt;&lt;![endif]--&gt;</code></p>
<p>(Note the lack of a script <code>type</code>. That&#8217;s one of the many great things about HTML5: It&#8217;s stripped out lots of <abbr title="X=extensible">(X)HTML</abbr> verbosity, which makes it a lot more <em>friendly</em>.)</p>
<p>Which means the following browsers and user agents don&#8217;t interpret HTML5:</p>
<ul>
<li>Internet Explorer with javascript turned off</li>
<li>Screen readers</li>
</ul>
<p>Which isn&#8217;t a problem because one audience is going to be absolutely tiny (is there any reason to browse in IE with javascript turned off?) and the other will simply ignore the HTML5 tags (another great feature of HTML5 is the <a href="http://www.digital-web.com/articles/fluid_thinking/">graceful degradation</a>. Browsers adopt the standard at different rates, but most of the time the fall back option is perfectly acceptable).</p>
<p><em>Most</em> HTML5–specific tags are currently implemented by (ab)using the virtually meaningless <code>div</code> (<code>div</code> groups bits of content <em>arbitrarily</em>; it doesn&#8217;t indicate <em>why</em> these bits of content have been grouped). As screen readers do nothing with <code>div</code>s it makes no difference if we use <code>header</code> or <code>article</code> instead of <code>div id="header"</code> or <code>div id="content"</code>. And once screen readers start to <em>understand</em> HTML5 users will begin to benefit from more meaningful documents. For example, screen readers could separate navigation from content by looking at the markup contained between <code>nav</code> tags.</p>
<h1>Caveat</h1>
<p>As ever, all is not <em>completely</em> simple. The problem HTML5 poses to screen readers is not the introduction of a new set of tags, but in the way it handles <code>h1</code>-<code>h6</code>. In previous HTML specs, <del title="Thanks to Florent Verschelde for the amendment" datetime="2010-01-08T09:46:32+00:00">a document could only consist of 1-6 discrete headings</del> it made sense to only use one top level heading because it would mark up the document&#8217;s title, and documents normally one have one title. So your document would use <code>h2</code>s, <code>h3</code>s <em>et al</em> to head other pieces of content.</p>
<p>In HTML5 each <em>node</em> can have its own hierarchy of headings (so each <code>header</code>, <code>footer</code>, <code>article</code> and <code>aside</code> can have an <code>h1</code>), although it doesn&#8217;t have to (HTML5 is a good friend because it&#8217;s so flexible) Looking at our traditionally marked-up page, it would be structured along the lines of:</p>
<pre><code>&lt;div id="header"&gt;
&lt;h1&gt;Site title&lt;/h1&gt;
... &lt;div id="nav"&gt;
&lt;div id="content"&gt;
... &lt;div class="post"&gt;
... &lt;h2&gt;Document title&lt;/h2&gt;
&lt;div id="sidebar"&gt;
&lt;h3&gt;Sidebar section title&lt;/h3&gt;
&lt;div id="footer"&gt;</code></pre>
<p>Whereas our HTML5 page can be structured like this:</p>
<pre><code>&lt;header&gt;
... &lt;h1&gt;Site title&lt;/h1&gt;
... &lt;nav&gt;
&lt;article&gt;
... &lt;header&gt;
... &lt;h1&gt;Article title&lt;/h1&gt;
... &lt;section&gt;
... &lt;footer&gt;
&lt;aside&gt;
... &lt;h1&gt;Aside section title&lt;/h1&gt;
&lt;footer&gt;</code></pre>
<p>Which is logical, but means that screen readers (which use the traditional method) just see a bunch of first level headings, which corrupts the structure of the document.</p>
<p>It&#8217;s difficult to suggest a way round this. HTML5 is our flexible friend, so you can continue to use a strict <code>h1</code>-<code>h6</code> structure, but it strikes me as illogical, considering the new <abbr title="Document Object Model">DOM</abbr> structure which allows us to have document level footers <em>and</em> footers within articles.</p>
<h1>So are you using HTML5 on a day to day basis?</h1>
<p>Or is it still too experimental for real client work?</p>
]]></content:encoded>
			<wfw:commentRss>http://leonpaternoster.com/2010/01/adventures-in-html5-part-one-use-it-now/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Controlling excerpts and content length in WordPress</title>
		<link>http://leonpaternoster.com/2009/04/controlling-excerpts-and-content-length-in-wordpress/</link>
		<comments>http://leonpaternoster.com/2009/04/controlling-excerpts-and-content-length-in-wordpress/#comments</comments>
		<pubDate>Sun, 05 Apr 2009 07:14:50 +0000</pubDate>
		<dc:creator>Leon</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[excerpt]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://leonpaternoster.com/?p=510</guid>
		<description><![CDATA[If your post doesn't have an excerpt WordPress will display its first 55 words. Here's how you can control that limit.]]></description>
			<content:encoded><![CDATA[<p>Apologies for the less than pithy title…</p>
<p>WordPress is a little inflexible when it comes to displaying post excerpts. If you use <code><a href="http://codex.wordpress.org/Template_Tags/the_excerpt">the_excerpt</a></code>, WordPress will dutifully display your excerpt or, if there isn&#8217;t one, the first 55 words from your content.</p>
<p>It&#8217;d be good if this function included a parameter to limit content length by a specified number of words. Perhaps it will in future versions. In the meantime, here&#8217;s how I go about it:</p>
<p>First I determine whether a post has an excerpt or not by checking whether the excerpt field in the database is empty. If it&#8217;s not empty, WordPress will go ahead and display the excerpt. If the excerpt is empty, I tell WordPress to display a specified number of words (10 in this example) from the content by using the <code><a href="http://codex.wordpress.org/Template_Tags/the_content_rss">the_content_rss</a></code> function:</p>
<pre><code>&lt;?php if ($post-&gt;post_excerpt != "" ) {

the_excerpt();

}

else {

the_content_rss('', FALSE, '', 10);

}

?&gt;</code></pre>
<p>Although this may seem (and be) a rather esoteric technique, I&#8217;ve found two uses for it. The first was when I developed a theme for a client that generated a banner from the excerpt. The client had around 400 posts in his blog that didn&#8217;t have excerpts, so I needed to limit the banner size.</p>
<p>You can also modify the code to display all of a post&#8217;s content if there is no excerpt. This is useful if you&#8217;re using <a href="http://wordpress.org/extend/plugins/twitter-tools/">Twitter Tools</a> to pull tweets into your blog, but you want to display excerpts from your regular posts.</p>
<p>Well, I found it useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://leonpaternoster.com/2009/04/controlling-excerpts-and-content-length-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Styling WordPress posts according to their mood</title>
		<link>http://leonpaternoster.com/2009/04/styling-wordpress-pages-according-to-their-mood/</link>
		<comments>http://leonpaternoster.com/2009/04/styling-wordpress-pages-according-to-their-mood/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 21:14:05 +0000</pubDate>
		<dc:creator>Leon</dc:creator>
				<category><![CDATA[Favourites]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[mood]]></category>

		<guid isPermaLink="false">http://leonpaternoster.com/?p=498</guid>
		<description><![CDATA[You might want to style certain pages on your site individually, depending on the mood you're trying to convey. Here's how you can go about it in WordPress.]]></description>
			<content:encoded><![CDATA[<p>Well, it&#8217;s been a long time since the last post. Combination of reasons: busy at work work, some client work and the wife getting a promotion and more work work work. We&#8217;re <a href="http://en.wikipedia.org/wiki/Working_class">working class</a>, us.</p>
<p>There is, of course, <a href="http://twitter.com/leonpaternoster">the great God Twitter</a> devouring my creative juices, or rather diverting them into 140 character missives. I love Twitter for many reasons: it&#8217;s a sort of whispering underground, an ever–flowing communication stream (<a href="http://twitter.com/leonpaternoster/statuses/1341198632">of effluence</a>, sometimes, but still…)</p>
<p>There&#8217;s another Twitter–influenced post (and site overhaul) in the offing, but in the meantime, there have been two WordPress problems and solutions that I&#8217;ve been working on recently. I&#8217;ll share the first with you in this post, namely:</p>
<h3>Changing page styling by adding an ID to the <code>body</code> tag</h3>
<p>I&#8217;m in the process of overhauling my personal site and one thing I&#8217;m looking at is styling index and single pages according to the mood of the post that&#8217;s being displayed.</p>
<p>The easiest way to do this is to add an ID to the page&#8217;s <code>body</code> tag. As the <code>body</code> tag is the daddy of all other tags (<code>HTML</code> is grandpa, but we leave him well alone), prefixing CSS declarations with <code>body#id_name</code> will override any previous declarations.</p>
<p>Let&#8217;s say I fancy a gothic feel to my page and want to override my default <code>h2</code> setting. I&#8217;d add the following <strong>below </strong>my original <code>h2</code> declaration:</p>
<p><code>body#gothic h2 {color: red; font-size: 72px; font-family: garamond, baskerville, times, georgia, serif;} /* gothic styling! */<br />
</code></p>
<p>The problem is getting WordPress to spit out <code>&lt;body id="gothic"&gt;</code> in the HTML. <a href="http://codex.wordpress.org/Using_Custom_Fields">Custom fields</a> provide the answer:</p>
<div id="attachment_499" class="wp-caption aligncenter" style="width: 565px"><img class="size-full wp-image-499" title="Adding a custom mood field to WordPress" src="http://leonpaternoster.com/wp-content/uploads/2009/04/adding_a_custom_field.jpg" alt="Adding a custom mood field to WordPress - note: don't use spaces" width="555" height="269" /><p class="wp-caption-text">Adding a custom mood field to WordPress - note: don&#39;t use spaces</p></div>
<p>Now I have a bit of text I can use as an ID, I need to get wordpress to insert it into the relevant file (which can be any template file). First, I begin my loop and grab the text from the database:</p>
<pre><code>&lt;?php while (have_posts()) : the_post(); ?&gt;

&lt;?php $mood = get_post_meta($post-&gt;ID, 'mood', true); ?&gt;</code></pre>
<p>Then I add it to my body tag:</p>
<p><code>&lt;body id="&lt;?php echo $mood; ?&gt;"&gt;</code></p>
<p>When WordPress gets round to rendering the page, it&#8217;ll spit out:</p>
<p><code>&lt;body id="gothic"&gt;</code></p>
<p>A pretty simple process (and not limited to gothic styling, but I&#8217;m guessing you&#8217;d figured that out). The only odd thing is starting your loop before the <code>body</code> tag: but that has zero effect on anything really. I&#8217;ve created <a href="http://leonpaternoster.com/blogid/">a page that shows the technique in action</a> (view the CSS to see how the override works).</p>
<p><abbr title="Nota Bene">NB</abbr>: If you&#8217;re running a site with lots of traffic and bandwidth is an issue you need to beware of a proliferating stylesheet. You&#8217;ll have a default set of declarations (so you don&#8217;t have to style <em>every</em> post separately) and each &#8216;mood&#8217; will have its own set. On the other hand, if (like me) you&#8217;re low on fancy imagery, you&#8217;re operating efficiently anyway.</p>
]]></content:encoded>
			<wfw:commentRss>http://leonpaternoster.com/2009/04/styling-wordpress-pages-according-to-their-mood/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fancy transparencies with rgba</title>
		<link>http://leonpaternoster.com/2009/03/fancy-transparencies-with-rgba/</link>
		<comments>http://leonpaternoster.com/2009/03/fancy-transparencies-with-rgba/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 14:17:40 +0000</pubDate>
		<dc:creator>Leon</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[Miscellany]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[transparency]]></category>
		<category><![CDATA[visual effects]]></category>

		<guid isPermaLink="false">http://leonpaternoster.com/?p=490</guid>
		<description><![CDATA[The little used rgba value makes it easy to create some impressive CSS transparency effects. But only for modern browsers, of course.]]></description>
			<content:encoded><![CDATA[<p>Transparency is not something I&#8217;ve used much in the past, probably because it traditionally involves messing around with images (which is not really my thing: I&#8217;m a textual type).</p>
<p>But CSS does allow authors to apply transparency to textual components, and I&#8217;ve recently discovered the <code>rgba</code> value. I like <code>rgba</code> because it doesn&#8217;t use any browser specific syntax, and it&#8217;s very logical.</p>
<ul>
<li><a href="http://leonpaternoster.com/labs/transparent/">See an example of rgba in action</a></li>
<li>Download the <a href="leonpaternoster.com/downloads/transparent.zip">zipped HTML, CSS and image files</a></li>
</ul>
<h3>What&#8217;s rgba?</h3>
<p>Like the <code>rgb</code> value, three numbers are used to reference the red, green and blue elements of any given colour. <code>rgba</code> accepts an additonal value (the a, or <em>alpha</em> value) which determines how transparent the colour is on a scale of 0-1 (1 being opaque). So a black, half transparent colour would be set with <code>rgba(0,0,0,0.5)</code>.</p>
<div id="attachment_491" class="wp-caption aligncenter" style="width: 487px"><a href="http://leonpaternoster.com/labs/transparent/"><img class="size-full wp-image-491" title="Transparency and hover in action" src="http://leonpaternoster.com/wp-content/uploads/2009/03/transparency.jpg" alt="See what happens when the block is hovered over" width="477" height="126" /></a><p class="wp-caption-text">This is not a picture of me</p></div>
<p>This value can be applied to any selector. Combined with the <code>:hover</code> pseudo class, authors can create some pretty effects without messing around with actual images.</p>
<h3>How my example works</h3>
<p>It&#8217;s basically a huge link with a background image. The default background color is normal, opaque yellow (hex <code>FFD100</code>), but the <code>a:hover</code> background value has been set to <code>rgba(259,209,0,0.5)</code> (i.e. the same yellow with 50% transparency). The additional text only changes to black when it&#8217;s hovered over: the default state is yellow.</p>
<p>Unfortunately, only Firefox and Safari accept the <code>rgba</code> value. You can make other browsers degrade gracefully by setting a traditional background colour  value  above the <code>rgba</code> value. <del datetime="2009-03-06T16:00:54+00:00">Unsurprisingly, IE makes a pig&#8217;s ear of it by <em>trying</em> to do something, and failing. I therefore had to use a separate IE style sheet to get it working properly: overkill, perhaps, but it&#8217;s the only way I could get it to work.</del></p>
<h3>What could you use it for?</h3>
<p>Erm, I&#8217;m not sure. Surprise images aren&#8217;t great from a usability point of view, and it can be quite annoying accidentally making images appear as you mouse across the page. I quite like the idea of a blog front page where titles are displayed in this way. When the reader hovers over the title the image reveals itself, perhaps along with a summary of the post. I&#8217;d love to hear of any ideas you have, or any examples of it in the real world.</p>
]]></content:encoded>
			<wfw:commentRss>http://leonpaternoster.com/2009/03/fancy-transparencies-with-rgba/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Horizontal navbars: CSS/HTML how-to</title>
		<link>http://leonpaternoster.com/2008/12/horizontal-navbars-csshtml-how-to/</link>
		<comments>http://leonpaternoster.com/2008/12/horizontal-navbars-csshtml-how-to/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 09:23:38 +0000</pubDate>
		<dc:creator>Leon</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[navigation]]></category>

		<guid isPermaLink="false">http://leonpaternoster.com/?p=257</guid>
		<description><![CDATA[It's Christmas time, so what better time of year to offer loyal Leon Paternoster readers some elegant navbar CSS.]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s how I&#8217;ve been implementing horizontal navbars (note: only tested in FF3 and IE7 at this moment):</p>
<h3>The problem</h3>
<p>We want a navbar that:</p>
<ol>
<li>is horizontal</li>
<li>shows the reader where in the site they are</li>
<li>indicates where the reader is about to go by changing the style of a hovered–over link</li>
<li>doesn&#8217;t use any unnecessary divs</li>
</ol>
<p><a href="http://leonpaternoster.com/labs/navbar/">See a demo of my horizontal navbar</a>.</p>
<div id="attachment_261" class="wp-caption aligncenter" style="width: 570px"><img class="size-full wp-image-261" title="Navbar" src="http://leonpaternoster.com/wp-content/uploads/2008/12/navbar.png" alt="Horizontal navbar" width="560" height="30" /><p class="wp-caption-text">Horizontal navbar</p></div>
<h3>The code</h3>
<p>Our HTML couldn&#8217;t be cleaner and simpler—no meaningless divs, just semantic classes for the <code>ul</code> and the selected link:</p>
<pre><code>&lt;ul class="nav"&gt;

	&lt;li class="current"&gt;Home&lt;/li&gt;
	&lt;li&gt;&lt;a href="#"&gt;About&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href="#"&gt;Journal&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href="#"&gt;Portfolio&lt;/a&gt;&lt;/li&gt;

&lt;/ul&gt;</code></pre>
<p>And the CSS:</p>
<pre><code>ul.nav {
	height: 2em;
	text-transform: lowercase;
	font-variant: small-caps;
	letter-spacing: 0.1em;
	margin-bottom: 1.5em;
	font-family: lucida grande, liberation sans serif, sans-serif;
	background-color: #efefef;
	color: #333;
}

ul.nav li {
	list-style-type: none;
             float:left;</code><code>
}

ul.nav li a {
	float: left;
	width: 10em;
	text-align: center;
	line-height: 2em;
	background-color: #efefef;
	color: #333;
	text-decoration: none;
	border-right: 0.0625em solid #333;
}

ul.nav li a:hover, ul.nav li.current {
	float: left;
	width: 10em;
	text-align: center;
	line-height: 2em;
	background-color: #ffd100;
	color: #333;
	text-decoration: none;
	border-right: 0.0625em solid #333;
}</code></pre>
<p>You can, of course, play around with the colours and fonts.</p>
<h3>How it works</h3>
<p>The real magic is in the <code>height</code> and <code>line-height</code> properties: as long as the <code>ul</code> height is the same as the <code>li</code> line-height we can ensure that the borders that separate the nav links match the height of the background bar.</p>
<p>Have a very merry Christmas!</p>
]]></content:encoded>
			<wfw:commentRss>http://leonpaternoster.com/2008/12/horizontal-navbars-csshtml-how-to/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Paragraphs on the web: a typographical guide</title>
		<link>http://leonpaternoster.com/2008/10/paragraphs-on-the-web-a-typographical-guide/</link>
		<comments>http://leonpaternoster.com/2008/10/paragraphs-on-the-web-a-typographical-guide/#comments</comments>
		<pubDate>Sat, 11 Oct 2008 12:11:59 +0000</pubDate>
		<dc:creator>Leon</dc:creator>
				<category><![CDATA[Accessibility, usability and readability]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[essential]]></category>
		<category><![CDATA[front]]></category>
		<category><![CDATA[leading]]></category>
		<category><![CDATA[measure]]></category>
		<category><![CDATA[reading]]></category>
		<category><![CDATA[typography]]></category>

		<guid isPermaLink="false">http://leonpaternoster.com/2008/10/paragraphs-on-the-web-a-typographical-guide/</guid>
		<description><![CDATA[<p>The humble paragraph isn't normally given much typographical attention, but this fundamental element of our writing needs to be treated with respect.</p>]]></description>
			<content:encoded><![CDATA[<p>With thanks to <a href="http://www.divitodesign.com/2008/10/paragraph-typography-guide/">Stefan Vervoort and his article on paragraphs</a>, which gave me the idea for this article.</p>
<h3>What&#8217;s a paragraph?</h3>
<p>It <em>seems</em> a simple question, but as with so many fundamental questions giving a concise answer can be tricky.</p>
<p>Well, a paragraph isn&#8217;t a sign or a clue as to your content in the same way that headings are. Paragraphs <em>are</em> your content: the flow of <strong>ideas </strong>and the development of your <strong>argument</strong>.</p>
<p>Which means that you owe your readers respect when it comes to setting your paragraphs; <strong>readability </strong>is absolutely paramount, especially when you&#8217;re dealing in lots of text — when writing a blog, for example.</p>
<div class="wp-caption aligncenter" style="width: 458px"><img title="An old example of indented paragraphs" src="http://farm4.static.flickr.com/3154/2930698875_18919b18fe_o.jpg" alt="An old example of indented paragraphs" width="448" height="181" /><p class="wp-caption-text">An example of an indented paragraph from an old text</p></div>
<h3>Making paragraphs readable in 5 steps</h3>
<p>We need to think about 5 things when we set paragraphs on the web, all of which can be controlled using <abbr title="Cascading Style Sheets">CSS</abbr>:</p>
<ol>
<li>Font choice and size</li>
<li>Colour</li>
<li>White space: this includes line-height, line width, margins, letter-spacing and word-spacing</li>
<li>Alignment</li>
<li>Boundaries, indents, outdents and versals</li>
</ol>
<dl>
<dt>Font choice and size</dt>
<dd>I&#8217;ll talk about the effect different fonts create in a future article. What I&#8217;m interested in here is <em>legibility</em>. Of the web safe fonts, Times looks cramped at &#8216;normal&#8217; font sizes, and is only worth using in headings. Monospace fonts such as Courier and Lucida Console denote code and are therefore generally inappropriate for body copy (unless you&#8217;re <a href="http://www.aestheticallyloyal.com/">making a lo–contrast statement</a>).</dd>
<dd>Traditionally, serif fonts (such as Georgia and Times) were seen as conducive to print <strong>reading </strong>while sans serif fonts (such as Arial, Helvetica and Lucida) were seen as appropriate for the screen. Either is fine, but it is worth bearing in mind what fonts work at what size. <a href="http://www.will-harris.com/verdana-georgia.htm">Verdana was specifically designed to be used at small sizes</a>, so it is a sensible choice at, say, 10 pixels. Georgia looks pale and indistinct at 12 pixels and below, but up it to 16 pixels and it looks great.</dd>
<dd>Of course, we don&#8217;t want to inflict <strong>small </strong>fonts on our readers, <a href="http://www.useit.com/alertbox/teenagers.html">regardless of their age</a> (so just because your readers are all hawk–eyed young designers who prefer to look at neatly aligned <em>blocks</em> of text rather than messy, real text, it doesn&#8217;t mean you can get away with 8 pixel Helvetica).</dd>
<dd>I would suggest a <em>minimum</em> font size of 14 pixels for paragraphs. I <em>generally</em> use 16 pixels. Of course, we should be allowing readers to select their own size by using relative sizing units. This is what I use on this blog:</dd>
<dd>
<pre><code>body {
font-size: 100%;
}

p       {
font-size: 1em;
font-family: helvetica, arial, nimbus sans, sans serif;
}</code></pre>
</dd>
<dt>Colour</dt>
<dd>We need to consider <strong>contrast </strong>and glare when selecting colours for our paragraphs. Regardless of your reader&#8217;s eyesight, every reader will appreciate distinct text that doesn&#8217;t give them a migraine. <a href="http://www.aestheticallyloyal.com/">Some choices are obviously poor</a>, but you can be sure by running some objective checks. I use the <a href="http://juicystudio.com/article/colour-contrast-analyser-firefox-extension.php">Colour Contrast Analyser extension for Firefox</a>. Of course, some of this is just personal preference: white/near white on black will pass any contrast test, but it is not, in my opinion, conducive to <strong>reading </strong>long swathes of text.</dd>
<dd>Here&#8217;s the CSS I use:</dd>
<dd>
<pre><code>body {
color: #444;
background-color: #fff;
}</code></pre>
</dd>
<dt>White space</dt>
<dd>White (or negative) space need not, of course, be white. It is the space both around and within paragraphs, and can help your reader keep his or her place within the text, while not having to worry about accidentally straying into adjacent content.</dd>
<dd><a href="http://leonpaternoster.com/2008/05/getting-leading-right-part-2/">I&#8217;ve written pretty extensively on line height</a> before; suffice to say that it&#8217;s worth changing the browser <strong>default </strong>setting of 120% of the paragraph font size. Anything between 140% and 170% is good, although bigger font sizes don&#8217;t require as much line height as smaller.</dd>
<dd>CSS allows some fine tuning of the white space between letters and words. Applying letter spacing to headings can often provide some interesting effects, but it&#8217;s rare to see either property applied to paragraphs. These settings have become so <strong>conventional </strong>that any change has a marked effect upon a page, as you can see at the <a href="http://www.contrast.ie/blog/">Contrast.ie blog</a>. Interestingly, additional letter-spacing has been applied to the <code>body</code> selector: it creates a bold, confident effect, which perhaps links to the firm&#8217;s own image. It&#8217;s a very original approach that would require a <em>lot</em> of <strong>care </strong>to implement well.</dd>
<dd>CSS also allows us to control the space between and around paragraphs. In some <strong>print </strong>material, a new paragraph is marked by an indent, but on the screen the convention is to insert a space between paragraphs (although some sites attempt to introduce <a href="http://www.newyorker.com/online/blogs/festival/">a &#8216;bookish&#8217; variation</a>, which unfortunately makes reading from a screen difficult. It&#8217;s good to see that The New Yorker has taken <a href="http://userstyles.org/styles/6815">my advice</a> and inserted line breaks between paragraphs. If it ups the font size and changes the font to Georgia it&#8217;ll be there!) It is logical to make the space between paragraphs the equivalent of a <strong>single line</strong>, as this maintains the <a href="http://24ways.org/2006/compose-to-a-vertical-rhythm">vertical rhythm of the text</a> on the page.</dd>
<dd>Ensuring that there is space around a paragraph is a matter of overall page <strong>design </strong>and element placement. One good way to ensure that this happens is to keep sidebar lists to a reasonable length, while making the content part of your page the <strong>widest </strong>element on the screen. Of course, it is also necessary to ensure that the width of your paragraphs (also known as the <em>measure</em>) is neither too long (so the eye loses its place within a line of text) nor too short (so that the eye has to jump up and down the page too often). The <strong>optimum measure</strong> is <em>around</em> 10-15 words.</dd>
<dd>There&#8217;s quite a lot to bear in mind when setting paragraphs and white space. This is my typical CSS:</dd>
<dd>
<pre><code>body {
width: 57em; /* probably 912px */
font-size: 100%;
line-height: 1.5em; /* this ensures everything has the same line-height */
}

p {
width: 30em; /* measure therefore 10-15 words, width over half the body width */
font-size: 1em;
margin-bottom: 1.5em; /* same as document leading */
}</code></pre>
</dd>
<dd>If you are thinking of using a smaller font size for paragraphs (say <code>0.875em</code>) then you&#8217;ll need to <strong>resize</strong> the bottom margin, so as to maintain the vertical rhythm set in your body selector. It needs a calculator, but it&#8217;s quite simple: simply divide the line height by the element font size. So if we have a <code>body</code> line height of <code>1.5em</code> and a font size of <code>0.875em</code>, then the sum is <kbd>1.5/0.875</kbd>, or <code>p {margin-bottom: 1.714em;}</code></dd>
<dt>Alignment</dt>
<dd>This is easy. Browsers don&#8217;t justify text very well, so you&#8217;re best off using flush <strong>left</strong>, ragged right alignment. This is what browsers default to, so it doesn&#8217;t need to be set. If you <em>must</em> use justified paragraphs, the CSS is simple: <code>text-align: justify;</code>. In my experience, serifs justify better than sans serifs and the wider the measure the better.</dd>
<dt>Boundaries, indents, outdents and versals</dt>
<dd>Jon Tan has written <a href="http://jontangerine.com/log/2008/06/the-paragraph-in-web-typography-and-design">a wonderful article on achieving some fancy effects when setting paragraphs</a>. What I want to concentrate on here is <em>how</em> we can <strong>implement </strong>these largely unexplored areas.</dd>
<dd>CSS offers us a range of <em>pseudo–selectors</em> with which to alter the way in which the opening line or letter of a paragraph (or any element) is presented:</dd>
<dd><code>:first-letter</code> allows us to style the first letter of a paragraph, while <code>:first-line</code> allows us to target the (you&#8217;ve guessed it) first line. So, you could use something like:</dd>
<dd>
<pre><code>p:first-letter {
font-weight: bold;
font-size: 1.5em;
}
</code></pre>
<p>which would make the first letter of <em>every</em> paragraph bolder and bigger. We obviously need a way in which to <strong>target </strong>specific paragraphs. There are 2 possible approaches:</p>
<ul>
<li>Apply first letter or first line styling to paragraphs that have been given a particular class. We could target an <em>intro</em> paragraph class with <code>p.intro:first-letter {font-weight: bold; font-size: 1.5em;}</code>, and leave our other paragraphs alone.</li>
<li>Sometimes we can&#8217;t target paragraphs that have been assigned a class. For example, when we simply want to target the first line of a blog article. The way round this is to use <a href="http://splashofstyle.com/archives/2006/07/18/css-child-adjacent-sibling-selectors/">adjacent selectors</a>. So if we have wrapped our article in an id entitled <code>#article</code> and we knew that the first paragraph <em>always</em> followed an <code>h2</code> or an <code>img</code> preceded by an <code>h2</code>, then <code>#article h2 + p:first-line, #article h2 + img + p:first-line {font-variant: small-caps;}</code> will make sure that <em>only</em> the first paragraph is targetted.</li>
</ul>
</dd>
<dd>This is quite complicated CSS, so let&#8217;s give a complete <strong>example</strong>. Let&#8217;s say you want to make the first letter of every blog article <code>3em bold</code> and the first line <code>small-caps</code>. Here&#8217;s what you&#8217;d do:</dd>
<dd>
<pre><code><strong>HTML</strong>:
&lt;div id="article"&gt;
&lt;h2&gt;Artcile title&lt;/h2&gt;
&lt;p&gt;Paragraphs are lovely.  Beautiful.  And I want you to appreciate their beauty.&lt;/p&gt;
&lt;p&gt;The thing about them, though, is that they take a bit of thought.&lt;/p&gt;
&lt;/div&gt;

<strong>CSS</strong>:
#article h2 + p:first-letter {
font-size: 3em;
font-weight: bold;
line-height: 1em;
}

#article h2 + p:first-line {
font-variant: small-caps;
}
</code></pre>
</dd>
<dd>The use of these pseudo-selectors opens up a wide range of <strong>possibilities </strong>for styling paragraphs. Jon Tan&#8217;s article goes some way in exploring them: the rest will be down to some experimentation.</dd>
</dl>
<h3>Conclusions</h3>
<p>I&#8217;ve provided <a href="http://leonpaternoster.com/examples/paragraphs/je.html">an example of some reasonably fancy paragraphing</a>. Feel free to peruse the HTML and CSS.</p>
<p>As you can see, there&#8217;s quite a lot to think about when setting paragraphs on the web. As ever, CSS offers a concise, simple and easy–to–understand method for implementing our ideas. What do you think? How do you go about setting paragraphs?</p>
]]></content:encoded>
			<wfw:commentRss>http://leonpaternoster.com/2008/10/paragraphs-on-the-web-a-typographical-guide/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Image replacement: problems when words are pictures (part 1)</title>
		<link>http://leonpaternoster.com/2008/08/image-replacement-problems-when-words-are-pictures-part-1-2/</link>
		<comments>http://leonpaternoster.com/2008/08/image-replacement-problems-when-words-are-pictures-part-1-2/#comments</comments>
		<pubDate>Sun, 17 Aug 2008 11:47:30 +0000</pubDate>
		<dc:creator>Leon</dc:creator>
				<category><![CDATA[Accessibility, usability and readability]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[accessibility]]></category>
		<category><![CDATA[imagery]]></category>

		<guid isPermaLink="false">http://leonpaternoster.com/2008/08/image-replacement-problems-when-words-are-pictures-part-1-2/</guid>
		<description><![CDATA[<p>Image replacement is used when a designer wants to use non-web safe fonts. Part 1 of this article looks at the disadvantages of replacing marked-up text with images.</p>]]></description>
			<content:encoded><![CDATA[<p><strong>Image replacement is used when a designer wants to use non-web safe fonts. Part 1 of this article looks at the disadvantages of replacing marked-up text with images.</strong></p>
<p>When it comes to designing websites, designers can choose from the following fonts (and this ignores users with a Linux variant installed on their PC):</p>
<ul>
<li>Times</li>
<li>Helvetica/Arial</li>
<li>Verdana</li>
<li>Georgia</li>
<li>Trebuchet</li>
<li>Lucida</li>
</ul>
<p>Of course, this can prove <strong>limiting</strong>, especially when a designer comes from a print background, where font choice is limited only by the designer&#8217;s ability to purchase new fonts. Fonts can express the author&#8217;s personality, structure information and aid readabilty.</p>
<p>So designers have a choice:</p>
<ol>
<li>Accept the situation and carry on with the 6 fonts listed above, or;</li>
<li><strong>Replace</strong> text with images of text.</li>
</ol>
<h3>Problems with image replacement</h3>
<div class="wp-caption aligncenter" style="width: 522px"><img src="http://farm4.static.flickr.com/3061/2769749103_03d054b873_o.gif" alt="A picture of a sentence, italicised garamond on a pink background. It says these are not words" width="512" height="200" /><p class="wp-caption-text">The font&#39;s garamond italic - but an image of words is meaningless to screen readers</p></div>
<dl>
<dt>Workload</dt>
<dd>Instead of simply wrapping headings in <code>h1–h6</code> tags designers have to create them using imaging software. Even if this is automated, the process of entering the text into an application, copying the resultant markup tag and pasting it into an <abbr title="HyperText Markup Language">HTML</abbr> document is relatively <strong>laborious</strong>. Using the <a href="http://www.mikeindustries.com/blog/sifr/"><abbr title="Scalable Inman Flash Replacement">SIFR</abbr></a> method requires even more work.</dd>
<dt>The heading text can&#8217;t be copied</dt>
<dd>Let&#8217;s say I want to <strong>copy</strong> an article from a website, paste it into a word-processing document and format it for printing. This is simple when copying from an HTML document with plain textual headings. On the other hand, if images have replaced text, I couldn&#8217;t reformat the heading: in fact, if background images have been used I wouldn&#8217;t have any headings to edit at all.</dd>
<dt>Images cause accessibility issues</dt>
<dd>Without visual cues such as bolding and colour, screen readers rely on the <em>structure</em> of a document to derive meaning from it. As an image is not a heading it has an inappropriarte <strong>meaning</strong> to a screen reader. The Firefox <a href="http://en.wikipedia.org/wiki/Screen_reader">screen reader</a> emulator extension <a href="http://www.standards-schmandards.com/projects/fangs/">Fangs</a> demonstrates this quite clearly.</dd>
<dd>Let&#8217;s take this simple example of a heading marked up using a standard <code>h1</code> tag:</dd>
<dd>
<pre><code>&lt;h1&gt;Text should be text, not pictures&lt;/h1&gt;</code></pre>
</dd>
<dd>This is what Fangs outputs:</dd>
<dd>
<blockquote><p><samp>Page has one heading and no links An example of a heading dash Internet Explorer Heading level one Text should be text, not pictures</samp></p></blockquote>
</dd>
<dd>
<blockquote><p><samp>Heading list: Text should be text, not pictures: 1</samp></p></blockquote>
</dd>
<dd>Let&#8217;s replace the <code>h1</code> tag with an image:</dd>
<dd>
<pre><code>&lt;img src="#" height="200" width="500" alt="Text should be text, not pictures"&gt;</code></pre>
</dd>
<dd>This is what Fangs outputs (i.e. what a screen reader would say):</dd>
<dd>
<blockquote><p><samp>An example of an image used as a heading dash Internet Explorer Graphic This is the top level heading of this document</samp></p></blockquote>
</dd>
<dd>The headings list is empty</dd>
<dt>Google won&#8217;t like you</dt>
<dd><strong>Search</strong> engines approach HTML documents in the same way as screen readers; they use structure to derive meaning. In order to ascertain what a document is about (and its subsequent appearance in search query listings), Google will look at the page&#8217;s <code>title</code> and <code>h</code> tags and weight them accordingly. <code>Alt</code> tags are useful as they will tell Google what meaning an image is conveying, but a heading occupies a higher level within a document&#8217;s <strong>hierarchy</strong>.</dd>
</dl>
<p>Designers therefore use several methods to overcome these problems. I&#8217;ll discuss these in Part 2 of this article.</p>
<p>If you liked this article, you might also be interested in <a href="http://leonpaternoster.com/2008/06/5-web-design-sins-from-the-experts/">5 web design sins from the experts</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://leonpaternoster.com/2008/08/image-replacement-problems-when-words-are-pictures-part-1-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Writing great articles: anatomy of a BBC news story</title>
		<link>http://leonpaternoster.com/2008/08/writing-great-articles-anatomy-of-a-bbc-news-story/</link>
		<comments>http://leonpaternoster.com/2008/08/writing-great-articles-anatomy-of-a-bbc-news-story/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 11:04:41 +0000</pubDate>
		<dc:creator>Leon</dc:creator>
				<category><![CDATA[Exemplars]]></category>
		<category><![CDATA[Favourites]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Writing]]></category>
		<category><![CDATA[bbc]]></category>
		<category><![CDATA[essential]]></category>
		<category><![CDATA[lead]]></category>
		<category><![CDATA[readability]]></category>
		<category><![CDATA[structure]]></category>

		<guid isPermaLink="false">http://leonpaternoster.com/2008/08/writing-great-articles-anatomy-of-a-bbc-news-story/</guid>
		<description><![CDATA[<p>The BBC writes excellent web copy. This post looks at some of the techniques the BBC uses to make reading from the web a pleasure.</p>]]></description>
			<content:encoded><![CDATA[<p><em>I refer specifically to a news story about US swimmer Michael Phelps. Not all of the techniques apply to all forms of web writing, but many do, and most can be adapted in some way to make articles more readable.</em></p>
<div class="wp-caption aligncenter" style="width: 522px"><img src="http://farm4.static.flickr.com/3055/2764123353_258961373d_o.jpg" alt="Screenshot of the BBC's page" width="512" height="388" /><p class="wp-caption-text">BBC News story layout</p></div>
<h3>What the BBC does so well:</h3>
<h4>The article takes up most of the screen</h4>
<p>The BBC news website underwent a recent redesign. Unlike the BBC home page&#8217;s redesign, this was an unqualified success. The page uses a 6 column <strong>grid</strong>, 5 of which are dedicated to the article itself &#8211; which means the reader&#8217;s attention is fixed firmly on the story.</p>
<h4>Emphasis and colour aren&#8217;t overdone</h4>
<div class="wp-caption aligncenter" style="width: 522px"><img src="http://farm4.static.flickr.com/3266/2759699706_9215de3981_o.jpg" alt="The headline is simple: bigger, but with no unnecessary emphasis" width="512" height="54" /><p class="wp-caption-text">The headline is clearly indicated by a simple change in font and font size</p></div>
<p>Headings are indicated by a larger font size and a slightly different font face (24 pixel Arial as opposed to the 13 pixel Verdana used for body copy). These simple typographical alterations serve to indicate the <strong>purpose</strong> of the heading without distracting from a large quanitity of content: the designers chose not to use colour or bolding. Similarly, <strong>links</strong> are a conventional blue, making their purpose immeadiately clear. Using blue allows the BBC to avoid underlines: lots of underlined links can distract the reader from the content.</p>
<h4>Reading is comfortable</h4>
<p>The article&#8217;s copy occupies 3 of the page&#8217;s 6 columns, which results in a <dfn title="The width of a line of text">measure</dfn> of 10-15 words. The <dfn title="The space between lines of text">leading</dfn> is set to 140% of the paragraph font size, which is 14 pixels. These settings ensure the reader&#8217;s eye isn&#8217;t stretched across the page or up and down lines in order to locate their position within the text.</p>
<h4>The heading tells you what the story is about in 5 words</h4>
<p>No humour, punning or alliteration &#8211; just 5 words that tell you <em>who</em>, <em>where</em> and <em>what</em>.</p>
<h4>The article is interactive</h4>
<div class="wp-caption aligncenter" style="width: 522px"><img src="http://farm4.static.flickr.com/3018/2759663090_ac96fc3655_o.jpg" alt="The BBC places a video or other interactive element at the top of its stories" width="512" height="401" /><p class="wp-caption-text">The story includes video</p></div>
<p style="text-align: left;">The first element readers encounter after the headline isn&#8217;t a paragraph; it&#8217;s a video, with an enticing play button placed slap bang in the middle of it. This is not a passive text &#8211; readers are encouraged to <em>do</em> things rather than absorb large swathes of text. Similarly, readers are offered a wide range of links to click and <strong>explore</strong>, and another video further down the text.</p>
<h4>Links are contextual</h4>
<div class="wp-caption aligncenter" style="width: 522px"><img src="http://farm4.static.flickr.com/3031/2759662988_7261a32eff_o.jpg" alt="The story sidebar. Just 4 links closely related to the current story" width="512" height="120" /><p class="wp-caption-text">The links are relevant to the story content</p></div>
<div class="wp-caption aligncenter" style="width: 522px"><img src="http://farm4.static.flickr.com/3154/2759663018_7cf2a0c9ec_o.jpg" alt="A list of links related to the same story available from other sources" width="512" height="250" /><p class="wp-caption-text">More contextual links, this time to other news providers</p></div>
<p style="text-align: left;">A BBC logo placed top left provides the only universal link on the page &#8211; everything else is related to the current story, encouraging the reader to follow a <strong>narrative</strong> through the site. Even the left–hand sidebar alters according to the page&#8217;s content, acting as a sort of vertical breadcrumb. The right–hand sidebar offers a wide range of links <strong>related</strong> directly to the story; firstly, a list of BBC headlines (again, all informative and less than 5 words long), secondly a list of external sites and lastly links to related stories from other news providers.</p>
<p style="text-align: left;">The use of contextual links further aids the interactivity of the site by offering readers choices related to what they are <em>currently</em> reading, rather than a universal, unrelated links list. This makes perfect sense; for example, readers are unlikely to follow a link to the BBC Proms season from this page.</p>
<h4>The article uses a standfirst</h4>
<p>A standfirst is the first, summative sentence of a story. Convention dictates that it is bolded, which attracts the reader&#8217;s eye. It serves as a polite <strong>summary</strong> of the story, which allows him or her to decide whether to continue reading the text. It is usually found in tabloid newspapers, and the BBC story follows several other conventions of <strong>tabloid</strong> writing.</p>
<h4>Short paragraphs, complex sentences</h4>
<p>Most of the paragraphs in the story consist of just <strong>1 sentence</strong>, never more than 2. Again, this serves to break the text up and thereby make reading easier. More discursive articles will require more than 1 sentence per paragraph, but keeping paragraphs short is an excellent convention, even if it means using some <dfn title="A sentence consisting of at least one clause that makes sense on its own and one subordinate clause that doesn't">complex sentence</dfn> structures.</p>
<h4>Pull quotes</h4>
<div class="wp-caption aligncenter" style="width: 522px"><img src="http://farm4.static.flickr.com/3102/2758822341_baa77665d8_o.jpg" alt="BBC pullquote: note the light blue background colour, reversed out heading and link" width="512" height="129" /><p class="wp-caption-text">An example of a pull quote</p></div>
<p style="text-align: left;">A pull quote is a quote that is literally pulled from the main body of the text. It is often, but doesn&#8217;t have to be, from a person involved in the story. Its purpose is manifold: it provides both &#8216;human interest&#8217; and typographical <strong>variation</strong> — in the BBC story it has a different background colour from the main body copy and employs a simple graphic. The BBC enhances the pull quote in this article by making it a link to a message board, once again making the story as interactive as possible, and adding a feeling of inclusion.</p>
<h3>Critcism</h3>
<p>Criticisms are minor, but I would perhaps use a conventional, horizontal <strong>breadcrumb</strong> to help users locate themselves within the BBC&#8217;s website as a whole. I&#8217;d also emphasise <strong>keywords</strong> in order to further aid readers through large blocks of text. Finally, I&#8217;d up the <strong>font size</strong> to 16 pixels in order to make the type even more readable.</p>
<h3>Summary</h3>
<p>The BBC doesn&#8217;t use ornamentation to display its content; instead, a thougtful layout, <strong>logical</strong> typography and attention to sensible writing conventions allow the excellent content to entertain and inform.</p>
<p>If you liked this post, you might want to read about <a href="http://leonpaternoster.com/2008/07/6-newspaper-writing-techniques-for-the-web/">6 newspaper writing techniques for the web</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://leonpaternoster.com/2008/08/writing-great-articles-anatomy-of-a-bbc-news-story/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>When CSS works beautifully</title>
		<link>http://leonpaternoster.com/2008/08/when-css-works-beautifully/</link>
		<comments>http://leonpaternoster.com/2008/08/when-css-works-beautifully/#comments</comments>
		<pubDate>Mon, 04 Aug 2008 23:57:31 +0000</pubDate>
		<dc:creator>Leon</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://leonpaternoster.com/2008/08/when-css-works-beautifully/</guid>
		<description><![CDATA[There are times when CSS is so elegant and logical that you smile. Take this example: .Pingback .commentmetadata li a:before { content: '(This is a pingback or a trackback) 2014 '; font-weight: bold; color: #444; } And it works — it prepends styled content to links that reside in lists that are descended from two [...]]]></description>
			<content:encoded><![CDATA[<p>There are times when <abbr title="Cascading Style Sheets">CSS</abbr> is so elegant and logical that you smile. Take this example:</p>
<pre>
<code>.Pingback .commentmetadata li a:before {
        content: '(This is a pingback or a trackback) 2014 ';
        font-weight: bold;
        color: #444;
}</code>
</pre>
<p>And it works — it prepends styled content to links that reside in lists that are descended from two parents (the content has grandparents, in effect).</p>
<p>Not in IE, of course.</p>
<p>Sidenote: HTML entities can be added to CSS–generated content, but only using hexadecimal values.</p>
]]></content:encoded>
			<wfw:commentRss>http://leonpaternoster.com/2008/08/when-css-works-beautifully/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
