<?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>CSS Wizardry &#187; Usability</title>
	<atom:link href="http://csswizardry.com/category/usability/feed/" rel="self" type="application/rss+xml" />
	<link>http://csswizardry.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 02 Feb 2012 13:25:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Maximising hit-area for usability</title>
		<link>http://csswizardry.com/2011/01/maximising-hit-area-for-usability/</link>
		<comments>http://csswizardry.com/2011/01/maximising-hit-area-for-usability/#comments</comments>
		<pubDate>Wed, 12 Jan 2011 19:42:14 +0000</pubDate>
		<dc:creator>Harry Roberts</dc:creator>
				<category><![CDATA[Usability]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Usabiliy]]></category>

		<guid isPermaLink="false">http://csswizardry.com/?p=2126</guid>
		<description><![CDATA[This post is brought to you by Captain Obvious of The Society of Explaining the Self-Explanatory: increasing the hit area of an object makes it easier to click&#8230; Please, don&#8217;t let that put you off, there&#8217;s more to this article than that; I promise.
So yeah, this is old news. People have, for years, been making [...]]]></description>
			<content:encoded><![CDATA[<p>This post is brought to you by Captain Obvious of <i>The Society of Explaining the Self-Explanatory</i>: increasing the hit area of an object makes it easier to click&#8230; Please, don&#8217;t let that put you off, there&#8217;s more to this article than that; I <em>promise</em>.</p>
<p>So yeah, this is old news. People have, for years, been making the target area for links as big as possible to make them easier for users to click. Hell there&#8217;s even <a href="http://particletree.com/features/visualizing-fittss-law/">a law based on this knowledge</a>, but today I&#8217;m only going to share a nifty little trick whereby you don&#8217;t just make the hit area bigger, but make it <em>bigger than it appears</em>.</p>
<p>First off, head over to <a href="http://suzannahaworth.com/2010/12/crosby-beach/">http://suzannahaworth.com/</a>.</p>
<p>I use this technique on the &#8216;Tweet this&#8217; link at the end of each article. Now <strong>before</strong> you scroll down and hover that link, notice that we have something that is probably built like this:</p>
<pre><code>&lt;element&gt;
  If you liked this article, &lt;link&gt;please Tweet it&lt;/link&gt;.
&lt;/element&gt;</code></pre>
<p>Or so you&#8217;d think&#8230; What we actually have is this:</p>
<pre><code>&lt;link&gt;
  If you liked this article, &lt;element&gt;please Tweet it&lt;/element&gt;.
&lt;/link&gt;</code></pre>
<p>Can you see where this is heading? Good!</p>
<p>The actual code is this:</p>
<pre><code>&lt;p id=&quot;tweet-this&quot;&gt;
  &lt;a href=&quot;http://twitter.com/share?text=I&amp;amp;rsquo;m+reading+&amp;amp;lsquo;Crosby Beach&amp;amp;rsquo;&amp;amp;via=suzehaworth&amp;amp;url=http://suzannahaworth.com/2010/12/crosby-beach/&quot;&gt;
    If you liked this article, &lt;strong&gt;please Tweet it&lt;/strong&gt;.
  &lt;/a&gt;
&lt;/p&gt;</code></pre>
<p>So what we do here is have the whole content of that paragraph as a link&mdash;everything is clickable. Then we remove all the styles from that link so that it looks like it&#8217;s <em>not</em> a link at all. Anything we set to appear at <code>a{ ... }</code> we effectively remove so that it simply looks like ordinary text. The <strong>(abridged)</strong> CSS for <code>a{ ... }</code> and the undoing of this is:</p>
<pre><code><span class="code-comment">/* Define generic link styles here */</span>
a{
  font-family:Calibri, Arial, Verdana, sans-serif;
  font-weight:bold;
  color:#347832;
  text-decoration:none;
}
a:hover,a:active,a:focus{
  text-decoration:underline;
}
a:active,a:focus{
  position:relative;
  top:1px;
}

#tweet-this a{
  display:block;
  padding:20px;
  <span class="code-comment">/* Here we undo certain styles applied above */</span>
  font-family:Cambria, Georgia, "Times New Roman", Times, serif;
  font-weight:normal;
  color:#555;
}
#tweet-this a:hover{
  <span class="code-comment">/* Undo the hover state of the link */</span>
  text-decoration:none;
}
#tweet-this strong{
  <span class="code-comment">/* Make this strong look just like the a */</span>
  font-family:Calibri, Arial, Verdana, sans-serif;
  font-weight:bold;
  color:#347832;
}
#tweet-this a:hover strong{
  <span class="code-comment">/* Make this strong look just like the a on hover */</span>
  text-decoration:underline;
}</code></pre>
<p>So here we&#8217;re maintaining our specific call to action of <q>&#8216;please Tweet it&#8217;</q> by styling that as though it&#8217;s a link, but in actual fact our link is far bigger. The user sees the specific call-to-action, goes to click it, only to find that it is in fact far larger than it appears, thus easier to click.</p>
<p>Now in this example it would do no harm to just have the whole lot look like a link. We don&#8217;t really <em>need</em> to spoof calls-to-actions and hit-areas here but it&#8217;s quite a nice feature.</p>
<hr />
<h2>A better example</h2>
<p>A better example I unfortunately can&#8217;t share just yet as it appears on a site I built that hasn&#8217;t gone live. What I can do however is replicate it for you&#8230;</p>
<p>The PSD I was handed contained a section where the text was <q>For a detailed quote for your project, please contact us &raquo;</q> and its obvious choice of markup was:</p>
<pre><code>&lt;p&gt;For a detailed quote for your project, please &lt;a&gt;contact us&lt;/a&gt;&lt;/p&gt;</code></pre>
<p>That was until I remembered the technique I&#8217;d used on Suze&#8217;s site. I could keep the &#8216;contact us&#8217; call-to-action, but also make it a lot easier for the user to click by using a full-size hit-area.</p>
<h3><a href="/demos/maximising-hit-area/">Demo</a></h3>
<p>I&#8217;ve made <a href="/demos/maximising-hit-area/">a (very crude) replica</a> of that for you which you can pick through the source a little more freely.</p>
<p>So there it is, creating larger hit-areas on very specific calls to action.</p>
]]></content:encoded>
			<wfw:commentRss>http://csswizardry.com/2011/01/maximising-hit-area-for-usability/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Usability in everyday items</title>
		<link>http://csswizardry.com/2010/02/usability-in-everyday-items/</link>
		<comments>http://csswizardry.com/2010/02/usability-in-everyday-items/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 17:04:19 +0000</pubDate>
		<dc:creator>Harry Roberts</dc:creator>
				<category><![CDATA[Usability]]></category>

		<guid isPermaLink="false">http://csswizardry.com/?p=815</guid>
		<description><![CDATA[Yesterday when being dragged around shops by out shopping with my girlfriend Suzanna, we were walking down a shampoo/haircare isle when I asked &#8216;Is it shampoo or conditioner where the lid is on the bottom of the bottle, as opposed to the top?&#8217; Suze answered my question with &#8216;Conditioner has the lid on the bottom, [...]]]></description>
			<content:encoded><![CDATA[<p><span class="opener"><span>Y</span>esterday</span> when <del datetime="2010-02-28T16:39:25+00:00">being dragged around shops by</del> <ins datetime="2010-02-28T16:39:25+00:00">out shopping with</ins> my girlfriend <a href="http://suzannahaworth.com/">Suzanna</a>, we were walking down a shampoo/haircare isle when I asked <q>&#8216;Is it shampoo or conditioner where the lid is on the bottom of the bottle, as opposed to the top?&#8217;</q> Suze answered my question with <q>&#8216;Conditioner has the lid on the bottom, shampoo on the top, but I don&#8217;t know why&#8217;.</q> I knew why&#8230;</p>
<h2>The shampoo lid</h2>
<p><img src="http://csswizardry.com/wp-content/uploads/2010/02/shampoo.jpg" alt="A photograph of matching bottles of shampoo and conditioner, illustrating lid differences" width="220" height="256" class="left" /></p>
<p>Imagine the scenario, you&#8217;re a girl with long hair and you&#8217;re washing it in the shower. Your hair is in your eyes, and covered in shampoo. Opening your eyes would lead to some serious stinging! You reach down and below you, by your feet, you have two identical bottles&mdash;except they&#8217;re not identical&#8230; One has its lid on the top and the the other has its lid on the bottom. As long as you&#8217;ve learnt which one&#8217;s which, as my girlfriend clearly has, you know without having to open your eyes which bottle you have hold of. This is a really ingenious piece of usability, yet so so simple.</p>
<p><span id="more-815"></span></p>
<h2>The vacuum cleaner</h2>
<p>Another great bit of usability I saw was in Suzanna&#8217;s vacuum cleaner. It has a retractable cable which rests inside the body of the cleaner when it&#8217;s being stored. When pulling the cable out to plug it in, when you are roughly a metre away from reaching its furthest limit of extension, you see a yellow marker on it. This indicates that something must be about to happen, and then when you pull that extra metre out, there is a red marker to signify that this is a far as the cable will extend. This means that there&#8217;s no chance of accidentally pulling the cable out too far and damaging it if under the impression that there&#8217;s more wire in there. Simple, but <em>so</em> helpful.</p>
<h3>The lesson?</h3>
<p>A lot of the time, the best way to make something usable is to imagine yourself using it&mdash;what would <em>you</em> want out of it? Because nine times out-of ten someone else would appreciate that feature too.</p>
]]></content:encoded>
			<wfw:commentRss>http://csswizardry.com/2010/02/usability-in-everyday-items/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

