<?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>Big Red Tin &#187; reset</title>
	<atom:link href="http://bigredtin.com/tag/reset/feed/" rel="self" type="application/rss+xml" />
	<link>http://bigredtin.com</link>
	<description>Thoughts about the web and business from the large pantry</description>
	<lastBuildDate>Tue, 15 Nov 2011 23:15:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Maintaining Link Focus</title>
		<link>http://bigredtin.com/2011/maintaining-link-focus/</link>
		<comments>http://bigredtin.com/2011/maintaining-link-focus/#comments</comments>
		<pubDate>Tue, 23 Aug 2011 03:39:20 +0000</pubDate>
		<dc:creator>Peter Wilson</dc:creator>
				<category><![CDATA[Behind the Websites]]></category>
		<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Eric Meyer]]></category>
		<category><![CDATA[reset]]></category>
		<category><![CDATA[usability]]></category>

		<guid isPermaLink="false">http://bigredtin.com/?p=1236</guid>
		<description><![CDATA[Anyone who has attempted to navigate a web page using the keyboard will have experienced sites that remove the default a:focus style without adding in a replacement.]]></description>
			<content:encoded><![CDATA[<p>Anyone who has attempted to navigate a web page using the keyboard, will have experienced sites that remove the default <code>a:focus</code> style without adding in a replacement.</p>
<p>The cause – but not the fault – lays with Eric Meyer&#8217;s original <a href="http://meyerweb.com/eric/tools/css/reset/"><abbr>CSS</abbr> reset</a>, subsequently included in the <abbr>YUI</abbr> <abbr>CSS</abbr> framework, among others.</p>
<p><span id="more-1236"></span>
<p>Eric warned that he didn&#8217;t &#8220;recommend that you just use this in its unaltered state&#8221; but people did so anyway. Including the code:</p>
<pre><code>:focus {
  outline: 0;
}</code></pre>
<p>The problem became so widespread that Eric has <a href="https://twitter.com/meyerweb/status/60685012059688960">apologised for it</a>, even though <strong>it wasn&#8217;t his fault people ignored his advice!</strong> In the second version of his reset, he removed the code above.</p>
<p> </p>
<p>At <a href="http://soupgiant.com/">Soupgiant</a>, we take a two-fold approach to link focus styles. We leave the outline in place because users have come to expect it. To increase the contrast of focused links further, we reverse the foreground and background colours too.</p>
<pre><code>a:link, a:visited {
  color: #00f;
  background: transparent;
  text-decoration: underline;
}
a:focus {
  color: #fff;
  background: #00f;
  text-decoration: none;
}
a:hover, a:active {
  color: #00f;
  background: transparent;
  text-decoration: none;
}</code></pre>
<p>While it seems we are doubling up on some code, it&#8217;s a necessary evil as multiple pseudo-classes can be applied to single a link at once (for example: <code>:hover</code> and <code>:focus</code>).</p>
<p> </p>
<p>For the cost of a few extra bytes, we believe it adds significantly to the usability of our sites. For that reason, we&#8217;ve included it in <a href="http://www.minimumpage.com/">Minimum Page</a>: our reset-free, <abbr>CSS</abbr> starting point.</p>
]]></content:encoded>
			<wfw:commentRss>http://bigredtin.com/2011/maintaining-link-focus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Don&#8217;t start with a reset.css</title>
		<link>http://bigredtin.com/2008/dont-start-with-a-resetcss/</link>
		<comments>http://bigredtin.com/2008/dont-start-with-a-resetcss/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 02:28:34 +0000</pubDate>
		<dc:creator>Peter Wilson</dc:creator>
				<category><![CDATA[Behind the Websites]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[reset]]></category>

		<guid isPermaLink="false">http://peterwilson.cc/?p=51</guid>
		<description><![CDATA[Earlier this year, Jonathan Snook wrote an article on why he doesn't use a reset.css in which he referred to Eric Meyer's reset, a short time later, Eric Meyer responded with an article of his own. Unlike many discussions on the web, it wasn't a mudslinging match, but a sincere discussion of the tools available to web developers.]]></description>
			<content:encoded><![CDATA[<p>Earlier this year, Jonathan Snook wrote an article on <a title="No CSS Reset" href="http://snook.ca/archives/html_and_css/no_css_reset/">why he doesn&#8217;t use a reset.css</a> in which he referred to Eric Meyer&#8217;s reset, a short time later, <a title="Crafting Ourselves" href="http://meyerweb.com/eric/thoughts/2008/04/17/crafting-ourselves/">Eric Meyer responded</a> with an article of his own. Unlike many discussions on the web, it wasn&#8217;t a mudslinging match, but a sincere discussion of the tools available to web developers.</p>
<p>My initial thoughts were that a reset style sheet, combined with a base style sheet, was a <em>helpful</em> place to start any web project as it reduces the incidence of unexpected results. I thought it was important for the developer to have her own reset and base styles; blindly adopting someone else&#8217;s reset and base style sheets will just lead to a different set of surprises.</p>
<p><span id="more-53"></span>While these discussions were going on, I was in the process of developing my own base style sheets, running them against <a title="YUI XHTML Test" href="http://developer.yahoo.com/yui/examples/base/base-simple_source.html">YUI&#8217;s XHTML test suite</a>; shortly afterwards I began to regret the decisions I&#8217;d made.</p>
<p>I concluded that the best place to start was with my own <a title="Peter Wilson Base XHTML document" href="http://code.peterwilson.cc/dont-start-with-a-reset-css/">base XHTML document</a>, something I can start a project with and remove anything that&#8217;s not needed for the particular project.</p>
<p>Viewing the source of my base XHTML you&#8217;ll see an overly complicated document that will never be used in its entirety on a single project.</p>
<pre><code>&lt;div id="content-body"&gt;
  &lt;div id="content-a"&gt;
  &lt;/div&gt;
  &lt;!-- //#content-a --&gt;

  &lt;div id="content-b"&gt;
  &lt;/div&gt;
  &lt;!-- //#content-b --&gt;
&lt;/div&gt;
&lt;!-- //#content-body --&gt;</code></pre>
<p>In a project with a single column of content, there is no point in dividing the content into content-a and content-b; that&#8217;s a deliberate redundancy, I&#8217;d much rather highlight a block of code and hit delete than re-write type the code every time I need it. The same process applies for sidebar-a and -b.</p>
<p>None of this is to say that base style sheets are bad, they&#8217;re still very useful tools, just that it is important to begin with something to run your styles against.</p>
]]></content:encoded>
			<wfw:commentRss>http://bigredtin.com/2008/dont-start-with-a-resetcss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

