<?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>Jim Neath &#187; CSS</title>
	<atom:link href="http://jimneath.org/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://jimneath.org</link>
	<description>Ruby on Rails, Javascript, CSS and Standards</description>
	<lastBuildDate>Thu, 17 Jun 2010 12:37:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Self Clearing Floats in CSS</title>
		<link>http://jimneath.org/2008/11/15/self-clearing-floats-in-css/</link>
		<comments>http://jimneath.org/2008/11/15/self-clearing-floats-in-css/#comments</comments>
		<pubDate>Sat, 15 Nov 2008 11:02:17 +0000</pubDate>
		<dc:creator>Jim Neath</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Clear]]></category>

		<guid isPermaLink="false">http://jimneath.org/?p=118</guid>
		<description><![CDATA[This is a quickie mainly to remind myself. My friend and fellow Fudge developer, Mike &#8220;1312&#8221; Byrne showed me a CSS trick to have divs clear themselves.
div#container
{
  height: 1%;
}

div#container:after
{
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
Brilliant. This works in Safari, Firefox and IE6+ as far as I know.
]]></description>
			<content:encoded><![CDATA[<p>This is a quickie mainly to remind myself. My friend and fellow Fudge developer, Mike &#8220;<a href="http://www.thirteentwelve.com/">1312</a>&#8221; Byrne showed me a CSS trick to have divs clear themselves.</p>
<pre><code class="css">div#container
{
  height: 1%;
}

div#container:after
{
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}</code></pre>
<p>Brilliant. This works in Safari, Firefox and IE6+ as far as I know.</p>
]]></content:encoded>
			<wfw:commentRss>http://jimneath.org/2008/11/15/self-clearing-floats-in-css/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>More Usable Forms</title>
		<link>http://jimneath.org/2008/05/12/more-usable-forms/</link>
		<comments>http://jimneath.org/2008/05/12/more-usable-forms/#comments</comments>
		<pubDate>Mon, 12 May 2008 15:50:36 +0000</pubDate>
		<dc:creator>Jim Neath</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Forms]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://jimneath.org/?p=24</guid>
		<description><![CDATA[I just thought I&#8217;d post about a few things that you should be doing with your forms and also a few things I just like to do.
Use Labels
I still don&#8217;t understand why there are a load of people who don&#8217;t use labels within their forms. They&#8217;re more semantic that using strong tags like alot of [...]]]></description>
			<content:encoded><![CDATA[<p>I just thought I&#8217;d post about a few things that you should be doing with your forms and also a few things I just like to do.</p>
<h4>Use Labels</h4>
<p>I still don&#8217;t understand why there are a load of people who don&#8217;t use labels within their forms. They&#8217;re more semantic that using <code>strong</code> tags like alot of people seem to do. They&#8217;re also more user friendly. Also they&#8217;re useful for styling your forms.</p>
<blockquote><p>The LABEL element may be used to attach information to controls. Each LABEL element is associated with exactly one form control.</p></blockquote>
<p>And here&#8217;s how you&#8217;d use it in your code:</p>
<pre><code class="html">&lt;label for="username"&gt;Username&lt;/label&gt;
&lt;input type="text" name="username" id="username" /&gt;</code></pre>
<p>Which gives you:</p>
<p><a href='http://jimneath.org/wp-content/uploads/2008/05/basic-label.png'><img src="http://jimneath.org/wp-content/uploads/2008/05/basic-label.png" alt="" title="basic-label" width="226" height="32" class="aligncenter size-full wp-image-27" /></a></p>
<p>Now, when a user clicks on the label it will focus on the form item specified by the <code>for</code> attribute. Hooray.</p>
<h4>User the Pointer Cursor</h4>
<p>Here&#8217;s the CSS:</p>
<pre><code class="css">label, button, input.button
{
    cursor: pointer;
}</code></pre>
<p>Easy. It does require you to add a class to submit and reset buttons, but hey it&#8217;s a small sacrifice.</p>
<h4>Focus on the First Field</h4>
<p>Having to click on the first form field I want to fill in is a pain in the ass. Don&#8217;t make me do it. Here&#8217;s a quick jQuery function to do it for you:</p>
<pre><code class="javascript">$(document).ready(function() {
    $('input[type=text]:first').focus();
});</code></pre>
<h4>No Confusing Buttons</h4>
<p>If you have a submit button and a reset button, or anything similiar, make sure people can tell the difference. I don&#8217;t want to fill in your huge form and then find I&#8217;ve accidentally clicked the reset button instead of the submit button.</p>
<p>An example is shown below:</p>
<p><a href='http://jimneath.org/wp-content/uploads/2008/05/buttons.png'><img src="http://jimneath.org/wp-content/uploads/2008/05/buttons.png" alt="" title="buttons" class="alignnone size-fullwp-image-29" /></a></p>
<p>Submit buttons on the left and sub actions on the right, see:</p>
<blockquote><p>Always put the Submit Form button on the left and on the Clear Form button on the right. Never, ever put the Submit Form button on the right and the Clear form button on the left.</p></blockquote>
<p>See?</p>
<p>I&#8217;ll post more when as they come to me, in my bizarre usability dreams. Feel free to post your own tips. Or to tell me that I know nothing at all about anything.</p>
<h4>More Reading</h4>
<ul>
<li><a href="http://www.keyrelevance.com/articles/usability-tips.htm">HighRankings Forum: Collected Web Site Usability Tips</a></li>
<li><a href="http://www.seoconsultants.com/html/forms/labels/">Usability Features &#8211; The Label Element</a></li>
<li><a href="http://webdesign.about.com/od/forms/a/aa050707.htm">What Makes a Web Form Usable or Unusable</a></li>
<li><a href="http://www.sitepoint.com/article/steps-useable-forms">7 Steps to Useable Forms</a></li>
<li><a href="http://www.alistapart.com/articles/sensibleforms">Sensible Forms: A Form Usability Checklist</a></li>
<li><a href="http://mattobee.com/blog/article/qa-checklist-online-forms/">QA Checklist: Form Usability</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://jimneath.org/2008/05/12/more-usable-forms/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
