<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Richard O&#039;Neill &#187; CSS</title>
	<atom:link href="http://richardoneill.com.au/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://richardoneill.com.au</link>
	<description>Web developer / Web designer / Photographer</description>
	<lastBuildDate>Tue, 03 Apr 2012 10:08:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>Draggable Windows with Javascript</title>
		<link>http://richardoneill.com.au/2007/07/draggable-windows-with-javascript/</link>
		<comments>http://richardoneill.com.au/2007/07/draggable-windows-with-javascript/#comments</comments>
		<pubDate>Fri, 27 Jul 2007 16:22:35 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[A window is essentially just a floating div. We can make the div draggable using the Script.aculo.us Javascript library. First, we need to create the window div. Here is the CSS I used. .window { &#160;&#160;background: #d8e7fe; &#160;&#160;position: absolute; &#160;&#160;top: 200px; &#160;&#160;left: 200px; &#160;&#160;width: 350px; &#160;&#160;padding: 1px; &#160;&#160;-moz-border-radius: 7px; &#160;&#160;border: 2px solid #21416d; } .window [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><a href="/misc/jswindow.html"><img src="/img/articles/jswindow.jpg" alt="Javascript Window" /></a>
<p>A window is essentially just a floating div. We can make the div draggable using the <a href="http://script.aculo.us">Script.aculo.us</a> Javascript library.</p>
<p>First, we need to create the window div. Here is the CSS I used.</p>
<p><code><br />
.window {<br />
&nbsp;&nbsp;background: #d8e7fe;<br />
&nbsp;&nbsp;position: absolute;<br />
&nbsp;&nbsp;top: 200px;<br />
&nbsp;&nbsp;left: 200px;<br />
&nbsp;&nbsp;width: 350px;<br />
&nbsp;&nbsp;padding: 1px;<br />
&nbsp;&nbsp;-moz-border-radius: 7px;<br />
&nbsp;&nbsp;border: 2px solid #21416d;</p>
<p>}<br />
.window h1 {<br />
&nbsp;&nbsp;-moz-border-radius-topleft: 5px;<br />
&nbsp;&nbsp;-moz-border-radius-topright: 5px;<br />
&nbsp;&nbsp;padding: 6px;<br />
&nbsp;&nbsp;display: block;<br />
&nbsp;&nbsp;background-color: #9cc6ff;<br />
&nbsp;&nbsp;font-size: 13px;<br />
&nbsp;&nbsp;margin: 0px;<br />
}<br />
</code>
<p>And here is the HTML markup.</p>
<p><code><br />
&lt;div id="mywindow" class="window"&gt;<br />
&nbsp;&nbsp;&lt;h1&gt;Example Window&lt;/h1&gt;<br />
&nbsp;&nbsp;&lt;p&gt;Click and drag this window around the webpage.&lt;/p&gt;<br />
&lt;/div&gt;<br />
</code>
<p>I&#8217;ve used &#8216;<a href="http://developer.mozilla.org/en/docs/CSS:-moz-border-radius">-moz-border-radius</a>&#8216; for rounded corners because I&#8217;m lazy. You&#8217;ll need to use corner images if you want rounded corners that work in more than one browser.</p>
<p>Now all that&#8217;s left to do is the javascript. As I said before, we&#8217;ll use the <a href="http://script.aculo.us">Script.aculo.us</a> library which includes a handy Draggable function. Theres a quick guide on how to install the library <a href="http://wiki.script.aculo.us/scriptaculous/show/Usage">here</a>.</p>
<p>Once you&#8217;ve got the library installed, add this short Javascript snippet to the <em>head</em> section of your document.</p>
<p><code><br />
&lt;script type="text/javascript"&gt;</p>
<p>	function init(){<br />
	&nbsp;&nbsp;new Draggable('mywindow');<br />
	}</p>
<p>	Event.observe(window, 'load', init, false);</p>
<p>&lt;/script&gt;</code>
<p>When the page loads, the init() function is called, which tells the library to make the div &#8216;mywindow&#8217; draggable!</p>
<p><strong><a href="/misc/jswindow.html">View the finished product.</strong></a></p>
]]></content:encoded>
			<wfw:commentRss>http://richardoneill.com.au/2007/07/draggable-windows-with-javascript/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Designing Login Forms</title>
		<link>http://richardoneill.com.au/2007/07/designing-login-forms/</link>
		<comments>http://richardoneill.com.au/2007/07/designing-login-forms/#comments</comments>
		<pubDate>Wed, 18 Jul 2007 18:03:09 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Since my last web design article was so popular, I decided to write a similar one. This time we&#8217;ll start with an ordinary looking login form. The usability experts reading this will immediately notice a few design flaws. For small forms like this one, field labels should be aligned to the right to minimize the [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Since my <a href="/articles/improving_the_user_interface/">last web design article</a> was so popular, I decided to write a similar one.</p>
<p>This time we&#8217;ll start with an ordinary looking login form. The usability experts reading this will immediately notice a few design flaws.</p>
<p><img src="/img/articles/loginbox/1.jpg" alt="memberlogin" />
<p>For small forms like this one, field labels should be aligned to the right to minimize the distance your user&#8217;s eyes must travel. I&#8217;ve also moved the link and submit button directly under the input boxes.</p>
<p><img src="/img/articles/loginbox/2.jpg" alt="memberlogin" />
<p>I&#8217;ve encapsulated the form in a fieldset (&lt;fieldset&gt;&lt;/fieldset&gt;) and replaced the title with a legend (&lt;legend&gt;&lt;/legend&gt;). This isn&#8217;t normally nessesary but it helped define the form within all the surrounding white space.</p>
<p><img src="/img/articles/loginbox/3.jpg" alt="memberlogin" />
<p>Styling the legend&#8230;</p>
<p><img src="/img/articles/loginbox/4.jpg" alt="memberlogin" />
<p>I&#8217;ve added a yellow background and border to the fieldset and given it some rounded corners. I also moved the submit button to the bottom right so less eye movement is required by the user.</p>
<p><img src="/img/articles/loginbox/5.jpg" alt="memberlogin" /></p>
]]></content:encoded>
			<wfw:commentRss>http://richardoneill.com.au/2007/07/designing-login-forms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Designing Message Boxes</title>
		<link>http://richardoneill.com.au/2007/05/designing-message-boxes/</link>
		<comments>http://richardoneill.com.au/2007/05/designing-message-boxes/#comments</comments>
		<pubDate>Thu, 31 May 2007 18:16:05 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I wrote the following article for the latest AussieHQ newsletter. Message boxes are a great way to inform your users but can often be the cause of much confusion. If your user fills out a form with incorrect input and your error message is displayed at the bottom of the page, there&#8217;s a good chance [...]]]></description>
			<content:encoded><![CDATA[<p></p><p style="font-weight: bold">I wrote the following article for the latest <a href="http://www.aussiehq.com.au">AussieHQ</a> newsletter.</p>
<p>Message boxes are a great way to inform your users but can often be the cause of much confusion. If your user fills out a form with incorrect input and your error message is displayed at the bottom of the page, there&#8217;s a good chance your user will be left sitting there wondering why nothing happened.</p>
<p>To design an effective message box, I suggest following these guidelines:</p>
<ul>
<li>Use icons</li>
<li>If it&#8217;s important, make sure it&#8217;s eye catching</li>
<li>It has to be short, to the point and readable</li>
<li>Use Colour coding</li>
</ul>
<p>Using the above guidelines, we can design a great set of message boxes for a website. I&#8217;ve used free icons from the <a href="http://www.famfamfam.com/lab/icons/silk/previews/index_abc.png">silk icon set</a> at <a href="http://www.famfamfam.com">famfamfam.com</a>.</p>
<h3>Information</h3>
<p>Displaying helpful information to users is a great idea, but it shouldn&#8217;t distract the user from their main goal. This is why information boxes are generally a washed out blue colour.</p>
<p><img src="/img/articles/messagebox-information.jpg" alt="information" /><br />
<h3>Success</h3>
<p>Green is a friendly colour, so we use it to report success.</p>
<p><img src="/img/articles/messagebox-success.jpg" alt="success" /><br />
<h3>Warning</h3>
<p>Yellow is great for invalid input messages, because it attracts attention, but it&#8217;s not necessarily a &#8220;bad&#8221; colour.</p>
<p><img src="/img/articles/messagebox-warning.jpg" alt="warning" /><br />
<h3>Error</h3>
<p>In theory, a user should never see this box. Red is often used to indicate danger or emergency, so it&#8217;s the perfect colour for a fatal error.</p>
<p><img src="/img/articles/messagebox-error.jpg" alt="error" />
<p>Here is the CSS used to create a message box (thanks to <a href="http://www.bioneural.net/2006/04/01/create-a-valid-css-alert-message/">bioneural.net</a>.)</p>
<p><code><br />
			.warning {<br />
			&nbsp;&nbsp;	background: #fff6bf url('img/warning.jpg') center no-repeat;<br />
			&nbsp;&nbsp;	background-position: 15px 50%;<br />
			&nbsp;&nbsp;	text-align: left;<br />
			&nbsp;&nbsp;	padding: 5px 20px 5px 45px;<br />
			&nbsp;&nbsp;	border-top: 2px solid #ffd324;<br />
			&nbsp;&nbsp;	border-bottom: 2px solid #ffd324;<br />
			}<br />
		</code>
<p>And the HTML:</p>
<p><code>&lt;div class="warning"&gt;Invalid input message here.&lt;/div&gt;</code>
<p>I would also like to point out, that an effective error message should be placed above the fold, so it&#8217;s the first thing the user reads.</p>
<p>If you would like to learn how to write good error messages, check out <a href="http://www.useit.com/alertbox/20010624.html">Error Message Guidelines</a> by <a href="http://en.wikipedia.org/wiki/Jakob_Nielsen_%28usability_consultant%29">Jakob Nielson</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://richardoneill.com.au/2007/05/designing-message-boxes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Make Your Sign Up Page Fun</title>
		<link>http://richardoneill.com.au/2007/04/make-your-sign-up-page-fun/</link>
		<comments>http://richardoneill.com.au/2007/04/make-your-sign-up-page-fun/#comments</comments>
		<pubDate>Tue, 24 Apr 2007 17:34:35 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Looking at big-boards.com, a website which &#8220;tracks the most active message boards and forums on the web.&#8221;, we can easily see that the most popular community on the web right now is Gaia Online, with over 7 millions members! I&#8217;m sure there are other factors which contributed to the success of Gaia Online, but I [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Looking at <a href="http://www.big-boards.com/">big-boards.com</a>, a website which &#8220;tracks the most active message boards and forums on the web.&#8221;, we can easily see that the most popular community on the web right now is <a href="http://www.gaiaonline.com/">Gaia Online</a>, with over 7 millions members!</p>
<p><a href="http://www.big-boards.com/"><img src="/img/articles/big-boards.jpg" style="border: 0px;" alt="big-boards.com" /></a>
<p>I&#8217;m sure there are other factors which contributed to the success of Gaia Online, but I bet a lot of it had to with it&#8217;s distinct <a href="http://www.gaiaonline.com/register">registration process</a>.</p>
<p><a href="http://www.gaiaonline.com/register"><img src="/img/articles/gaia_register.jpg" style="border: 0px;" alt="big-boards.com" /></a>
<p>New users can customize their own avatar by changing their gender, hair, eyes, mouth and outfit. Once the user is happy with their character/avatar, they continue to the contact details page. </p>
<p>This is a great way to layout a registration process, because the user is not confronted with a boring form after deciding to register. The user won&#8217;t be hesitant when asked to fill out a small form after they&#8217;ve just spent 10 minutes customizing their avatar. </a>
<p>If you&#8217;re not getting your desired sign up rate, have a look at your site&#8217;s registration page, imagine if it was that fun.</p>
]]></content:encoded>
			<wfw:commentRss>http://richardoneill.com.au/2007/04/make-your-sign-up-page-fun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Favourite Login Pages</title>
		<link>http://richardoneill.com.au/2007/04/favourite-login-pages/</link>
		<comments>http://richardoneill.com.au/2007/04/favourite-login-pages/#comments</comments>
		<pubDate>Thu, 05 Apr 2007 15:28:50 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I&#8217;ve come up with a list of my favourite login pages with screen shots. If you&#8217;re creating your own web application, you may find this interesting. Continue reading&#8230; [END] Feel free to add your own!]]></description>
			<content:encoded><![CDATA[<p></p><p>I&#8217;ve come up with a list of my favourite login pages with screen shots. If you&#8217;re creating your own web application, you may find this interesting.</p>
<p><a href="/articles/favourite_login_pages/">Continue reading&#8230;</a></p>
<p>[END]</p>
<p><a href="http://goplan.org/account/login"><img src="/img/articles/loginpages/login-goplan.jpg" alt="goplan" /></a></p>
<p><a href="http://www.craythur.com/"><img src="/img/articles/loginpages/login-craythur.jpg" alt="craythur" /></a></p>
<p><a href="http://vbulletin.com"><img src="/img/articles/loginpages/login-vbulletin.jpg" alt="vbulletin" /></a></p>
<p><a href="http://www.wridea.com/login.php"><img src="/img/articles/loginpages/login-wridea.jpg" alt="wridea" /></a></p>
<p><a href="http://demo.zimbra.com/zimbra/"><img src="/img/articles/loginpages/login-zimbra.jpg" alt="zimbra" /></a></p>
<p><a href="http://www.mailchimp.com/login.phtml"><img src="/img/articles/loginpages/login-mailchimp.jpg" alt="mailchimp" /></a></p>
<p><a href="http://www.radiantcms.com/demo/"><img src="/img/articles/loginpages/login-radiant.jpg" alt="radiant" /></a></p>
<p>Feel free to add your own!</p>
]]></content:encoded>
			<wfw:commentRss>http://richardoneill.com.au/2007/04/favourite-login-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Diagrams</title>
		<link>http://richardoneill.com.au/2007/01/css-diagrams/</link>
		<comments>http://richardoneill.com.au/2007/01/css-diagrams/#comments</comments>
		<pubDate>Tue, 30 Jan 2007 10:23:59 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[CSS Diagrams via CSS-Techniques You Couldn&#8217;t Live Without. &#8220;I wanted the diagrams to contain links to other diagrams, and since the rest of the text was in a fluid layout where the user could alter the text size, it would be nice to have the same features in the diagrams. But you can&#8217;t draw diagrams [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><img src="/img/articles/cssdiagrams.jpg" style="margin-right: 10px; float: left;" alt="CSS Diagrams" />
<p><a href="http://www.surfare.net/~toolman/temp/diagram.html">CSS Diagrams</a> via <a href="http://www.smashingmagazine.com/2007/01/19/53-css-techniques-you-couldnt-live-without/">CSS-Techniques You Couldn&#8217;t Live Without</a>.</p>
<blockquote><p>&#8220;I wanted the diagrams to contain links to other diagrams, and since the rest of the text was in a fluid layout where the user could alter the text size, it would be nice to have the same features in the diagrams. But you can&#8217;t draw diagrams with HTML and CSS, right? I mean, right?&#8221;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://richardoneill.com.au/2007/01/css-diagrams/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

