<?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>Harnessing the Potential of the Web</title>
	<atom:link href="http://stylishrails.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://stylishrails.wordpress.com</link>
	<description>Tutorials and commentary on web development and applications</description>
	<lastBuildDate>Tue, 05 Aug 2008 21:53:19 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='stylishrails.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/d6e9f5c6275a2e2217813d4872445ab2?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Harnessing the Potential of the Web</title>
		<link>http://stylishrails.wordpress.com</link>
	</image>
			<item>
		<title>The challenges of implementing collaboration tools</title>
		<link>http://stylishrails.wordpress.com/2008/08/05/the-challenges-of-implementing-collaboration-tools/</link>
		<comments>http://stylishrails.wordpress.com/2008/08/05/the-challenges-of-implementing-collaboration-tools/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 21:49:46 +0000</pubDate>
		<dc:creator>Chris Schmitt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Web 2.0]]></category>

		<guid isPermaLink="false">http://stylishrails.wordpress.com/?p=34</guid>
		<description><![CDATA[Much has been said for using the Web for team collaboration.   But actually putting this technology into practice is a lot harder than it sounds.   For example, I&#8217;ve had a lot of trouble convincing my staff to use Basecamp.   I manage a geographically dispersed department within a large corporation [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stylishrails.wordpress.com&blog=4165759&post=34&subd=stylishrails&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Much has been said for using the Web for team collaboration.   But actually putting this technology into practice is a lot harder than it sounds.   For example, I&#8217;ve had a lot of trouble convincing my staff to use <a title="Basecamp" href="http://basecamphq.com/">Basecamp</a>.   I manage a geographically dispersed department within a large corporation that has number of cost reduction projects underway.   Basecamp seemed like the perfect fit.</p>
<p>My motivation behind using Basecamp (which by-the-way is an amazing product) was to use the Messages forum to reduce the amount of email and provide a record of discussions, to introduce some simple project management, to provide a central place to store our files and to use the Writeboard to collaborate on important documents.</p>
<p>After having implemented Basecamp for a month I found that most of the staff were not logging in or participating in the discussions.   While some of my team saw the potential for the application others complained that Basecamp added to their workload and that its easier to collaborate using email.</p>
<p>I used the <a title="Basecamp forums" href="http://forum.37signals.com/basecamp/forums/2/topics/3952">Basecamp forums</a> to find out if others had experienced the adoption challenge and if they had any advice on how to overcome it.  I received a lot of advice.    Later, I held an evaluation session with my staff and the outcome led me to a few conclusions:</p>
<ol>
<li>Basecamp (and other collaboration tools) work better on projects rather than daily activities.</li>
<li>The sooner you get <em>all</em> of your projects into the collaboration tool the better.</li>
<li>Everyone with a significant role on a project needs to use the tool (this was a bit of a challenge in my organization since not everyone wants to use the application and they don’t all report to me)</li>
<li>Management derives the most immediate benefit from the collaboration tool because all the projects are nicely tracked in one place.</li>
<li>Staff with minimal project activity view collaboration software as ‘just another tool they have to use’.</li>
<li>Many staff are worried about the security.</li>
</ol>
<p>To address some of these challenges I&#8217;m now switching to our corporate SharePoint (WSS) site.  WSS solves a few of the above mentioned challenges:</p>
<ul>
<li>WSS is obviously secure because the server resides within the intranet;</li>
<li>WSS is linked to the company directory (plus WSS <em>is</em> the company standard) makes it easier to include anyone on a project, regardless of whether they report to me;</li>
<li>Document storing, sharing and workflow work quite well.</li>
</ul>
<p>That being said, it&#8217;s still hard as heck to try to get others on board for any WSS capability other than shared documents.   Employees are hooked on email, and that&#8217;s that.  And while SharePoint is highly configurable, it&#8217;s not as easy to use as Basecamp.   Add to these challenges that the majority of the employees within an tradition corporation are not typically &#8220;web savvy&#8221;.</p>
<p>I believe the key is to integrate the use of collaboration tools into your processes, provide the prerequisite training and then enforce the use of the application.  Once that&#8217;s done then I&#8217;ll circle back, find out who&#8217;s using it (and why), who&#8217;s not (and why), and just keep at it.</p>
<p>If you think deploying a collaboration application in the Enterprise is simple &#8211; think again!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/stylishrails.wordpress.com/34/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/stylishrails.wordpress.com/34/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/stylishrails.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/stylishrails.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/stylishrails.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/stylishrails.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/stylishrails.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/stylishrails.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/stylishrails.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/stylishrails.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/stylishrails.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/stylishrails.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stylishrails.wordpress.com&blog=4165759&post=34&subd=stylishrails&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://stylishrails.wordpress.com/2008/08/05/the-challenges-of-implementing-collaboration-tools/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4b7cfb0c6687a6d7833ccc4482b468a0?s=96&#38;d=identicon" medium="image">
			<media:title type="html">chrisjschmitt</media:title>
		</media:content>
	</item>
		<item>
		<title>Online Training in the Web 2.0 World</title>
		<link>http://stylishrails.wordpress.com/2008/08/01/online-training-in-the-web-20-world/</link>
		<comments>http://stylishrails.wordpress.com/2008/08/01/online-training-in-the-web-20-world/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 22:35:47 +0000</pubDate>
		<dc:creator>Chris Schmitt</dc:creator>
				<category><![CDATA[Web 2.0]]></category>

		<guid isPermaLink="false">http://stylishrails.wordpress.com/?p=21</guid>
		<description><![CDATA[I&#8217;ve spoken to a few people lately about how you can use the Web to provide online training or perhaps just to market yourself.   I usually start by providing a few great examples, and then I talk about screencasts, sharing presentations and screencasts on the web, and wrap up with a discussion on [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stylishrails.wordpress.com&blog=4165759&post=21&subd=stylishrails&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;ve spoken to a few people lately about how you can use the Web to provide online training or perhaps just to market yourself.   I usually start by providing a few great examples, and then I talk about screencasts, sharing presentations and screencasts on the web, and wrap up with a discussion on providing live demos remotely.</p>
<p><span style="text-decoration:underline;">Some Great Examples</span><br />
A company called <a title="Commoncraft" href="http://www.commoncraft.com/show" target="_blank">Commoncraft</a> has an amazing knack for explaining things in plain English using simple videos and podcasts.   Scroll down to the bottom of their web page and you can see some of their work.   What I like about their work is that it&#8217;s simple, production costs appear to be low and it&#8217;s really inspiring.   Hopefully we&#8217;ll see lots of other startups doing freelance work like this.  Another great example is the use of screencasts for training: check out this <a title="Basecamp" href="http://www.basecamphq.com/demos/dashboard/" target="_blank">Basecamp</a> demo.</p>
<p><span style="text-decoration:underline;">Doing it yourself: </span><span style="text-decoration:underline;">Screencasting</span><br />
Here&#8217;s a link to a &#8220;<a title="Screencast" href="http://peepcode.com/products/screencasting-on-the-mac" target="_blank">Screencast</a>&#8221; on how to make (what else but) &#8220;Screencasts&#8221;!  The screencast is from Peepcode.   It&#8217;s for the Mac but I&#8217;m sure there are also lots of screencasting applications for the PC (although I would still recommend the Mac!).  Screencasts combine screen shots, diagrams and voice overs to teach a topic.  You can pause, try out something, and then continue.  By the way, I highly recommend spending the $9 for Peepcode&#8217;s Screencast video.</p>
<p><span style="text-decoration:underline;">Sharing videos and screencasts</span><br />
<a title="Slideshare" href="http://www.slideshare.net/" target="_blank">Slideshare</a> provides a great way to share presentations and <a title="Slidecasts" href="http://www.slideshare.net/faqs/slidecast" target="_blank">Slidecasts</a> on the Web.   You can upload PowerPoint or Mac presentations.   Many people also use <a title="YouTube" href="http://www.youtube.com/">YouTube</a> to share their videos as long as they&#8217;re short.</p>
<p><span style="text-decoration:underline;">Live demos</span><br />
The next best thing to in-classroom training is live demos.  One tool that you might find useful is <a title="Webex" href="http://www.webex.com/" target="_blank">Webex</a>.  Webex let&#8217;s you share what&#8217;s on your desktop screen with whomever you wish.   You can essentially use this application to do live training remotely.   There are many other services/applications that do this such as Microsoft&#8217;s LiveMeeting.  What&#8217;s nice about this kind of training is that you can bring up different applications, share slides, and answer questions in real time.</p>
<p>This is a pretty quick overview.  Take some time to look at some of these sites and get a feel for what&#8217;s possible.    Likely, the web-based training you select will combine several of these methods.   If you come across any other neat applications or examples of Web based training drop me a note.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/stylishrails.wordpress.com/21/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/stylishrails.wordpress.com/21/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/stylishrails.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/stylishrails.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/stylishrails.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/stylishrails.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/stylishrails.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/stylishrails.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/stylishrails.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/stylishrails.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/stylishrails.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/stylishrails.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stylishrails.wordpress.com&blog=4165759&post=21&subd=stylishrails&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://stylishrails.wordpress.com/2008/08/01/online-training-in-the-web-20-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4b7cfb0c6687a6d7833ccc4482b468a0?s=96&#38;d=identicon" medium="image">
			<media:title type="html">chrisjschmitt</media:title>
		</media:content>
	</item>
		<item>
		<title>Moving hosts</title>
		<link>http://stylishrails.wordpress.com/2008/07/10/moving-hosts/</link>
		<comments>http://stylishrails.wordpress.com/2008/07/10/moving-hosts/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 14:07:20 +0000</pubDate>
		<dc:creator>Chris Schmitt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://stylishrails.wordpress.com/?p=19</guid>
		<description><![CDATA[I&#8217;ve temporarily moved this blog to WordPress.  I will soon be setting up a rails-based blog on my new webhost.  Stay tuned.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stylishrails.wordpress.com&blog=4165759&post=19&subd=stylishrails&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;ve temporarily moved this blog to WordPress.  I will soon be setting up a rails-based blog on my new webhost.  Stay tuned.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/stylishrails.wordpress.com/19/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/stylishrails.wordpress.com/19/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/stylishrails.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/stylishrails.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/stylishrails.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/stylishrails.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/stylishrails.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/stylishrails.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/stylishrails.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/stylishrails.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/stylishrails.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/stylishrails.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stylishrails.wordpress.com&blog=4165759&post=19&subd=stylishrails&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://stylishrails.wordpress.com/2008/07/10/moving-hosts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4b7cfb0c6687a6d7833ccc4482b468a0?s=96&#38;d=identicon" medium="image">
			<media:title type="html">chrisjschmitt</media:title>
		</media:content>
	</item>
		<item>
		<title>Stylish Rails</title>
		<link>http://stylishrails.wordpress.com/2008/04/04/stylish-rails/</link>
		<comments>http://stylishrails.wordpress.com/2008/04/04/stylish-rails/#comments</comments>
		<pubDate>Fri, 04 Apr 2008 15:38:37 +0000</pubDate>
		<dc:creator>Chris Schmitt</dc:creator>
				<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://cavas.ca/c-blog/2008/04/05/stylish-rails-part-i/</guid>
		<description><![CDATA[Scaffolding in Ruby on Rails 2.02 is very simple to use and a great time saver.  However, the views that are generated are very, um, well they&#8217;re just plain ugly.  In addition, they&#8217;re not very accessible to users with older browsers or that use assistive technology.
Of course everyone that codes in Rails is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stylishrails.wordpress.com&blog=4165759&post=5&subd=stylishrails&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Scaffolding in Ruby on Rails 2.02 is very simple to use and a great time saver.  However, the views that are generated are very, um, well they&#8217;re just plain ugly.  In addition, they&#8217;re not very accessible to users with older browsers or that use assistive technology.</p>
<p>Of course everyone that codes in Rails is an expert in CSS of has access to a professional web designer who can clean up those ugly and inaccessible views really quick, right?  Well, not in my one-man show.  And all of the reference material that I&#8217;ve read on Rails skips over the part that explained how to make your views presentable, usually by simply stating: &#8220;Magic Happens Here&#8221;.  So I learned styling the hard way &#8211; by reading everything I could get my hands on.</p>
<p>In this post I&#8217;m going to demonstrate how to apply simple styling to scaffold generated views using CSS.  I&#8217;ll demonstrate how to markup and style a simple form layout that includes a border with a legend and right-justified field labels.  Sure, there are plugins you can get to help you out but what fun would that be? Besides, everyone has their own style.</p>
<p>I will be referencing the excellent SitePoint book <a target="_blank" href="http://www.sitepoint.com/books/cssdesign1/">The Art and Science of CSS</a>.  In particular, Chapter 5: Forms, written by <a target="_blank" title="About the Authors" href="http://www.sitepoint.com/books/cssdesign1/about.php?SID=18abae2b42eb582c98d3ffd92bc6a99d#cameron-adams">Cameron Adams</a>, provides an excellent step-by-step tutorial on creating attractive and accessible forms.</p>
<p>Note that I&#8217;m assuming you already know how to use the Rails 2.0 scaffolding feature.  If not, there&#8217;s lots of material out there that can get you up to speed.</p>
<p><span id="more-5"></span></p>
<p><strong>Creating the appropriate markup</strong></p>
<p>The first thing you need to do is to add form markup that contains the necessary elements to refer to in the CSS style sheet.  In particular, you will need to add <strong>&lt;label&gt;</strong> and <strong>&lt;legend&gt;</strong> tags.  These tags not only help with styling specific parts of the page but also permits users of assistive technology such as screen readers to use your site.  If you take a look at the scaffold generated markup you&#8217;ll see that it does not have these tags:</p>
<pre><span class="text text_html text_html_ruby">
<span class="meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html">h1</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>New todo<span class="meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;/</span><span class="entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html">h1</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>

<span class="source source_ruby source_ruby_rails source_ruby_rails_embedded source_ruby_rails_embedded_html"><span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">&lt;%=</span> error_messages_for <span class="constant constant_other constant_other_symbol constant_other_symbol_ruby"><span class="punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_ruby">:</span>todo</span> <span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">%&gt;</span></span>

<span class="source source_ruby source_ruby_rails source_ruby_rails_embedded source_ruby_rails_embedded_html"><span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">&lt;%</span> form_for<span class="punctuation punctuation_section punctuation_section_function punctuation_section_function_ruby">(</span><span class="variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby"><span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_ruby">@</span>todo</span><span class="punctuation punctuation_section punctuation_section_function punctuation_section_function_ruby">)</span> <span class="keyword keyword_control keyword_control_start-block keyword_control_start-block_ruby">do </span><span class="punctuation punctuation_separator punctuation_separator_variable punctuation_separator_variable_ruby">|</span><span class="variable variable_other variable_other_block variable_other_block_ruby">f</span><span class="punctuation punctuation_separator punctuation_separator_variable punctuation_separator_variable_ruby">|</span> <span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">%&gt;</span></span>
  <span class="meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html">p</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>
    <span class="meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html">b</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>Name<span class="meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;/</span><span class="entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html">b</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html">br</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html"> /&gt;</span></span>
    <span class="source source_ruby source_ruby_rails source_ruby_rails_embedded source_ruby_rails_embedded_html"><span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">&lt;%=</span> f<span class="punctuation punctuation_separator punctuation_separator_method punctuation_separator_method_ruby">.</span>text_field <span class="constant constant_other constant_other_symbol constant_other_symbol_ruby"><span class="punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_ruby">:</span>name</span> <span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">%&gt;</span></span>
  <span class="meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;/</span><span class="entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html">p</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>

  <span class="meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html">p</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>
    <span class="meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html">b</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>Description<span class="meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;/</span><span class="entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html">b</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html">br</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html"> /&gt;</span></span>
    <span class="source source_ruby source_ruby_rails source_ruby_rails_embedded source_ruby_rails_embedded_html"><span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">&lt;%=</span> f<span class="punctuation punctuation_separator punctuation_separator_method punctuation_separator_method_ruby">.</span>text_field <span class="constant constant_other constant_other_symbol constant_other_symbol_ruby"><span class="punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_ruby">:</span>description</span> <span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">%&gt;</span></span>
  <span class="meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;/</span><span class="entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html">p</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>

  <span class="meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html">p</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>
    <span class="source source_ruby source_ruby_rails source_ruby_rails_embedded source_ruby_rails_embedded_html"><span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">&lt;%=</span> f<span class="punctuation punctuation_separator punctuation_separator_method punctuation_separator_method_ruby">.</span>submit <span class="string string_quoted string_quoted_double string_quoted_double_ruby"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_ruby">"</span>Create<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_ruby">"</span></span> <span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">%&gt;</span></span>
  <span class="meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;/</span><span class="entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html">p</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>
<span class="source source_ruby source_ruby_rails source_ruby_rails_embedded source_ruby_rails_embedded_html"><span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">&lt;%</span> <span class="keyword keyword_control keyword_control_ruby">end</span> <span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">%&gt;</span></span>

<span class="source source_ruby source_ruby_rails source_ruby_rails_embedded source_ruby_rails_embedded_html"><span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">&lt;%=</span> link_to <span class="string string_quoted string_quoted_single string_quoted_single_ruby"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_ruby">'</span>Back<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_ruby">'</span></span><span class="punctuation punctuation_separator punctuation_separator_object punctuation_separator_object_ruby">,</span> todos_path <span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">%&gt;</span></span>

</span></pre>
<p>So let&#8217;s add those tags now.</p>
<p>In the rhtml template new.html.erb wrap everything inside of the  block with <strong>&lt;fieldset&gt;</strong> tags and underneath the opening &lt;fieldset&gt; tag add a legend using <strong>&lt;legend&gt;</strong> tags.</p>
<pre><span class="text text_html text_html_ruby">
<span class="meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html">h1</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>Create gift exchange<span class="meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;/</span><span class="entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html">h1</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>

<span class="source source_ruby source_ruby_rails source_ruby_rails_embedded source_ruby_rails_embedded_html"><span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">&lt;%=</span> error_messages_for <span class="constant constant_other constant_other_symbol constant_other_symbol_ruby"><span class="punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_ruby">:</span>gift_list</span> <span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">%&gt;</span></span>

<span class="source source_ruby source_ruby_rails source_ruby_rails_embedded source_ruby_rails_embedded_html"><span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">&lt;%</span> form_for<span class="punctuation punctuation_section punctuation_section_function punctuation_section_function_ruby">(</span><span class="variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby"><span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_ruby">@</span>gift_list</span><span class="punctuation punctuation_section punctuation_section_function punctuation_section_function_ruby">)</span> <span class="keyword keyword_control keyword_control_start-block keyword_control_start-block_ruby">do </span><span class="punctuation punctuation_separator punctuation_separator_variable punctuation_separator_variable_ruby">|</span><span class="variable variable_other variable_other_block variable_other_block_ruby">f</span><span class="punctuation punctuation_separator punctuation_separator_variable punctuation_separator_variable_ruby">|</span> <span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">%&gt;</span></span>
<span class="meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html">fieldset</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>
  <span class="meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html">legend</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>Gift exchange<span class="meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;/</span><span class="entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html">legend</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>
    <span class="meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html">p</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>
      <span class="meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html">b</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>Name<span class="meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;/</span><span class="entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html">b</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html">br</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html"> /&gt;</span></span>
      <span class="source source_ruby source_ruby_rails source_ruby_rails_embedded source_ruby_rails_embedded_html"><span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">&lt;%=</span> f<span class="punctuation punctuation_separator punctuation_separator_method punctuation_separator_method_ruby">.</span>text_field <span class="constant constant_other constant_other_symbol constant_other_symbol_ruby"><span class="punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_ruby">:</span>name</span> <span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">%&gt;</span></span>
    <span class="meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;/</span><span class="entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html">p</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>

    <span class="meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html">p</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>
      <span class="meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html">b</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>User<span class="meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;/</span><span class="entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html">b</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html">br</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html"> /&gt;</span></span>
      <span class="source source_ruby source_ruby_rails source_ruby_rails_embedded source_ruby_rails_embedded_html"><span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">&lt;%=</span> f<span class="punctuation punctuation_separator punctuation_separator_method punctuation_separator_method_ruby">.</span>text_field <span class="constant constant_other constant_other_symbol constant_other_symbol_ruby"><span class="punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_ruby">:</span>user_id</span> <span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">%&gt;</span></span>
    <span class="meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;/</span><span class="entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html">p</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>

    <span class="meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html">p</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>
      <span class="source source_ruby source_ruby_rails source_ruby_rails_embedded source_ruby_rails_embedded_html"><span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">&lt;%=</span> f<span class="punctuation punctuation_separator punctuation_separator_method punctuation_separator_method_ruby">.</span>submit <span class="string string_quoted string_quoted_double string_quoted_double_ruby"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_ruby">"</span>Create<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_ruby">"</span></span> <span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">%&gt;</span></span>
    <span class="meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;/</span><span class="entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html">p</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>
<span class="meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;/</span><span class="entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html">fieldset</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>
<span class="source source_ruby source_ruby_rails source_ruby_rails_embedded source_ruby_rails_embedded_html"><span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">&lt;%</span> <span class="keyword keyword_control keyword_control_ruby">end</span> <span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">%&gt;</span></span>

<span class="source source_ruby source_ruby_rails source_ruby_rails_embedded source_ruby_rails_embedded_html"><span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">&lt;%=</span> link_to <span class="string string_quoted string_quoted_single string_quoted_single_ruby"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_ruby">'</span>Back<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_ruby">'</span></span><span class="punctuation punctuation_separator punctuation_separator_object punctuation_separator_object_ruby">,</span> gift_lists_path <span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">%&gt;</span></span>

</span></pre>
<p>If you save your changes and refresh your browser you should now see your fields surrounded by a border with a legend name. </p>
<p><img src="/c-blog///mnt/w0205/d37/s38/b0295d5f/www/cavas.ca//c-blog//wp-content/uploads/2008/04/basic_style.png" alt="Basic style" height="254" width="449"></p>
<p>One of the benefits of using the legend tag is that a screen reader will read out the legend text &#8220;To do list; Name&#8221;.</p>
<p>Next, for the field entry portion of the form replace all of the &lt;p&gt; tags with  <strong>&lt;li&gt;</strong> tags and then wrap the &lt;li&gt; tags with an <strong>&lt;ol&gt;</strong> (ordered list) tag.   The ordered list gives us the ability to add margins and padding to all of the field items and makes the form quite readable in absence of styles such as is the case with older browsers.</p>
<p>Finally, we&#8217;re going to give our field names (i.e., &#8220;Name&#8221; and &#8220;Description&#8221;) some labels with the <strong>&lt;label&gt;</strong> tag. Check it out:</p>
<pre><span class="text text_html text_html_ruby">
<span class="source source_ruby source_ruby_rails source_ruby_rails_embedded source_ruby_rails_embedded_html"><span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">&lt;%</span> form_for<span class="punctuation punctuation_section punctuation_section_function punctuation_section_function_ruby">(</span><span class="variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby"><span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_ruby">@</span>todo</span><span class="punctuation punctuation_section punctuation_section_function punctuation_section_function_ruby">)</span> <span class="keyword keyword_control keyword_control_start-block keyword_control_start-block_ruby">do </span><span class="punctuation punctuation_separator punctuation_separator_variable punctuation_separator_variable_ruby">|</span><span class="variable variable_other variable_other_block variable_other_block_ruby">f</span><span class="punctuation punctuation_separator punctuation_separator_variable punctuation_separator_variable_ruby">|</span> <span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">%&gt;</span></span>
<span class="meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html">fieldset</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>
  <span class="meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html">legend</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>To Do list<span class="meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;/</span><span class="entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html">legend</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>
  <span class="meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html">ol</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>
    <span class="meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html">li</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>
     <span class="meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html">label</span> <span class="entity entity_other entity_other_attribute-name entity_other_attribute-name_html">for</span>=<span class="string string_quoted string_quoted_double string_quoted_double_html"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_html">"</span>name<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_html">"</span></span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>Name<span class="meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;/</span><span class="entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html">label</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>
      <span class="source source_ruby source_ruby_rails source_ruby_rails_embedded source_ruby_rails_embedded_html"><span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">&lt;%=</span> f<span class="punctuation punctuation_separator punctuation_separator_method punctuation_separator_method_ruby">.</span>text_field <span class="constant constant_other constant_other_symbol constant_other_symbol_ruby"><span class="punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_ruby">:</span>name</span> <span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">%&gt;</span></span>
    <span class="meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;/</span><span class="entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html">li</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>

    <span class="meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html">li</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>
      <span class="meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html">label</span> <span class="entity entity_other entity_other_attribute-name entity_other_attribute-name_html">for</span>=<span class="string string_quoted string_quoted_double string_quoted_double_html"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_html">"</span>name<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_html">"</span></span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>Description<span class="meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;/</span><span class="entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html">label</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>
      <span class="source source_ruby source_ruby_rails source_ruby_rails_embedded source_ruby_rails_embedded_html"><span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">&lt;%=</span> f<span class="punctuation punctuation_separator punctuation_separator_method punctuation_separator_method_ruby">.</span>text_field <span class="constant constant_other constant_other_symbol constant_other_symbol_ruby"><span class="punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_ruby">:</span>description</span> <span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">%&gt;</span></span>
    <span class="meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;/</span><span class="entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html">li</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>
  <span class="meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;/</span><span class="entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html">ol</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>
<span class="meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;/</span><span class="entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html">fieldset</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>

</span></pre>
<p>The last markup change we&#8217;ll do is move the &lt;%= f.submit &#8220;Create&#8221; %&gt; erb tag within its own <strong>&lt;fieldset&gt;</strong> tag.  That may sound a little weird, but the <strong>&lt;fieldset&gt;</strong> tag is a great way to group multiple actions at the end of a form such as &#8220;submit&#8221; and &#8220;cancel&#8221;. We&#8217;ll also give this <strong>&lt;fieldset&gt;</strong> a class of its own names &#8220;sumbit&#8221;.</p>
<pre><span class="text text_html text_html_ruby"><span class="meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html">fieldset</span> <span class="entity entity_other entity_other_attribute-name entity_other_attribute-name_html">class</span>=<span class="string string_quoted string_quoted_double string_quoted_double_html"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_html">"</span>submit<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_html">"</span></span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>
  <span class="meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;</span><span class="entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html">p</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>
    <span class="source source_ruby source_ruby_rails source_ruby_rails_embedded source_ruby_rails_embedded_html"><span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">&lt;%=</span> f<span class="punctuation punctuation_separator punctuation_separator_method punctuation_separator_method_ruby">.</span>submit <span class="string string_quoted string_quoted_double string_quoted_double_ruby"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_ruby">"</span>Create<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_ruby">"</span></span> <span class="punctuation punctuation_section punctuation_section_embedded punctuation_section_embedded_ruby">%&gt;</span></span>
  <span class="meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;/</span><span class="entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html">p</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span>
<span class="meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html"><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&lt;/</span><span class="entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html">fieldset</span><span class="punctuation punctuation_definition punctuation_definition_tag punctuation_definition_tag_html">&gt;</span></span></span></pre>
<p>If you save your changes and refresh your browser you&#8217;ll notice you page has decidedly taken a step backward, i.e. the field elements are no longer aligned.</p>
<p><img src="/c-blog///mnt/w0205/d37/s38/b0295d5f/www/cavas.ca//c-blog//wp-content/uploads/2008/04/form_with_accessible_markup.png" alt="Form with accessible markup" height="239" width="429"></p>
<p>That&#8217;s ok because the markup changes we&#8217;ve made now gives as complete control over how we want to style this sucker!</p>
<p><strong>Using the Scaffold Style Sheet</strong></p>
<p>There are several ways you can layout the form: for example you can position the label directly above the form element, in a separate left column that&#8217;s left-aligned or as a separate left column that&#8217;s right-aligned.  In this example I&#8217;m going to go with a separate left column that&#8217;s right-aligned.  I&#8217;m going to go with this option because a right-aligned column layout allows for a quick association between the field label and the field element.</p>
<p>Now it&#8217;s time to open the scaffold.css file located in the public/stylesheets directory.  As you can see, there&#8217;s already quite a few style tags in scaffold.css.  We just need to add styles for the <strong>legend</strong> and both both <strong>fieldsets</strong>.  At the same time, we&#8217;ll add a little <strong>background-color</strong> to the fieldset element.  Let&#8217;s add the following styles to the bottom of scaffold.css:</p>
<pre><span class="source source_css">
<span class="meta meta_selector meta_selector_css"><span class="entity entity_name entity_name_tag entity_name_tag_css">fieldset</span> </span><span class="meta meta_property-list meta_property-list_css"><span class="punctuation punctuation_section punctuation_section_property-list punctuation_section_property-list_css">{</span>
    <span class="meta meta_property-name meta_property-name_css"><span class="support support_type support_type_property-name support_type_property-name_css">float</span></span><span class="meta meta_property-value meta_property-value_css"><span class="punctuation punctuation_separator punctuation_separator_key-value punctuation_separator_key-value_css">:</span> <span class="support support_constant support_constant_property-value support_constant_property-value_css">left</span><span class="punctuation punctuation_terminator punctuation_terminator_rule punctuation_terminator_rule_css">;</span></span>
    <span class="meta meta_property-name meta_property-name_css"><span class="support support_type support_type_property-name support_type_property-name_css">clear</span></span><span class="meta meta_property-value meta_property-value_css"><span class="punctuation punctuation_separator punctuation_separator_key-value punctuation_separator_key-value_css">:</span> <span class="support support_constant support_constant_property-value support_constant_property-value_css">left</span><span class="punctuation punctuation_terminator punctuation_terminator_rule punctuation_terminator_rule_css">;</span></span>
    <span class="meta meta_property-name meta_property-name_css"><span class="support support_type support_type_property-name support_type_property-name_css">width</span></span><span class="meta meta_property-value meta_property-value_css"><span class="punctuation punctuation_separator punctuation_separator_key-value punctuation_separator_key-value_css">:</span> <span class="constant constant_numeric constant_numeric_css">100</span><span class="keyword keyword_other keyword_other_unit keyword_other_unit_css">%</span><span class="punctuation punctuation_terminator punctuation_terminator_rule punctuation_terminator_rule_css">;</span></span>
    <span class="meta meta_property-name meta_property-name_css"><span class="support support_type support_type_property-name support_type_property-name_css">margin</span></span><span class="meta meta_property-value meta_property-value_css"><span class="punctuation punctuation_separator punctuation_separator_key-value punctuation_separator_key-value_css">:</span> <span class="constant constant_numeric constant_numeric_css">1.5</span><span class="keyword keyword_other keyword_other_unit keyword_other_unit_css">em</span><span class="constant constant_numeric constant_numeric_css"> 0 0 0</span><span class="punctuation punctuation_terminator punctuation_terminator_rule punctuation_terminator_rule_css">;</span></span>
    <span class="meta meta_property-name meta_property-name_css"><span class="support support_type support_type_property-name support_type_property-name_css">padding</span></span><span class="meta meta_property-value meta_property-value_css"><span class="punctuation punctuation_separator punctuation_separator_key-value punctuation_separator_key-value_css">:</span> <span class="constant constant_numeric constant_numeric_css">0</span><span class="punctuation punctuation_terminator punctuation_terminator_rule punctuation_terminator_rule_css">;</span></span>
    <span class="meta meta_property-name meta_property-name_css"><span class="support support_type support_type_property-name support_type_property-name_css">border</span></span><span class="meta meta_property-value meta_property-value_css"><span class="punctuation punctuation_separator punctuation_separator_key-value punctuation_separator_key-value_css">:</span> <span class="constant constant_numeric constant_numeric_css">1</span><span class="keyword keyword_other keyword_other_unit keyword_other_unit_css">px</span> <span class="support support_constant support_constant_property-value support_constant_property-value_css">solid</span> <span class="constant constant_other constant_other_color constant_other_color_rgb-value constant_other_color_rgb-value_css"><span class="punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_css">#</span>BFBAB0</span><span class="punctuation punctuation_terminator punctuation_terminator_rule punctuation_terminator_rule_css">;</span></span>
    <span class="meta meta_property-name meta_property-name_css"><span class="support support_type support_type_property-name support_type_property-name_css">background-color</span></span><span class="meta meta_property-value meta_property-value_css"><span class="punctuation punctuation_separator punctuation_separator_key-value punctuation_separator_key-value_css">:</span> <span class="constant constant_other constant_other_color constant_other_color_rgb-value constant_other_color_rgb-value_css"><span class="punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_css">#</span>F2EFE9</span><span class="punctuation punctuation_terminator punctuation_terminator_rule punctuation_terminator_rule_css">;</span></span>
<span class="punctuation punctuation_section punctuation_section_property-list punctuation_section_property-list_css">}</span></span>

<span class="meta meta_selector meta_selector_css"><span class="entity entity_name entity_name_tag entity_name_tag_css">legend</span> </span><span class="meta meta_property-list meta_property-list_css"><span class="punctuation punctuation_section punctuation_section_property-list punctuation_section_property-list_css">{</span>
    <span class="meta meta_property-name meta_property-name_css"><span class="support support_type support_type_property-name support_type_property-name_css">margin-left</span></span><span class="meta meta_property-value meta_property-value_css"><span class="punctuation punctuation_separator punctuation_separator_key-value punctuation_separator_key-value_css">:</span> <span class="constant constant_numeric constant_numeric_css">1</span><span class="keyword keyword_other keyword_other_unit keyword_other_unit_css">em</span><span class="punctuation punctuation_terminator punctuation_terminator_rule punctuation_terminator_rule_css">;</span></span>
    <span class="meta meta_property-name meta_property-name_css"><span class="support support_type support_type_property-name support_type_property-name_css">color</span></span><span class="meta meta_property-value meta_property-value_css"><span class="punctuation punctuation_separator punctuation_separator_key-value punctuation_separator_key-value_css">:</span> <span class="constant constant_other constant_other_color constant_other_color_rgb-value constant_other_color_rgb-value_css"><span class="punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_css">#</span>000000</span><span class="punctuation punctuation_terminator punctuation_terminator_rule punctuation_terminator_rule_css">;</span></span>
    <span class="meta meta_property-name meta_property-name_css"><span class="support support_type support_type_property-name support_type_property-name_css">font-weight</span></span><span class="meta meta_property-value meta_property-value_css"><span class="punctuation punctuation_separator punctuation_separator_key-value punctuation_separator_key-value_css">:</span> <span class="support support_constant support_constant_property-value support_constant_property-value_css">bold</span><span class="punctuation punctuation_terminator punctuation_terminator_rule punctuation_terminator_rule_css">;</span></span>
<span class="punctuation punctuation_section punctuation_section_property-list punctuation_section_property-list_css">}</span></span>

<span class="meta meta_selector meta_selector_css"><span class="entity entity_name entity_name_tag entity_name_tag_css">fieldset</span> <span class="entity entity_name entity_name_tag entity_name_tag_css">ol</span> </span><span class="meta meta_property-list meta_property-list_css"><span class="punctuation punctuation_section punctuation_section_property-list punctuation_section_property-list_css">{</span>
    <span class="meta meta_property-name meta_property-name_css"><span class="support support_type support_type_property-name support_type_property-name_css">padding</span></span><span class="meta meta_property-value meta_property-value_css"><span class="punctuation punctuation_separator punctuation_separator_key-value punctuation_separator_key-value_css">:</span> <span class="constant constant_numeric constant_numeric_css">1</span><span class="keyword keyword_other keyword_other_unit keyword_other_unit_css">em</span><span class="constant constant_numeric constant_numeric_css"> 1</span><span class="keyword keyword_other keyword_other_unit keyword_other_unit_css">em</span><span class="constant constant_numeric constant_numeric_css"> 0 1</span><span class="keyword keyword_other keyword_other_unit keyword_other_unit_css">em</span><span class="punctuation punctuation_terminator punctuation_terminator_rule punctuation_terminator_rule_css">;</span></span>
    <span class="meta meta_property-name meta_property-name_css"><span class="support support_type support_type_property-name support_type_property-name_css">list-style</span></span><span class="meta meta_property-value meta_property-value_css"><span class="punctuation punctuation_separator punctuation_separator_key-value punctuation_separator_key-value_css">:</span> <span class="support support_constant support_constant_property-value support_constant_property-value_css">none</span><span class="punctuation punctuation_terminator punctuation_terminator_rule punctuation_terminator_rule_css">;</span></span>
<span class="punctuation punctuation_section punctuation_section_property-list punctuation_section_property-list_css">}</span></span>
<span class="meta meta_selector meta_selector_css"><span class="entity entity_name entity_name_tag entity_name_tag_css">fieldset</span> <span class="entity entity_name entity_name_tag entity_name_tag_css">li</span> </span><span class="meta meta_property-list meta_property-list_css"><span class="punctuation punctuation_section punctuation_section_property-list punctuation_section_property-list_css">{</span>
    <span class="meta meta_property-name meta_property-name_css"><span class="support support_type support_type_property-name support_type_property-name_css">padding-bottom</span></span><span class="meta meta_property-value meta_property-value_css"><span class="punctuation punctuation_separator punctuation_separator_key-value punctuation_separator_key-value_css">:</span> <span class="constant constant_numeric constant_numeric_css">1</span><span class="keyword keyword_other keyword_other_unit keyword_other_unit_css">em</span><span class="punctuation punctuation_terminator punctuation_terminator_rule punctuation_terminator_rule_css">;</span></span>
<span class="punctuation punctuation_section punctuation_section_property-list punctuation_section_property-list_css">}</span></span>

</span></pre>
<p>If you refresh your browser now you should see nicely spaced field and labels, however, you&#8217;ll notice the field elements are not aligned.</p>
<p>Let&#8217;s fix that next with a <strong>label</strong> style:</p>
<pre><span class="source source_css">
<span class="meta meta_selector meta_selector_css"><span class="entity entity_name entity_name_tag entity_name_tag_css">label</span> </span><span class="meta meta_property-list meta_property-list_css"><span class="punctuation punctuation_section punctuation_section_property-list punctuation_section_property-list_css">{</span>
    <span class="meta meta_property-name meta_property-name_css"><span class="support support_type support_type_property-name support_type_property-name_css">float</span></span><span class="meta meta_property-value meta_property-value_css"><span class="punctuation punctuation_separator punctuation_separator_key-value punctuation_separator_key-value_css">:</span> <span class="support support_constant support_constant_property-value support_constant_property-value_css">left</span><span class="punctuation punctuation_terminator punctuation_terminator_rule punctuation_terminator_rule_css">;</span></span>
    <span class="meta meta_property-name meta_property-name_css"><span class="support support_type support_type_property-name support_type_property-name_css">width</span></span><span class="meta meta_property-value meta_property-value_css"><span class="punctuation punctuation_separator punctuation_separator_key-value punctuation_separator_key-value_css">:</span> <span class="constant constant_numeric constant_numeric_css">10</span><span class="keyword keyword_other keyword_other_unit keyword_other_unit_css">em</span><span class="punctuation punctuation_terminator punctuation_terminator_rule punctuation_terminator_rule_css">;</span></span>
    <span class="meta meta_property-name meta_property-name_css"><span class="support support_type support_type_property-name support_type_property-name_css">margin-right</span></span><span class="meta meta_property-value meta_property-value_css"><span class="punctuation punctuation_separator punctuation_separator_key-value punctuation_separator_key-value_css">:</span> <span class="constant constant_numeric constant_numeric_css">1</span><span class="keyword keyword_other keyword_other_unit keyword_other_unit_css">em</span><span class="punctuation punctuation_terminator punctuation_terminator_rule punctuation_terminator_rule_css">;</span></span>
    <span class="meta meta_property-name meta_property-name_css"><span class="support support_type support_type_property-name support_type_property-name_css">text-align</span></span><span class="meta meta_property-value meta_property-value_css"><span class="punctuation punctuation_separator punctuation_separator_key-value punctuation_separator_key-value_css">:</span> <span class="support support_constant support_constant_property-value support_constant_property-value_css">right</span><span class="punctuation punctuation_terminator punctuation_terminator_rule punctuation_terminator_rule_css">;</span></span>
<span class="punctuation punctuation_section punctuation_section_property-list punctuation_section_property-list_css">}</span></span>

</span></pre>
<p>Now refresh your browser and you&#8217;ll see that the field elements and labels are nicely aligned with the text labels right-justified.</p>
<p><img src="/c-blog///mnt/w0205/d37/s38/b0295d5f/www/cavas.ca//c-blog//wp-content/uploads/2008/04/field_elements_aligned.png" alt="Field elements aligned" height="285" width="469"></p>
<p>You can adjust the <strong>width</strong> to accommodate your field labels or if you leave things as they are the field labels will wrap.  But be careful if you decide to wrap your labels you will need additional styling; see chapter 5 of <em>The Art and Science of CSS</em> for more detail.</p>
<p>You&#8217;ll notice the &#8220;Create&#8221; button is shoved over to the right and has its own border.  That looks strange and we don&#8217;t want that.  This is where the &lt;fieldset&gt; tags surrounding the  erb tag come in handy.  The following style uses <strong>padding-left</strong> to properly align the &#8220;Create&#8221; button.  At the same time we&#8217;ll make the <strong>background-color</strong> transparent.</p>
<pre><span class="source source_css">
<span class="meta meta_selector meta_selector_css"><span class="entity entity_name entity_name_tag entity_name_tag_css">fieldset</span><span class="entity entity_other entity_other_attribute-name entity_other_attribute-name_class entity_other_attribute-name_class_css"><span class="punctuation punctuation_definition punctuation_definition_entity punctuation_definition_entity_css">.</span>submit</span> </span><span class="meta meta_property-list meta_property-list_css"><span class="punctuation punctuation_section punctuation_section_property-list punctuation_section_property-list_css">{</span>
    <span class="meta meta_property-name meta_property-name_css"><span class="support support_type support_type_property-name support_type_property-name_css">float</span></span><span class="meta meta_property-value meta_property-value_css"><span class="punctuation punctuation_separator punctuation_separator_key-value punctuation_separator_key-value_css">:</span> <span class="support support_constant support_constant_property-value support_constant_property-value_css">none</span><span class="punctuation punctuation_terminator punctuation_terminator_rule punctuation_terminator_rule_css">;</span></span>
    <span class="meta meta_property-name meta_property-name_css"><span class="support support_type support_type_property-name support_type_property-name_css">width</span></span><span class="meta meta_property-value meta_property-value_css"><span class="punctuation punctuation_separator punctuation_separator_key-value punctuation_separator_key-value_css">:</span> <span class="support support_constant support_constant_property-value support_constant_property-value_css">auto</span><span class="punctuation punctuation_terminator punctuation_terminator_rule punctuation_terminator_rule_css">;</span></span>
    <span class="meta meta_property-name meta_property-name_css"><span class="support support_type support_type_property-name support_type_property-name_css">padding-left</span></span><span class="meta meta_property-value meta_property-value_css"><span class="punctuation punctuation_separator punctuation_separator_key-value punctuation_separator_key-value_css">:</span> <span class="constant constant_numeric constant_numeric_css">12</span><span class="keyword keyword_other keyword_other_unit keyword_other_unit_css">em</span><span class="punctuation punctuation_terminator punctuation_terminator_rule punctuation_terminator_rule_css">;</span></span>
    <span class="meta meta_property-name meta_property-name_css"><span class="support support_type support_type_property-name support_type_property-name_css">border</span></span><span class="meta meta_property-value meta_property-value_css"><span class="punctuation punctuation_separator punctuation_separator_key-value punctuation_separator_key-value_css">:</span> <span class="constant constant_numeric constant_numeric_css">0</span> <span class="support support_constant support_constant_property-value support_constant_property-value_css">none</span> <span class="constant constant_other constant_other_color constant_other_color_rgb-value constant_other_color_rgb-value_css"><span class="punctuation punctuation_definition punctuation_definition_constant punctuation_definition_constant_css">#</span>FFF</span><span class="punctuation punctuation_terminator punctuation_terminator_rule punctuation_terminator_rule_css">;</span></span>
    <span class="meta meta_property-name meta_property-name_css"><span class="support support_type support_type_property-name support_type_property-name_css">background-color</span></span><span class="meta meta_property-value meta_property-value_css"><span class="punctuation punctuation_separator punctuation_separator_key-value punctuation_separator_key-value_css">:</span> <span class="support support_constant support_constant_property-value support_constant_property-value_css">transparent</span><span class="punctuation punctuation_terminator punctuation_terminator_rule punctuation_terminator_rule_css">;</span></span>
<span class="punctuation punctuation_section punctuation_section_property-list punctuation_section_property-list_css">}</span></span>

</span></pre>
<p>Note, that if you adjust the <strong>width</strong> on the <strong>label</strong> style you will also need to adjust the left padding on your submit fieldset accordingly.</p>
<p><img src="/c-blog///mnt/w0205/d37/s38/b0295d5f/www/cavas.ca//c-blog//wp-content/uploads/2008/04/submit_button_aligned_with_fields.png" alt="Submit button aligned with fields" height="259" width="466"></p>
<p>By now you&#8217;re probably thinking this is a heck of a lot of trouble, and you would be right, it is!  However, with changes you&#8217;ve made to scaffold.css will be applied to all of your forms where you adjust the markup as above.</p>
<p>Ideally, it would be great to have a scaffold generator plugin that automatically creates accessible markup&#8230; but I&#8217;ll leave that for a future post.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/stylishrails.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/stylishrails.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/stylishrails.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/stylishrails.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/stylishrails.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/stylishrails.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/stylishrails.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/stylishrails.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/stylishrails.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/stylishrails.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/stylishrails.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/stylishrails.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stylishrails.wordpress.com&blog=4165759&post=5&subd=stylishrails&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://stylishrails.wordpress.com/2008/04/04/stylish-rails/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4b7cfb0c6687a6d7833ccc4482b468a0?s=96&#38;d=identicon" medium="image">
			<media:title type="html">chrisjschmitt</media:title>
		</media:content>

		<media:content url="/c-blog///mnt/w0205/d37/s38/b0295d5f/www/cavas.ca//c-blog//wp-content/uploads/2008/04/basic_style.png" medium="image">
			<media:title type="html">Basic style</media:title>
		</media:content>

		<media:content url="/c-blog///mnt/w0205/d37/s38/b0295d5f/www/cavas.ca//c-blog//wp-content/uploads/2008/04/form_with_accessible_markup.png" medium="image">
			<media:title type="html">Form with accessible markup</media:title>
		</media:content>

		<media:content url="/c-blog///mnt/w0205/d37/s38/b0295d5f/www/cavas.ca//c-blog//wp-content/uploads/2008/04/field_elements_aligned.png" medium="image">
			<media:title type="html">Field elements aligned</media:title>
		</media:content>

		<media:content url="/c-blog///mnt/w0205/d37/s38/b0295d5f/www/cavas.ca//c-blog//wp-content/uploads/2008/04/submit_button_aligned_with_fields.png" medium="image">
			<media:title type="html">Submit button aligned with fields</media:title>
		</media:content>
	</item>
		<item>
		<title>Protected: Friends and family</title>
		<link>http://stylishrails.wordpress.com/2008/01/05/freinds-and-family/</link>
		<comments>http://stylishrails.wordpress.com/2008/01/05/freinds-and-family/#comments</comments>
		<pubDate>Sat, 05 Jan 2008 23:28:11 +0000</pubDate>
		<dc:creator>Chris Schmitt</dc:creator>
				<category><![CDATA[Friends and Family]]></category>

		<guid isPermaLink="false">http://cavas.ca/v-blog/2008/01/05/freinds-and-family/</guid>
		<description><![CDATA[There is no excerpt because this is a protected post.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stylishrails.wordpress.com&blog=4165759&post=14&subd=stylishrails&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><form action="http://stylishrails.wordpress.com/wp-pass.php" method="post">
<p>This post is password protected. To view it please enter your password below:</p>
<p><label for="pwbox-14">Password:<br />
<input name="post_password" id="pwbox-14" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="Submit" /></p></form>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/stylishrails.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/stylishrails.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/stylishrails.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/stylishrails.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/stylishrails.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/stylishrails.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/stylishrails.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/stylishrails.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/stylishrails.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/stylishrails.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/stylishrails.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/stylishrails.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stylishrails.wordpress.com&blog=4165759&post=14&subd=stylishrails&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://stylishrails.wordpress.com/2008/01/05/freinds-and-family/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4b7cfb0c6687a6d7833ccc4482b468a0?s=96&#38;d=identicon" medium="image">
			<media:title type="html">chrisjschmitt</media:title>
		</media:content>
	</item>
		<item>
		<title>Protected: Travels in &#8216;07</title>
		<link>http://stylishrails.wordpress.com/2008/01/05/travels-in-07/</link>
		<comments>http://stylishrails.wordpress.com/2008/01/05/travels-in-07/#comments</comments>
		<pubDate>Sat, 05 Jan 2008 23:26:44 +0000</pubDate>
		<dc:creator>Chris Schmitt</dc:creator>
				<category><![CDATA[Friends and Family]]></category>

		<guid isPermaLink="false">http://cavas.ca/v-blog/2008/01/05/travels-in-07/</guid>
		<description><![CDATA[There is no excerpt because this is a protected post.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stylishrails.wordpress.com&blog=4165759&post=13&subd=stylishrails&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><form action="http://stylishrails.wordpress.com/wp-pass.php" method="post">
<p>This post is password protected. To view it please enter your password below:</p>
<p><label for="pwbox-13">Password:<br />
<input name="post_password" id="pwbox-13" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="Submit" /></p></form>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/stylishrails.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/stylishrails.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/stylishrails.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/stylishrails.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/stylishrails.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/stylishrails.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/stylishrails.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/stylishrails.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/stylishrails.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/stylishrails.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/stylishrails.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/stylishrails.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stylishrails.wordpress.com&blog=4165759&post=13&subd=stylishrails&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://stylishrails.wordpress.com/2008/01/05/travels-in-07/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4b7cfb0c6687a6d7833ccc4482b468a0?s=96&#38;d=identicon" medium="image">
			<media:title type="html">chrisjschmitt</media:title>
		</media:content>
	</item>
		<item>
		<title>Protected: Eating our way through Christmas</title>
		<link>http://stylishrails.wordpress.com/2008/01/05/eating-our-way-through-christmas-2/</link>
		<comments>http://stylishrails.wordpress.com/2008/01/05/eating-our-way-through-christmas-2/#comments</comments>
		<pubDate>Sat, 05 Jan 2008 23:26:22 +0000</pubDate>
		<dc:creator>Chris Schmitt</dc:creator>
				<category><![CDATA[Friends and Family]]></category>

		<guid isPermaLink="false">http://cavas.ca/v-blog/2008/01/05/eating-our-way-through-christmas-2/</guid>
		<description><![CDATA[There is no excerpt because this is a protected post.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stylishrails.wordpress.com&blog=4165759&post=12&subd=stylishrails&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><form action="http://stylishrails.wordpress.com/wp-pass.php" method="post">
<p>This post is password protected. To view it please enter your password below:</p>
<p><label for="pwbox-12">Password:<br />
<input name="post_password" id="pwbox-12" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="Submit" /></p></form>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/stylishrails.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/stylishrails.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/stylishrails.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/stylishrails.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/stylishrails.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/stylishrails.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/stylishrails.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/stylishrails.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/stylishrails.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/stylishrails.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/stylishrails.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/stylishrails.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stylishrails.wordpress.com&blog=4165759&post=12&subd=stylishrails&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://stylishrails.wordpress.com/2008/01/05/eating-our-way-through-christmas-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4b7cfb0c6687a6d7833ccc4482b468a0?s=96&#38;d=identicon" medium="image">
			<media:title type="html">chrisjschmitt</media:title>
		</media:content>
	</item>
		<item>
		<title>Fun with Ruby and Rails</title>
		<link>http://stylishrails.wordpress.com/2008/01/05/my-first-post/</link>
		<comments>http://stylishrails.wordpress.com/2008/01/05/my-first-post/#comments</comments>
		<pubDate>Sat, 05 Jan 2008 15:40:10 +0000</pubDate>
		<dc:creator>Chris Schmitt</dc:creator>
				<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://cavas.ca/c-blog/?p=8</guid>
		<description><![CDATA[This site is dedicated to those of you who are thrilled by what the Internet and the web offers and are keen to learn about web development.  It&#8217;s for people that want to do more than just use the web, you want to be part of it, you want to build it!  It&#8217;s [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stylishrails.wordpress.com&blog=4165759&post=4&subd=stylishrails&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This site is dedicated to those of you who are thrilled by what the Internet and the web offers and are keen to learn about web development.  It&#8217;s for people that want to do more than just use the web, you want to be part of it, you want to build it!  It&#8217;s for people that love coding and have an insatiable appetite for learning.</p>
<p>My interest in web development started when I had a idea for a social website based on the Google maps API.  While I had some programming experience it was drastically in need of a major update.  I&#8217;m still in awe in regard to how much a web developer needs to know.  I quickly discovered that I not only needed to learn HTML and CSS but also Javascript, Unix, Subversion, hosting, APIs, text editors and so on.  As if that wasn&#8217;t enough I added the fantastic web framework Ruby on Rails to my list of things to learn.</p>
<p>While I never really got my Goggle application of the ground (but I will one day), I did finally get my first Rails application up and running: giftmylist.com. It&#8217;s very basic (it&#8217;s only designed for my immediate family to use) but it&#8217;s functional.</p>
<p>I plan to use this blog to record my journey as I discover the wonderful world of web 2.0 development with Ruby on Rails and Javascript, sprinkled with a little HTML, CSS and who knows what else.</p>
<p>Enjoy!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/stylishrails.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/stylishrails.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/stylishrails.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/stylishrails.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/stylishrails.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/stylishrails.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/stylishrails.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/stylishrails.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/stylishrails.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/stylishrails.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/stylishrails.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/stylishrails.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stylishrails.wordpress.com&blog=4165759&post=4&subd=stylishrails&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://stylishrails.wordpress.com/2008/01/05/my-first-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4b7cfb0c6687a6d7833ccc4482b468a0?s=96&#38;d=identicon" medium="image">
			<media:title type="html">chrisjschmitt</media:title>
		</media:content>
	</item>
	</channel>
</rss>