<?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>Design Woop &#124; The Web Design and Development Blog &#187; Tutorials</title>
	<atom:link href="http://designwoop.com/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://designwoop.com</link>
	<description>The Web design blog brought to you by Stu Greenham</description>
	<lastBuildDate>Mon, 06 Sep 2010 11:53:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Give Your Website A Custom iPhone Icon With/Without The Gloss Effect</title>
		<link>http://designwoop.com/2010/05/give-your-website-a-custom-iphone-icon-withwithout-the-gloss-effect/</link>
		<comments>http://designwoop.com/2010/05/give-your-website-a-custom-iphone-icon-withwithout-the-gloss-effect/#comments</comments>
		<pubDate>Tue, 25 May 2010 21:29:36 +0000</pubDate>
		<dc:creator>Stu Greenham</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://designwoop.com/?p=1780</guid>
		<description><![CDATA[What is becoming just as popular is to add a custom iPhone icon that will appear on your iPhone's Home Screen. This post will show you how to do this and how you can customise it so that it doesn't have the default gloss effect.]]></description>
			<content:encoded><![CDATA[<p>When creating a website, it is more common then not now that we will add a custom favicon that will display in the browser tab alongside the website page title, this is fairly simple in fact only one line of code as below:</p>
<pre class="brush: php;">
&lt;link rel=&quot;icon&quot; href=&quot;/favicon.png&quot; type=&quot;image/vnd.microsoft.icon&quot; /&gt;
</pre>
<p>What is becoming just as popular is to add a custom iPhone icon that will appear on your iPhone&#8217;s Home Screen. Again this is very straight forward with one line of code in between your header tags, as shown below:</p>
<pre class="brush: php;">
&lt;link rel=&quot;apple-touch-icon&quot; href=&quot;/iphone_icon.png&quot;/&gt;
</pre>
<p>If you use an image of anything around 50px by 50px in size that will be, as the iPhone will resize and round off the corners for you on the fly. To add your site to your Home Screen, simply visit the webpage on your iPhone, then select the <strong>plus</strong> sign, followed by <strong>Add to Home Screen</strong>. You will get a prompt now and your icon should show, to finish, simply click add. </p>
<p>You will now be taken to your Home Screen where the icon should now be appearing. Here is the example below for Design Woop:</p>
<p><img src="http://designwoop.com/uploads/2010/05/photo-1.png" alt="" title="Normal Icon" width="320" height="480" class="alignnone size-full wp-image-1782" /></p>
<p>Now if your a picky sod like me, you will notice the horrible gloss effect that Apple adds to the icon by default. Until today I was using jQTouch to remove this until I came across <a href="http://developer.apple.com/safari/library/documentation/appleapplications/reference/safariwebcontent/ConfiguringWebApplications/ConfiguringWebApplications.html">this page on Apple.com</a> which brought my attention to the additional -precomposed option. This stops mobile Safari adding any effects to the icon which is just what I was after! The line of code we use for this is now:</p>
<pre class="brush: php;">
&lt;link rel=&quot;apple-touch-icon-precomposed&quot; href=&quot;/iphone_icon.png&quot;/&gt;
</pre>
<p>After refreshing the page and re-saving it to my iPhone Home Screen I was left with the much nicer&#8230;</p>
<p><img src="http://designwoop.com/uploads/2010/05/photo-2.png" alt="" title="iPhone 2" width="320" height="480" class="alignnone size-full wp-image-1784" /></p>
<p>I hope you agree with me but I think the no gloss icons are nicer!</p>
<h2  class="related_post_title">Here are some related <em>posts:</em></h2><ul class="related_post"><li><a href="http://designwoop.com/2010/08/popout-details-on-hover-w-css/" title="Popout Details on Hover w/ CSS">Popout Details on Hover w/ CSS</a></li><li><a href="http://designwoop.com/2010/07/supersize-that-background-please/" title="Supersize that Background, Please!">Supersize that Background, Please!</a></li><li><a href="http://designwoop.com/2010/07/code-an-email-newsletter-from-psd-to-html/" title="Code an Email Newsletter from PSD to HTML">Code an Email Newsletter from PSD to HTML</a></li><li><a href="http://designwoop.com/2010/07/iphone-made-with-css3-only/" title="iPhone Made With CSS3 Only">iPhone Made With CSS3 Only</a></li><li><a href="http://designwoop.com/2010/06/jquery-text-change-event/" title="jQuery Text Change Event">jQuery Text Change Event</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://designwoop.com/2010/05/give-your-website-a-custom-iphone-icon-withwithout-the-gloss-effect/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Integrating Lessn with WordPress to Create Future Proof Short URL&#8217;s</title>
		<link>http://designwoop.com/2010/04/integrating-lessn-with-wordpress-to-create-future-proof-short-urls/</link>
		<comments>http://designwoop.com/2010/04/integrating-lessn-with-wordpress-to-create-future-proof-short-urls/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 14:31:40 +0000</pubDate>
		<dc:creator>Stu Greenham</dc:creator>
				<category><![CDATA[All Posts]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://designwoop.com/?p=1664</guid>
		<description><![CDATA[It seem's like everyone is using Bit.ly these days, and until about a week ago, I was too! One problem is that all these links were creating are relying on Mr Bit.ly hanging around. Okay okay, its unlikely that the popular shortener will go anywhere but I am asking "What If?".]]></description>
			<content:encoded><![CDATA[<p>It seem&#8217;s like everyone is using Bit.ly these days, and until about a week ago, I was too! One problem is that all these links were creating are relying on Mr Bit.ly hanging around. Okay okay, its unlikely that the popular shortener will go anywhere but I am asking &#8220;What If?&#8221;.</p>
<p>I decided to convert to Shaun Inman&#8217;s simple URL shortener <a href="http://shauninman.com/archive/2009/08/17/less_n" rel="nofollow">Lessn</a>, which is a self hosted script available for free! Now I have this handling my links and have managed to not only integrate it with my WordPress install but I can also track my views via <a href="http://haveamint.com">Mint</a>, here&#8217;s how&#8230;</p>
<h4>Setting Up Lessn</h4>
<ol>
<li>Create a new database on your Web Host</li>
<li>Download <strong>Lessn</strong> <a href="http://www.shauninman.com/assets/downloads/lessn.zip" rel="nofollow">here</a> and unzip the files.</li>
<li>Open <strong>config.php</strong> and amend to include your database details, a login username and password and save the file.</li>
<li>Upload the full lessn folder via FTP.</li>
<li>Visit <strong>http://domain.com/lessn/-/</strong> to start shortening URL&#8217;s*</li>
</ol>
<p>*Please note that the lessn folder can and probably should be renamed to something shorter. For example, I use /s/-, which gains me an extra 4 letters. Make sure you rename the folder before step 5.</p>
<h4>Setting Up WordPress To Work with Lessn</h4>
<p>Now we have Lessn working and you have a self hosted method for creating short URL&#8217;s not relying on anyone else, we can integrate it with WordPress thanks to the <a href="http://wordpress.org/extend/plugins/wp-lessn/" rel="nofollow">WP-Lessn</a> plugin by Jay Robinson. This plugin simply creates a short URL using Lessn when a post is published and saves it to a <a href="http://designwoop.com/2008/12/wp-custom-fields/">custom field</a> that can then be displayed on your post page wherever your wish.</p>
<ol>
<li>Download the plugin <a href="http://wordpress.org/extend/plugins/wp-lessn/" rel="nofollow">here</a>.</li>
<li>Upload <strong>wp-lessn</strong> directory to <strong>/wp-content/plugins/</strong> directory.</li>
<li>Activate the plugin.</li>
<li>Go to the <strong>WP Lessn</strong> submenu underneath the <strong>Plugins</strong> menu.</li>
<li>Enter the location of your Lessn installation (eg. http://domain.com/lessn/-/).</li>
<li>Enter your Lessn API key, which can be found on your Lessn homepage (see image below).</li>
<li>Click Save</li>
</ol>
<p><img src="http://designwoop.com/uploads/2010/04/api-example.png" alt="API Example" title="API Example" width="428" height="154" class="alignnone size-full wp-image-1677" /></p>
<p>Now, fingers crossed if everything has been setup right then when you save your next post you will find a custom field type called <strong>wp_lessnd_url</strong> just under the trackbacks section on your edit post page. </p>
<h4>Integrating Lessn Into Your Post Pages</h4>
<p>Next step is to use this within your site to allow users to tweet your post using the shorter URL. To do this we will need to first add a <em>Tweet This</em> button or link to your single page template linking it straight to Twitter like this&#8230;</p>
<pre class="brush: php;">
&lt;a href=&quot;http://twitter.com/home?status=STATUS TO GO HERE&quot; title=&quot;Tweet this post&quot;&gt;Tweet This Post&lt;/a&gt;
</pre>
<p>Notice where I have put <strong>STATUS TO GO HERE</strong>, this is where we will need to add the post title and the short url that users can then Tweet straight to Twitter. To add the title this is pretty straight forward, we just use <a href="http://codex.wordpress.org/Template_Tags/the_title" rel="nofollow">the_title</a> template tag that comes with WordPress, like so&#8230;.</p>
<pre class="brush: php;">
&lt;a href=&quot;http://twitter.com/home?status=&lt;?php the_title(); ?&gt;&quot; title=&quot;Tweet this post&quot;&gt;Tweet This Post&lt;/a&gt;
</pre>
<p>Next step is to add the short URL that users will see on Twitter and be able to click to see the post. Now we call the wp_lessnd_url to display this but we also need to add a backup incase there isn&#8217;t a short URL setup for this post. For this backup we will use <a href="http://codex.wordpress.org/Template_Tags/the_permalink" rel="nofollow">the_permalink</a> template tag.  Using a simple if statement, this is how we achieve it&#8230;</p>
<pre class="brush: php;">
&lt;a href=&quot;http://twitter.com/home?status=&lt;?php the_title(); ?&gt; &lt;?php if(get_post_meta($post-&gt;ID, &quot;wp_lessnd_url&quot;, true)) { echo get_post_meta($post-&gt;ID, &quot;wp_lessnd_url&quot;, true); } else { the_permalink(); } ?&gt;&quot; title=&quot;Tweet this post&quot;&gt;Tweet This Post&lt;/a&gt;
</pre>
<p>Thats all thats to it! I know bit.ly links are nice and compact but for me, been able to shrink from&#8230;</p>
<pre class="brush: plain;">

http://designwoop.com/2010/04/show-me-whatcha-got-html-5-vs-flash-showcase/
</pre>
<p>To this&#8230;</p>
<pre class="brush: plain;">

http://designwoop.com/s/3a
</pre>
<p>Mean&#8217;s I can still promote my brand Design Woop but still allow room for the post title in my Tweets. Now when I click on the <em>Tweet This</em> button that I created previously I get taken to Twitter and the post title and short URL are already there and I can just hit Tweet! Boom!</p>
<p><img src="http://designwoop.com/uploads/2010/04/Twitter-Example.png" alt="Twitter Example" title="Twitter Example" width="428" height="107" class="alignnone size-full wp-image-1688" /></p>
<h4>Have Mint?</h4>
<p>If you also have Mint installed on your site then you can install Shaun Inmans <a href="http://www.haveamint.com/peppermill/pepper/97/lessn/" rel="nofollow">Lessn Pepper</a> to allow tracking of each URL.</p>
<p>Let me know if you have any trouble installing Lessn Pepper as I won&#8217;t be going over it in this post. Any other questions or problems then leave a comment below.</p>
<h2  class="related_post_title">Here are some related <em>posts:</em></h2><ul class="related_post"><li><a href="http://designwoop.com/2010/04/how-to-make-your-theme-wordpress-3-0-compatible/" title="How To Make Your Theme WordPress 3.0 Compatible">How To Make Your Theme WordPress 3.0 Compatible</a></li><li><a href="http://designwoop.com/2010/04/how-to-add-twitter-anywhere-in-wordpress/" title="How to Add Twitter @anywhere in WordPress">How to Add Twitter @anywhere in WordPress</a></li><li><a href="http://designwoop.com/2010/02/how-to-integrate-google-buzz-into-your-wordpress-blog/" title="HOW TO: Integrate Google Buzz Into Your WordPress Blog">HOW TO: Integrate Google Buzz Into Your WordPress Blog</a></li><li><a href="http://designwoop.com/2009/06/displaying-your-latest-tweet/" title="Tutorial: Display your Latest Tweet on your Website">Tutorial: Display your Latest Tweet on your Website</a></li><li><a href="http://designwoop.com/2008/12/wp-custom-fields/" title="Working with Custom Fields in WP">Working with Custom Fields in WP</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://designwoop.com/2010/04/integrating-lessn-with-wordpress-to-create-future-proof-short-urls/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Favourite Links 3</title>
		<link>http://designwoop.com/2010/01/favourite-links-of-the-week-3/</link>
		<comments>http://designwoop.com/2010/01/favourite-links-of-the-week-3/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 20:20:00 +0000</pubDate>
		<dc:creator>Stu Greenham</dc:creator>
				<category><![CDATA[All Posts]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Freebies]]></category>
		<category><![CDATA[Inspiration]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://designwoop.com/?p=720</guid>
		<description><![CDATA[Time again for another round of fun and exciting links! If you have any you want featuring on next weeks roundup then let me know via Twitter (via @stugreenham). ]]></description>
			<content:encoded><![CDATA[<p>Time again for another round of fun and exciting links! We have free fonts, tutorials for image replacement, inspirational blog designs, comedy moustache mugs and a few more! If you have any you want featuring on next weeks roundup then let me know via Twitter (via <a href="http://twitter.com/stugreenham">@stugreenham</a>).</p>
<h4>Moustache Mugs!</h4>
<p>Visit Source: <a href="http://www.peteribruegger.com/index.php?/projects/dalian-moustache-mug-online-shop/">http://www.peteribruegger.com</a></p>
<p>Safe to say this is on my next to buy list! I will no doubt be the coolest kid at work! Just need help deciding which one to go for?</p>
<p><a href="http://www.peteribruegger.com/index.php?/projects/dalian-moustache-mug-online-shop/"><img class="alignnone visit-link" src="http://designwoop.com/images/posts/links-3/mugshot.jpg" alt="Mug Shots" width="428" height="200" /></a></p>
<h4>20 Super Clean Fonts Perfect for Minimal Style Design</h4>
<p>Visit Source: <a href="http://webdesignledger.com/freebies/20-super-clean-fonts-perfect-for-minimal-style-design">http://webdesignledger.com</a></p>
<p>Web Design Ledger posted this great article showcasing 20 great font&#8217;s that are especially good for minimalistic designs. Another great point to make is they are all free! Go Nuts&#8230;</p>
<p><a href="http://webdesignledger.com/freebies/20-super-clean-fonts-perfect-for-minimal-style-design"><img class="alignnone visit-link" src="http://designwoop.com/images/posts/links-3/fonts.jpg" alt="20 Clean Fonts" width="428" height="274" /></a></p>
<h4>Chomp iPhone App</h4>
<p>Visit Source: <a href="http://chompapps.com/">http://chompapps.com</a></p>
<p>A new iPhone App that attempts to take on <a href="http://www.apple.com">Apple&#8217;s</a> app store genius feature. Called <a href="http://chompapps.com/">Chomp</a>, it is based around giving you app recommendations based on the reviews you give other apps. Probably not the best explanation their but its free so give it a try!</p>
<p><a href="http://chompapps.com/"><img class="alignnone visit-link" src="http://designwoop.com/images/posts/links-3/chomp.jpg" alt="Chomp iPhone App" width="428" height="267" /></a></p>
<h4>Nine Techniques for CSS Image Replacement</h4>
<p>Visit Source: <a href="http://css-tricks.com/css-image-replacement/">http://css-tricks.com</a></p>
<p><a href="http://twitter.com/chriscoyier">Chris Coyier</a> wrote this great tutorial article I came across looking at nine techniques for CSS Image Replacement. I myself was only aware of a couple of these so its good read for anyone who actively uses this technique to freshen up on possibly better methods of doing the same thing.</p>
<p><a href="http://css-tricks.com/css-image-replacement/"><img class="alignnone visit-link" src="http://designwoop.com/images/posts/links-3/img-repl.jpg" alt="9 Image Replacement Techniques" width="428" height="259" /></a></p>
<h4>Better html anchor, a jquery script to slide the scrollbar</h4>
<p>Visit Source: <a href="http://www.position-absolute.com/articles/better-html-anchor-a-jquery-script-to-slide-the-scrollbar/">http://www.position-absolute.com</a></p>
<p>Great jQuery script that gives you a smooth page jump anchor effect replacing the standard jump to links. This is really cool and you will probably have seen in on various sites around, well now you can use it on your site too.</p>
<p><a href="http://www.position-absolute.com/articles/better-html-anchor-a-jquery-script-to-slide-the-scrollbar/"><img class="alignnone visit-link" src="http://designwoop.com/images/posts/links-3/jquery-anchor.jpg" alt="jQuery Anchor Script" width="428" height="190" /></a></p>
<h4>50 Most Amazing Beautiful Blog Designs</h4>
<p>Visit Source: <a href="http://creativenerds.co.uk/inspiration/50-most-amazing-beautiful-blog-designs/">http://creativenerds.co.uk</a></p>
<p>Creative Nerds posted this article showcasing 50 inspirational blog designs. Some great sites here and one to keep on record when your looking for some inspiration yourself!</p>
<p><a href="http://creativenerds.co.uk/inspiration/50-most-amazing-beautiful-blog-designs/"><img class="alignnone visit-link" src="http://designwoop.com/images/posts/links-3/tutorial9.jpg" alt="50 Amazing Blog Designs" width="428" height="313" /></a></p>
<h4>30 Gorgeous iPhone App Interfaces &amp; Icons</h4>
<p>Visit Source: <a href="http://iphone.appstorm.net/roundups/design/30-gorgeous-iphone-app-interfaces-icons/">http://iphone.appstorm.net</a></p>
<p>The Appstorm guys posted this article last week and for an aspiring future iPhone app developer (nice title indeed) its a keeper! The post looks at 30 apps all look amazing! Not only good for inspiration but there are some good apps I didn&#8217;t know about here so take a look!</p>
<p><a href="http://iphone.appstorm.net/roundups/design/30-gorgeous-iphone-app-interfaces-icons/"><img class="alignnone visit-link" src="http://designwoop.com/images/posts/links-3/30apps.jpg" alt="30 Gorgeous iPhone App Interfaces &amp; Icons" width="428" height="236" /></a></p>
<p>Right thats it for this week but be sure to check back next week! Tweet me @stugreenham if you find any interesting articles that I can use or you think is interesting and I will take a look!</p>
<h2  class="related_post_title">Here are some other <em>posts:</em></h2><ul class="related_post"><li><a href="http://designwoop.com/2010/05/lost-finale-explained-well/" title="Lost Finale Explained Well!">Lost Finale Explained Well!</a></li><li><a href="http://designwoop.com/2008/09/wordpress-xml-import-download/" title="WP .XML Test Data Import">WP .XML Test Data Import</a></li><li><a href="http://designwoop.com/2009/09/tutorial-display-your-latest-tweet-on-your-website-using-simplepie/" title="Tutorial: Display your Latest Tweet on your Website using SimplePie">Tutorial: Display your Latest Tweet on your Website using SimplePie</a></li><li><a href="http://designwoop.com/2009/06/displaying-your-latest-tweet/" title="Tutorial: Display your Latest Tweet on your Website">Tutorial: Display your Latest Tweet on your Website</a></li><li><a href="http://designwoop.com/2009/04/nerdpress-released/" title="(Nerd)Press Theme Released">(Nerd)Press Theme Released</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://designwoop.com/2010/01/favourite-links-of-the-week-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tutorial: Using CSS Shorthand in your Stylesheets</title>
		<link>http://designwoop.com/2010/01/using-css-shorthand-in-your-stylesheets/</link>
		<comments>http://designwoop.com/2010/01/using-css-shorthand-in-your-stylesheets/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 23:22:17 +0000</pubDate>
		<dc:creator>Stu Greenham</dc:creator>
				<category><![CDATA[All Posts]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[css shorthand]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://designwoop.com/?p=722</guid>
		<description><![CDATA[Using CSS Shorthand is great for reducing the lines of code and preventing us typing lots of duplicate lines of code in our stylesheet's, but how many of us use it? I notice on a lot of developers stylesheets that they have multiple lines of code where only one is needed and I don't really understand why! I guess it's a personal preference, but here is how you can start coding CSS in shorthand.]]></description>
			<content:encoded><![CDATA[<p>Using CSS Shorthand is great for reducing the lines of code and preventing us typing lots of duplicate lines of code in our stylesheet&#8217;s, but how many of us use it? I notice on a lot of developers stylesheets that they have multiple lines of code where only one is needed and I don&#8217;t really understand why! I guess it&#8217;s a personal preference, but here is how you can start coding CSS in shorthand.</p>
<h4>Margin and Padding</h4>
<p>You may currently be setting your margin/padding like this:</p>
<pre class="brush: css;">
.class-name {
   margin-top: 10px;
   margin-bottom: 10px;
   margin-right: 10px;
   margin-left: 10px;
}
</pre>
<p>Shorthand allows you to shrink these four lines down to just one. Think of the margin as four values in clockwise order Top, Right, Bottom, Left. In the above code we have assigned a margin of 10px to each individual side of the element, but what you can do is change the four lines to just one line using the <strong>margin</strong> property and assign it four values in the clockwise order I mentioned just before (top, right, bottom, left) leaving us with this:</p>
<pre class="brush: css;">
.class-name {
   margin: 10px 10px 10px 10px;
}
</pre>
<p>Taking this further we can again shrink this down even more depending on the margin values. We can group specific items together, such as Top / Bottom and Right / Left. Below are some examples of how you can shorthand margins in your css:</p>
<h5>Example 1</h5>
<ul>
<li>Top: 10px</li>
<li>Right: 15px</li>
<li>Bottom: 20px</li>
<li>Left: 15px</li>
</ul>
<p>This would be displayed using just three values because the left and right values are the same, so we just define <strong>top</strong>, <strong>right+left</strong> and <strong>bottom</strong> values, shown below:</p>
<pre class="brush: css;">
.class-name {
   margin: 10px 15px 20px;
}
</pre>
<h5>Example 2</h5>
<ul>
<li>Top: 10px</li>
<li>Right: 15px</li>
<li>Bottom: 10px</li>
<li>Left: 15px</li>
</ul>
<p>This can be displayed using just two values because both the <strong>top+bottom</strong> and <strong>right+left</strong> values are the same, shown below:</p>
<pre class="brush: css;">
.class-name {
   margin: 10px 15px;
}
</pre>
<h5>Example 3</h5>
<ul>
<li>Top: 10px</li>
<li>Right: 15px</li>
<li>Bottom: 10px</li>
<li>Left: 20px</li>
</ul>
<p>When in a situation where the <strong>top+bottom</strong> values are the same but the <strong>right+left</strong> values are different, we still have to display all four values as you cannot group the top and bottom values together because the left value would be read as if it was the bottom value. We can still use shorthand to display the css on one line, shown below:</p>
<pre class="brush: css;">
.class-name {
   margin: 10px 15px 10px 20px;
}
</pre>
<p>Right that&#8217;s margin&#8217;s covered and for padding it is exactly the same method. All you have to remember is which order the four values go in then its pretty much common sense from there.</p>
<h4>Backgrounds</h4>
<p>Background&#8217;s are again a popular property that you are likely to assign at least once on each of your stylesheets, sometimes multiple times in which case this will come in handy. When assigning a background you may set an element any number of the following properties:</p>
<pre class="brush: css;">
.class-name {
  background-color: #fff;
  background-image: url(image.gif);
  background-repeat: no-repeat;
  background-position: top left;
}
</pre>
<p>Again using shorthand we can combine all of these values into one using the <strong>background</strong> property. The order I usually put them in is as follows:</p>
<ul>
<li>color</li>
<li>url (if required)</li>
<li>position</li>
<li>repeat / no-repeat / repeat-x / repeat-y</li>
</ul>
<p>This means our code will now look like this:</p>
<pre class="brush: css;">
.class-name {
  background: #fff url(image.jpg) top left no-repeat;
}
</pre>
<p>If you miss out a value then it will be rendered with the default, so if you don&#8217;t assign a background position then it will default to <strong>top left</strong>.</p>
<h4>Fonts</h4>
<p>Next up is fonts! Now I&#8217;ll have to admit that this is one I tend to just set line by line out of habit, but again there is a cool shorthand method to save you writing lines and lines of the same code.</p>
<p>Here are the more commonly declared font properties:</p>
<pre class="brush: css;">
.class-name {
  font-size: 1em;
  line-height: 1.2em;
  font-weight: bold;
  font-style: normal;
  font-family: Arial;
}
</pre>
<p>We can take the five lines above and again make them into just one using shorthand. The main thing to note when shorthanding font properties is that you must declare both the <strong>font-size</strong> and the <strong>font-family</strong> or the whole thing will be ignored. Lets start by shortening just them two properties:</p>
<pre class="brush: css;">
.class-name {
  font: 1em Arial;
  line-height: 1.2em;
  font-weight: bold;
  font-style: normal;
}
</pre>
<p>Within the font property we can also include <strong>line-height</strong>, <strong>font-weight</strong> and <strong>font-style</strong>. If you don&#8217;t declare these values then like the background property, the values will be set to the default values of normal.</p>
<p>Here is what the whole thing would look like going with the values above:</p>
<pre class="brush: css;">
.class-name {
  font: 1em/1.2em bold normal Arial;
}
</pre>
<p>As you can see, using shorthand will save you having to write four extra lines of code and if you have a pretty major stylesheet this could cut it down dramtically!</p>
<h4>List Styles</h4>
<p>Lists are another property that can be shrunk down using shorthand. Typical List properties would include:</p>
<pre class="brush: css;">
.class-name {
  list-style-type: disc;
  list-style-position: outside;
  list-style-image: url(image.jpg)
}
</pre>
<p>These three lines can be made into one simple line by defining the type, position and image source under the property <strong>list-style</strong>. Please note, if any of the values are not defined then they will display as the default. Here is what the shorthand will look like:</p>
<pre class="brush: css;">
.class-name {
  list-style: disc outside url(image.jpg);
}
</pre>
<p>Fairly straight forward and thats about it for List Styles.</p>
<h4>Borders</h4>
<p>Border&#8217;s can be defined in several ways, if you are currently defining a width, color and style on seperate lines in your stylesheet (which is unlikely) then you can quickly edit this into one nice clean line of code, taking this:</p>
<pre class="brush: css;">
.class-name {
  border-width: 5px;
  border-color: #000;
  border-style: solid;
}
</pre>
<p>and ending up with this instead:</p>
<pre class="brush: css;">
.class-name {
  border: 5px solid #000;
}
</pre>
<p>If you want to define several sides of the element with different values then you can do so like this:</p>
<pre class="brush: css;">
.class-name {
  border-top: 5px solid #000;
  border-right: 10px solid #000;
  border-bottom: 5px solid #000;
  border-left: 10px solid #000;
}
</pre>
<p>The example above contains four lines, which could have been twelve had you defined seperate style, width and color values. You can (if you want to) get the same effect as the above example by using the following:</p>
<pre class="brush: css;">
.class-name {
  border: 1px solid #000;
  border-width: 5px 10px 5px 10px;
  border-color: #000;
}
</pre>
<p>Although this will achieve the same effect, personally I prefer the first method as I find it easier and quicker to type as it requires less thinking lol.</p>
<h4>Conclusion</h4>
<p>Whether you use it or not, you must agree using CSS Shorthand does make sense when thinking you can cut down the number of lines you have to code, as well as making your CSS Stylesheet smaller in size (maybe a little but still!) then it&#8217;s the obvious choice. Let me know what you think and which one&#8217;s you use or if I have missed anything!</p>
<h2  class="related_post_title">Here are some related <em>posts:</em></h2><ul class="related_post"><li><a href="http://designwoop.com/2010/07/the-960-grid-system-made-easy/" title="The 960 Grid System Made Easy">The 960 Grid System Made Easy</a></li><li><a href="http://designwoop.com/2010/04/the-definitive-guide-to-formatting-css/" title="The definitive guide to formatting CSS">The definitive guide to formatting CSS</a></li><li><a href="http://designwoop.com/2010/04/create-a-color-changing-website-using-css3/" title="Create a Color Changing Website Using CSS3">Create a Color Changing Website Using CSS3</a></li><li><a href="http://designwoop.com/2010/04/css-tips-i-wish-i-knew-when-i-first-started/" title="CSS Tips I Wish I Knew When I First Started">CSS Tips I Wish I Knew When I First Started</a></li><li><a href="http://designwoop.com/2010/03/5-ways-to-instantly-write-better-css/" title="5 Ways to Instantly Write Better CSS">5 Ways to Instantly Write Better CSS</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://designwoop.com/2010/01/using-css-shorthand-in-your-stylesheets/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Favourite Links 2</title>
		<link>http://designwoop.com/2010/01/favourite-links-of-the-week-2/</link>
		<comments>http://designwoop.com/2010/01/favourite-links-of-the-week-2/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 23:14:16 +0000</pubDate>
		<dc:creator>Stu Greenham</dc:creator>
				<category><![CDATA[All Posts]]></category>
		<category><![CDATA[Freebies]]></category>
		<category><![CDATA[Inspiration]]></category>
		<category><![CDATA[Photography]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[links]]></category>

		<guid isPermaLink="false">http://designwoop.com/?p=697</guid>
		<description><![CDATA[Right guys, continuing on from last week, here are some of my favourite links that I have seen in the last 7 days! Some crackers here and if you agree then help me out with a cheeky Tweet, Bump or Digg! You will find all the sharing links at the bottom of the post page. Heres my #2 set of links....]]></description>
			<content:encoded><![CDATA[<p>Right guys, continuing on from last week, here are some of my favourite links that I have seen in the last 7 days! Some crackers here and if you agree then help me out with a cheeky Tweet, Bump or Digg! You will find all the sharing links at the bottom of the post page. Heres my #2 set of links&#8230;.</p>
<h4>50 Beautiful Long Exposure Photos</h4>
<p>Visit Source: <a href="http://www.pxleyes.com/blog/2009/06/50-beautiful-long-exposure-photos/">http://www.pxleyes.com</a></p>
<p>Pxleyes have posted this amazing article showcasing 50 amazing photograph&#8217;s taken with a long exposure. As I am shortly heading of to get my first SLR today, I thought it was only right I included this post.</p>
<p><a href="http://fixedgear.ca/"><img alt="50 Exposure Shots" src="http://designwoop.com/images/posts/links-2/50-exposure-shots.jpg" class="alignnone visit-link" width="428" height="285" /></a></p>
<h4>120 Tips, Tricks, and Tuts from 2009 Worth your Time</h4>
<p>Visit Source: <a href="http://net.tutsplus.com/articles/web-roundups/120-tips-tricks-and-tuts-from-2009-worth-your-time/">http://net.tutsplus.com</a></p>
<p>Nettuts+ published this mammoth of a post containing 120 tips, tricks and tutorials from last year. This is a great article and a fantastic resource!</p>
<p><a href="http://net.tutsplus.com/articles/web-roundups/120-tips-tricks-and-tuts-from-2009-worth-your-time/"><img alt="120 Tips Tricks and Tutorials from Nettuts+" src="http://designwoop.com/images/posts/links-2/nettuts-120.jpg" class="alignnone visit-link" width="428" height="246" /></a></p>
<h4>Feet First</h4>
<p>Visit Source: <a href="http://www.tomrobinsonphotography.com/feetfirst.html">http://www.tomrobinsonphotography.com</a></p>
<p>Photographer Tom Robinson composed this great set of photo&#8217;s specifically of his and his partners feet whilst on travel. Sound&#8217;s odd, but every cool place they&#8217;ve been they have a shot and the gallery is immense! Soo jealous of where he has been!</p>
<p><a href="http://www.tomrobinsonphotography.com/feetfirst.html"><img alt="Feet First" src="http://designwoop.com/images/posts/links-2/feet-first.jpg" class="alignnone visit-link" width="428" height="285" /></a></p>
<h4>100+ Seamless Patterns Great for Creating Website Backgrounds</h4>
<p>Visit Source: <a href="http://webdesignledger.com/freebies/100-seamless-patterns-great-for-creating-website-backgrounds">http://webdesignledger.com</a></p>
<p>Web Design Ledger posted this article showcasing 100 seamless patterns great for creating website background. Some great resources here and a good bookmark to refer back to when need to find a good background.</p>
<p><a href="http://webdesignledger.com/freebies/100-seamless-patterns-great-for-creating-website-backgrounds"><img alt="100 Seamless Patterns" src="http://designwoop.com/images/posts/links-2/100-patterns.jpg" class="alignnone visit-link" width="428" height="283" /></a></p>
<h4>40 Brilliant Type-Only Logo Designs</h4>
<p>Visit Source: <a href="http://webdesignledger.com/inspiration/40-brilliant-type-only-logo-designs">http://webdesignledger.com</a></p>
<p>Another one from Web Design Ledger, this time logo&#8217;s! A great set of type only logo designs and there are some really clever ones here! I think the branding one is amazing hence it been displayed below but take a look for yourself.</p>
<p><a href="http://webdesignledger.com/freebies/100-seamless-patterns-great-for-creating-website-backgrounds"><img alt="logos" src="http://designwoop.com/images/posts/links-2/logos.jpg" class="alignnone visit-link" width="428" height="169" /></a></p>
<h4>Tweexchange</h4>
<p>Visit Source: <a href="http://tweexchange.com/">http://tweexchange.com</a></p>
<p>This site looks interesting combining the hassle of having to search for both free Twitter usernames and free Domain Names into one nice search. Thinking of starting a project then this tool will become handy in helping you decide which domain to choose ensuring you can get the Twitter username too.</p>
<p><a href="http://tweexchange.com/"><img alt="Tweexchange" src="http://designwoop.com/images/posts/links-2/tweexchange.jpg" class="alignnone visit-link" width="428" height="112" /></a></p>
<h4>In-Field Labels jQuery Plugin</h4>
<p>Visit Source: <a href="http://fuelyourcoding.com/scripts/infield/">http://fuelyourcoding.com</a></p>
<p>Fuel Your Coding show you how to achieve inline form labels using jQuery. The link contains sample forms, including a tutorial of how to do it yourself and links to download the plugin.</p>
<p><a href="http://fuelyourcoding.com/scripts/infield/"><img alt="Infield Labels using jQuery" src="http://designwoop.com/images/posts/links-2/forms.jpg" class="alignnone visit-link" width="428" height="184" /></a></p>
<h4>Showcase Of Modern Navigation Design Trends</h4>
<p>Visit Source: <a href="http://www.smashingmagazine.com/2010/01/04/showcase-of-modern-navigation-design-trends/">http://www.smashingmagazine.com</a></p>
<p>Smashing Magazine explore the latest navigation design trends in web design looking at many different styles with this article. A great source for inspiration and something I always struggle with so very handy for me!</p>
<p><a href="http://www.smashingmagazine.com/2010/01/04/showcase-of-modern-navigation-design-trends/"><img alt="Showcase Of Modern Navigation Design Trends" src="http://designwoop.com/images/posts/links-2/navigation.jpg" class="alignnone" width="428" height="262" /></a></p>
<h2  class="related_post_title">Here are some related <em>posts:</em></h2><ul class="related_post"><li><a href="http://designwoop.com/2010/03/must-read-inspirational-blogs-websites-for-creatives-6/" title="Must Read Inspirational Blogs and Websites for Creatives">Must Read Inspirational Blogs and Websites for Creatives</a></li><li><a href="http://designwoop.com/2009/12/favourite-links-of-the-week-1/" title="Favourite Links 1">Favourite Links 1</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://designwoop.com/2010/01/favourite-links-of-the-week-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Favourite Links 1</title>
		<link>http://designwoop.com/2009/12/favourite-links-of-the-week-1/</link>
		<comments>http://designwoop.com/2009/12/favourite-links-of-the-week-1/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 13:34:12 +0000</pubDate>
		<dc:creator>Stu Greenham</dc:creator>
				<category><![CDATA[All Posts]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Freebies]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Inspiration]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[links]]></category>

		<guid isPermaLink="false">http://designwoop.com/?p=636</guid>
		<description><![CDATA[I am going to start a set of weekly posts that will show you my favourite links I have found, been sent or have used myself at some point. Please, if you have time to take a few minutes to help spread my posts using the share links at the bottom of the page I would be very greatful! Right heres my #1 set of links...]]></description>
			<content:encoded><![CDATA[<p>I am going to start a set of weekly posts that will show you my favourite links I have found, been sent or have used myself at some point. Please, if you have time to take a few minutes to help spread my posts using the share links at the bottom of the page I would be very greatful! Right heres my #1 set of links&#8230;.</p>
<h4>New Growl Styles</h4>
<p>Visit Source: <a href="http://fixedgear.ca/">http://fixedgear.ca</a></p>
<p>Christopher Lobay has posted two new notification styles for the popular Mac app <a href="http://growl.info/">Growl</a> which can be downloaded for free.</p>
<p><a href="http://fixedgear.ca/"><img alt="Growl Notification Styles" src="http://designwoop.com/images/posts/links-1/growl.jpg" class="alignnone visit-link" width="428" height="295" /></a></p>
<h4>10 Fresh Must Read Blogs For Creatives</h4>
<p>Visit Source: <a href="http://www.inspiredm.com/2009/12/15/10-fresh-must-read-blogs-for-creatives-the-december-edition/">http://www.inspiredm.com</a></p>
<p>InspiredMag have posted a great article showcasing 10 &#8216;Must Read&#8217; blogs that are great for us &#8216;Creatives&#8217;. There are some great reads here and lots of useful resources worth bookmarking.</p>
<p><a href="http://www.inspiredm.com/2009/12/15/10-fresh-must-read-blogs-for-creatives-the-december-edition/"><img alt="10 Must Read Creative Blogs" src="http://designwoop.com/images/posts/links-1/must-reads.jpg" class="alignnone visit-link" width="428" height="156" /></a></p>
<h4>Exobotics</h4>
<p>Visit Source: <a href="http://www.exopolis.com/holiday/2007/factory.html">www.exopolis.com</a></p>
<p>A very clever site built in Flash that lets you build a robot (Cool I know) and then bust some moves with it to a nice dance beat. Give it a try, very cooly designed!</p>
<p><a href="http://www.exopolis.com/holiday/2007/factory.html"><img alt="Build a Robot" src="http://designwoop.com/images/posts/links-1/robots.jpg" class="alignnone visit-link" width="428" height="285" /></a></p>
<h4>35 CSS-based Layouts that Look Awesome</h4>
<p>Visit Source: <a href="http://net.tutsplus.com/articles/web-roundups/35-css-based-layouts-that-look-awesome/">http://net.tutsplus.com</a></p>
<p>Nettuts+ posted a article showcasing 35 awsum CSS based websites! Another great article to bookmark for inspiration at a later date. There is a whole range of differently styled sites here so something for everyone.</p>
<p><a href="http://net.tutsplus.com/articles/web-roundups/35-css-based-layouts-that-look-awesome/"><img alt="35 CSS Based Websites" src="http://designwoop.com/images/posts/links-1/nettuts-css.jpg" class="alignnone visit-link" width="428" height="317" /></a></p>
<h4>Outstanding Website Background Guide: 60+ Impressive Resources</h4>
<p>Visit Source: <a href="http://www.noupe.com/design/outstanding-website-background-guide-60-impressive-resources.html">http://www.noupe.com</a></p>
<p>Noupe&#8217;s article on Website Background&#8217;s offers tonnes of great links and resources for getting the perfect website background. There are plenty of Tutorials, Texture Packs and Links where you can get loads of free background tiles/images.</p>
<p><a href="http://www.noupe.com/design/outstanding-website-background-guide-60-impressive-resources.html"><img alt="Outstanding Website Background Guide: 60+ Impressive Resources" src="http://designwoop.com/images/posts/links-1/noupe-bg.jpg" class="alignnone visit-link" width="428" height="221" /></a></p>
<h4>30 Website Navigations that Make You Wanna Click It</h4>
<p>Visit Source: <a href="http://webdesignledger.com/inspiration/30-website-navigations-that-make-you-wanna-click-it">http://webdesignledger.com</a></p>
<p>Web Design Ledger (One of my favourite subscribed to websites) posted this awesome article showcasing 30 Websites with class Navigation menu&#8217;s. A great post and really good source of inspiration when building a design concept.</p>
<p><a href="http://webdesignledger.com/inspiration/30-website-navigations-that-make-you-wanna-click-it"><img alt="30 Website Navigations" src="http://designwoop.com/images/posts/links-1/navigation.jpg" class="alignnone visit-link" width="428" height="238" /></a></p>
<h4>Hacked STOP Signs</h4>
<p>Visit Source: <a href="http://www.urlesque.com/2009/12/28/hacked-stop-signs-photos/">http://www.urlesque.com</a></p>
<p>Great set of Stop Sign&#8217;s that have been modified and there are some funny ones! My favourite is &#8220;STOP! Hammertime!&#8221;.</p>
<p><a href="http://www.urlesque.com/2009/12/28/hacked-stop-signs-photos/"><img alt="Hacked Stop Signs" src="http://designwoop.com/images/posts/links-1/stop-signs.jpg" class="alignnone visit-link" width="428" height="303" /></a></p>
<h4>Rio Ferdinand Online Magazine</h4>
<p>Visit Source: <a href="http://www.rioferdinand.com/">http://www.rioferdinand.com</a></p>
<p>Not design related but a cool site anyways. Footballer Rio Ferdinand has started an online magazine which is a great read. He interviews different celebs each edition and covers alot of general stuff.</p>
<p><a href="http://www.rioferdinand.com/"><img alt="Rio Ferdinand Magazine" src="http://designwoop.com/images/posts/links-1/rio-mag.jpg" class="alignnone visit-link" width="428" height="268" /></a></p>
<h4>24 Ways: CSS Animations</h4>
<p>Visit Source: <a href="http://24ways.org/2009/css-animations">http://24ways.org</a></p>
<p>Tim Van Damme posted this cool article on 24ways about CSS Animations, showing you how to create one yourself. A great read and this is definately going to be something that we will start to see more and more of.</p>
<p><a href="http://24ways.org/2009/css-animations"><img alt="CSS Animations" src="http://designwoop.com/images/posts/links-1/css-animations.jpg" class="alignnone visit-link" width="428" height="290" /></a></p>
<h4>7 Open Source And Free URL Shortener Scripts To Create Your Own</h4>
<p>Visit Source: <a href="http://www.webresourcesdepot.com/7-open-source-and-free-url-shortener-scripts-to-create-your-own/">http://www.webresourcesdepot.com</a></p>
<p>Web Resource Depot posted this article reviewing 7 open source URL Shortener scripts that are all free. I went for Yourls myself but a handy link for anyone else wanting to get on the URL Shortening bandwagon :)</p>
<p><a href="http://www.webresourcesdepot.com/7-open-source-and-free-url-shortener-scripts-to-create-your-own/"><img alt="URL Shortener Scripts" src="http://designwoop.com/images/posts/links-1/url-scripts.jpg" class="alignnone" width="428" height="272" /></a></p>
<h2  class="related_post_title">Here are some related <em>posts:</em></h2><ul class="related_post"><li><a href="http://designwoop.com/2010/07/iphone-made-with-css3-only/" title="iPhone Made With CSS3 Only">iPhone Made With CSS3 Only</a></li><li><a href="http://designwoop.com/2010/07/the-960-grid-system-made-easy/" title="The 960 Grid System Made Easy">The 960 Grid System Made Easy</a></li><li><a href="http://designwoop.com/2010/05/give-your-website-a-custom-iphone-icon-withwithout-the-gloss-effect/" title="Give Your Website A Custom iPhone Icon With/Without The Gloss Effect">Give Your Website A Custom iPhone Icon With/Without The Gloss Effect</a></li><li><a href="http://designwoop.com/2010/05/html5-an-introduction-from-a-designers-perspective/" title="HTML5: An Introduction From a Designer&#8217;s Perspective">HTML5: An Introduction From a Designer&#8217;s Perspective</a></li><li><a href="http://designwoop.com/2010/05/different-stylesheets-for-differently-sized-browser-windows/" title="Different Stylesheets for Differently Sized Browser Windows">Different Stylesheets for Differently Sized Browser Windows</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://designwoop.com/2009/12/favourite-links-of-the-week-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial: Clearing the Textarea value onFocus</title>
		<link>http://designwoop.com/2009/12/clearing-form-textarea-value-onfocus/</link>
		<comments>http://designwoop.com/2009/12/clearing-form-textarea-value-onfocus/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 22:16:23 +0000</pubDate>
		<dc:creator>Stu Greenham</dc:creator>
				<category><![CDATA[All Posts]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[onfocus]]></category>
		<category><![CDATA[quick tips]]></category>
		<category><![CDATA[textarea]]></category>

		<guid isPermaLink="false">http://designwoop.com/?p=606</guid>
		<description><![CDATA[Quick tip that will always come in handy when creating forms. More often then not you will see a textarea that initially has some text in, something like... 'Type your message here...'. On some websites, I have noticed that when you go to type in that same textarea you have to first remove the message before you start typing yours which I find very frustratings.]]></description>
			<content:encoded><![CDATA[<p>Quick tip that will always come in handy when creating forms. More often then not you will see a textarea that initially has some text in, something like&#8230; &#8216;Type your message here&#8230;&#8217;. On some websites, I have noticed that when you go to type in that same textarea you have to first remove the message before you start typing yours which I find very frustratings.</p>
<p>There is a simple line of code that will fix this and clear your message when they click on the textarea box. First you need to create your form, below I have included some sample form code:</p>
<pre class="brush: php;">
&lt;form name=&quot;test_form&quot;&gt;
	&lt;dl&gt;
		&lt;dt&gt;&lt;label for=&quot;field_one&quot;&gt;Field One&lt;/label&gt;&lt;/dt&gt;
		&lt;dd&gt;&lt;input type=&quot;text&quot; name=&quot;field_one&quot; value=&quot;&quot; size=&quot;100&quot; /&gt;&lt;/dd&gt;

		&lt;dt&gt;&lt;label for=&quot;field_two&quot;&gt;Field Two&lt;/label&gt;&lt;/dt&gt;
		&lt;dd&gt;&lt;textarea name=&quot;field_two&quot; rows=&quot;10&quot; cols=&quot;100&quot;&gt;Type your message here...&lt;/textarea&gt;&lt;/dd&gt;
	&lt;/dl&gt;
&lt;/form&gt;
</pre>
<p>To make the text disappear on click we use the event handler <strong>onFocus</strong> which will basically run once the Textarea is in an &#8216;active&#8217; state. We need to add in the following to our form:</p>
<pre class="brush: php;">
onFocus=&quot;this.value=''; return false;&quot;
</pre>
<p>Add it inside the opening textarea tag so you will end up with a form looking like this&#8230;.</p>
<pre class="brush: php;">
&lt;form name=&quot;test_form&quot;&gt;
	&lt;dl&gt;
		&lt;dt&gt;&lt;label for=&quot;field_one&quot;&gt;Field One&lt;/label&gt;&lt;/dt&gt;
		&lt;dd&gt;&lt;input type=&quot;text&quot; name=&quot;field_one&quot; value=&quot;&quot; size=&quot;100&quot; /&gt;&lt;/dd&gt;

		&lt;dt&gt;&lt;label for=&quot;field_two&quot;&gt;Field Two&lt;/label&gt;&lt;/dt&gt;
		&lt;dd&gt;&lt;textarea name=&quot;field_two&quot; rows=&quot;10&quot; cols=&quot;100&quot; onFocus=&quot;this.value=''; return false;&quot;&gt;Type your message here...&lt;/textarea&gt;&lt;/dd&gt;
	&lt;/dl&gt;
&lt;/form&gt;
</pre>
<p>Thats it done, nice and simple! You can download the source code for this below or view a demo <a href="http://designwoop.com/labs/textarea-onfocus/">here</a>.</p>
<div class="tutorial-files">
<p class="demo"><a href="http://designwoop.com/labs/textarea-onfocus/">View Demo</a></p>
<p class="source"><a href="http://designwoop.com/labs/textarea-onfocus/source.zip">Source Code</a></p>
</div>
<h2  class="related_post_title">Here are some related <em>posts:</em></h2><ul class="related_post"><li><a href="http://designwoop.com/2010/05/give-your-website-a-custom-iphone-icon-withwithout-the-gloss-effect/" title="Give Your Website A Custom iPhone Icon With/Without The Gloss Effect">Give Your Website A Custom iPhone Icon With/Without The Gloss Effect</a></li><li><a href="http://designwoop.com/2010/05/html5-an-introduction-from-a-designers-perspective/" title="HTML5: An Introduction From a Designer&#8217;s Perspective">HTML5: An Introduction From a Designer&#8217;s Perspective</a></li><li><a href="http://designwoop.com/2010/03/best-practices-for-hints-and-validation-in-web-forms/" title="Best Practices for Hints and Validation in Web Forms">Best Practices for Hints and Validation in Web Forms</a></li><li><a href="http://designwoop.com/2009/12/favourite-links-of-the-week-1/" title="Favourite Links 1">Favourite Links 1</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://designwoop.com/2009/12/clearing-form-textarea-value-onfocus/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>How To: Get Chrome on your Mac with Extensions</title>
		<link>http://designwoop.com/2009/12/how-to-get-chrome-on-your-mac-with-extensions/</link>
		<comments>http://designwoop.com/2009/12/how-to-get-chrome-on-your-mac-with-extensions/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 19:51:19 +0000</pubDate>
		<dc:creator>Stu Greenham</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[chromium]]></category>
		<category><![CDATA[extensions]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[sync]]></category>

		<guid isPermaLink="false">http://designwoop.com/?p=599</guid>
		<description><![CDATA[Chrome officially rocks! right? I officially made the it my default web browser at work last week which is a big move for me as I have been a dedicated Firefoxian for several years. After Google added extension support to its browser I was hooked!]]></description>
			<content:encoded><![CDATA[<p>Chrome officially rocks! right? I officially made the it my default web browser at work last week which is a big move for me as I have been a dedicated Firefoxian for several years. After Google added extension support to its browser I was hooked! A week later I have filtered down my favourite extensions (which will be a future post) and now I want it on my Mac too!</p>
<p>I&#8217;d given up hope that would happen and that I&#8217;d have to wait till early next year when Google pull there finger out, but I am happy to say I have found a solution and you can have extensions working in no time!</p>
<h4>The Steps</h4>
<p>First you need to head over to <a href="http://build.chromium.org/buildbot/snapshots/chromium-rel-mac/">here</a> and download the latest build of Chromium (At time of writing I am using 34164) and then install it to your Applications folder.</p>
<p>Next run Chromium and enter the following in the Search/URL bar:</p>
<p><strong>chrome://extensions/</strong></p>
<p>You will be redirected to the extension page which will be looking pretty boring right now. To find some extensions to install go to this website:</p>
<p><a href="https://chrome.google.com/extensions">https://chrome.google.com/extensions</a></p>
<p>Once you reach an extension that you want to install you will notice that the &#8216;Install&#8217; button is greyed out. Open another tab and head over to:</p>
<p><a href="http://grack.com/blog/2009/12/08/re-enable-install-button-for-mac-chrome-extensions/">http://grack.com/blog/2009/12/08/re-enable-install-button-for-mac-chrome-extensions/</a></p>
<p>Scroll down to where it says &#8216;Enable Extension Install&#8217; and drag this to your Bookmarks toolbar. Now flip back to the Extension you just found and click on the bookmark you just dropped. This will enable the &#8216;Install&#8217; button at which point you can install the extension!</p>
<p>You will have to do this for each extension as Google will disable the &#8216;Install&#8217; button but thats a fair price to pay for a working Chrome!</p>
<h4>Bookmarks Synching</h4>
<p>Another nice little treat is that the latest Chromium build has Bookmarks Synching as you will probably have seen on Windows versions which means for someone like me, you can Sync your bookmarks between both operating systems Boom!</p>
<p>You can find this option by clicking on Chromium in the top left and then &#8216;Bookmarks Synched&#8230;&#8217; at which point it will ask you for your Google username and password.</p>
<h2  class="related_post_title">Here are some related <em>posts:</em></h2><ul class="related_post"><li><a href="http://designwoop.com/2010/07/dribbble-introducing-my-first-chrome-extension/" title="Dribbble – Introducing My First Chrome Extension">Dribbble – Introducing My First Chrome Extension</a></li><li><a href="http://designwoop.com/2010/08/designing-campaign-monitor-ios-icons/" title="Designing Campaign Monitor iOS Icons">Designing Campaign Monitor iOS Icons</a></li><li><a href="http://designwoop.com/2010/05/chrome-unconventional-speed-tests-for-the-browser/" title="Chrome: Unconventional speed tests for the browser">Chrome: Unconventional speed tests for the browser</a></li><li><a href="http://designwoop.com/2010/05/the-importance-of-cross-browser-compatibility-tips-and-resources/" title="The Importance of Cross Browser Compatibility: Tips and Resources">The Importance of Cross Browser Compatibility: Tips and Resources</a></li><li><a href="http://designwoop.com/2010/05/25-free-mac-apps-that-will-boost-your-productivity/" title="25 Free Mac Apps That Will Boost Your Productivity">25 Free Mac Apps That Will Boost Your Productivity</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://designwoop.com/2009/12/how-to-get-chrome-on-your-mac-with-extensions/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How To: Move WordPress to a new Domain!</title>
		<link>http://designwoop.com/2009/11/how-to-move-wordpress-to-a-new-domain/</link>
		<comments>http://designwoop.com/2009/11/how-to-move-wordpress-to-a-new-domain/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 21:03:04 +0000</pubDate>
		<dc:creator>Stu Greenham</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[configuring]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[moving]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://designwoop.com/?p=538</guid>
		<description><![CDATA[For about roughly a year now I have been considering moving away from selfconclusion.co.uk to either 1) a new funky domain name, or 2) blog.stugreenham.com and yesterday in a wild move I took the plunge! Luckily things all went smoothly (he say's) and so far I have not experienced any major issues...]]></description>
			<content:encoded><![CDATA[<p>For about roughly a year now I have been considering moving away from <a href="http://selfconclusion.co.uk">selfconclusion.co.uk</a> to either 1) a new funky domain name, or 2) <a href="http://designwoop.com">blog.stugreenham.com</a> and yesterday in a wild move I took the plunge! Luckily things all went smoothly (he say&#8217;s) and so far I have not experienced any major issues so I thought the first post on my newly transfered blog will be about how I managed to acheive this so simply!</p>
<h4>Beginning</h4>
<p>To begin with and before I even touched my Self Conclusion (SC), I logged into my web hosting account and setup the new domain, created my new database and installed the latest copy of WordPress. Once this was done, I ran through the WP installation.</p>
<p>Next I logged into my current database that SC was using and backed the whole lot up exporting it to a .sql file. Although WP offers an Export/Import function I have had difficulty with it on previous occasions and there is also a limit on what file size you can import. Finally, take a full backup of your WP files which will include any custom themes, images, plugins, etc.</p>
<h4>Uploading</h4>
<p>Now take these backed up files and upload them to the new WP installation keeping the locations the same (for eg. If you have images in the root of your directory they will need to be in the root of your new directory). You don&#8217;t need to log into the WP admin area yet because once you transfer over the old database it will sort out all the users/posts/active plugins etc the whole lot just like you are used to from your existing domain. Once all the files are in place, log into your new database and drop all the tables in the database then import the sql from the old site that you have previously saved. This should import all your tables for you and populate them with all your settings.</p>
<p>Here is where the first tricky bit comes in. Whilst you are still in the database open the table wp_options and update the <strong>siteurl</strong> to the new URL (as shown in the picture below) of your website and save it.</p>
<p><img src="http://designwoop.com/images/posts/movingwp/phpmyadmin.jpg" alt="PHPMyAdmin" width="428" height="215" /></p>
<p>Now login to your new URL WP admin area (http://www.domain.com/wp-admin/) using your old username and password that previously worked on the old site. Once you are logged in you should see all your posts, comments, plugins, etc.</p>
<p>Head to Settings page and make sure <strong>WordPress address (URL)</strong> and <strong>Blog address (URL)</strong> are both correct to the new URL. Once they have been changed should they need to then your blog should be up and running (nearly).</p>
<p><img src="http://designwoop.com/images/posts/movingwp/settings.jpg" alt="Settings" width="428" height="307" /></p>
<h4>Configuring</h4>
<p>Hopefully you have made it this far with me and no errors at which point we will need to check through each of the posts to make sure there arn&#8217;t any links pointing to the old URL. Thankfully there is a plugin which will do this all for you! The plugin <strong>Velvet Blues Update URLs</strong> is available for download <a href="http://www.velvetblues.com/web-development-blog/wordpress-plugin-update-urls/">here</a>. Upload the plugin and activate it and follow the instructions. Its basically like a search and replace tool and very simple.</p>
<p>Whilst I am talking about plugins, it might be worth mentioning that if you are running Google Sitemap plugin that you will need to tell it to recreate your sitemap as it will still be using the old one with all the wrong URL links.</p>
<h4>Redirecting using .htaccess</h4>
<p>Now you have your new blog up and running as if it were the old one but with a new shiny URL you will need to make sure any users from the old site get redirected to the new URL. There are many ways in which this can be done but as I have alot of bookmarked links and posted my links in many places I needed to ensure that any link from selfconclusion.co.uk would redirect to my new URL and keep the same structure (for eg. http://selfconclusion.co.uk/test would go to http://designwoop.com/test).</p>
<p>After searching around I came across a great post from Nish Vamadevan over at <a href="http://www.fnode.com/2008/04/301-redirect-wordpress-posts-to-new-domain/">fnode.com</a> where he explains how to do this. On the root directory of your old domain, you will need to create a .htaccess file and put the following inside&#8230;.</p>
<pre class="brush: plain; light: true;">
# BEGIN WordPress
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.olddomain.com
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]
# END WordPress
</pre>
<p>This should hopefully do the trick! Make sure you change the domain names to your and give it a full test and make sure but for me it was spot on so thank you Nish for your great post!</p>
<h4>Final Tidying Up</h4>
<p>Were almost there now, just a few bits to sort out if you use feeds or analytics then this will also apply to you. Obviously both your analytics script and your feed links will be wrong as they will be pointing to your old URL. For me, I use <a href="http://www.google.com/analytics">Google Analytics</a> and all I needed to do was log into my account and ammend the profile to the new address. With <a href="http://feedburner.google.com">Feedburner</a>, again I logged into my account and updated the address, I was too scared to change my feed URL incase I was to lose my subscribers so for now it is still called selfconclusion but I will look into this someday soon!</p>
<p>Right that should be it! I hope this has been helpful for you, if you have any problems then post a comments and I will do my best to assist you!</p>
<h2  class="related_post_title">Here are some related <em>posts:</em></h2><ul class="related_post"><li><a href="http://designwoop.com/2010/09/wordpress-fat-loss-diet-to-speed-up-ease-load/" title="WordPress Fat-Loss Diet to Speed Up And Ease Load">WordPress Fat-Loss Diet to Speed Up And Ease Load</a></li><li><a href="http://designwoop.com/2010/05/best-resources-for-learning-wordpress-development/" title="Best Resources for Learning WordPress Development">Best Resources for Learning WordPress Development</a></li><li><a href="http://designwoop.com/2010/04/integrating-lessn-with-wordpress-to-create-future-proof-short-urls/" title="Integrating Lessn with WordPress to Create Future Proof Short URL&#8217;s">Integrating Lessn with WordPress to Create Future Proof Short URL&#8217;s</a></li><li><a href="http://designwoop.com/2010/04/40-wordpress-powered-websites-with-awesome-designs/" title="40 WordPress-Powered Websites With Awesome Designs">40 WordPress-Powered Websites With Awesome Designs</a></li><li><a href="http://designwoop.com/2010/04/how-to-make-your-theme-wordpress-3-0-compatible/" title="How To Make Your Theme WordPress 3.0 Compatible">How To Make Your Theme WordPress 3.0 Compatible</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://designwoop.com/2009/11/how-to-move-wordpress-to-a-new-domain/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Google Sync now supports Push Mail</title>
		<link>http://designwoop.com/2009/09/google-sync-now-supports-push-email/</link>
		<comments>http://designwoop.com/2009/09/google-sync-now-supports-push-email/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 17:08:41 +0000</pubDate>
		<dc:creator>Stu Greenham</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Calendar]]></category>
		<category><![CDATA[contacts]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[exchange]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[push]]></category>
		<category><![CDATA[sync]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://designwoop.com/?p=501</guid>
		<description><![CDATA[Back in February I wrote a post about Google Sync and how you can sync your Google Calendar and Contacts to your iPhone wirelessly using the exchange feature on your iPhone. Well Google have now added support for push mail to their sync feature! In their blog post they write about their decision to add this.]]></description>
			<content:encoded><![CDATA[<p>Back in February I wrote a post about <a href="http://designwoop.com/2009/02/google-iphone-synching/">Google Sync</a> and how you can sync your Google Calendar and Contacts to your iPhone wirelessly using the exchange feature on your iPhone. Well Google have now added support for push mail to their sync feature! In their <a href="http://gmailblog.blogspot.com/2009/09/push-gmail-for-iphone-and-windows.html">blog post</a> they write about their decision to add this.</p>
<p>If you have already setup your Gcal and/or Gcontacts as per my guide <a href="http://designwoop.com/2009/02/google-iphone-synching/">here</a> to your phone then adding the mail to it is super simple&#8230;.</p>
<ul>
<li>Go to <strong>Settings</strong></li>
<li>Go to <strong>Mail, Contacts, Calendar</strong></li>
<li>Click on the Exchange account you currently have setup to your Gmail Cal and/or Contacts</li>
<li>Flick <strong>Mail</strong> to <strong>Yes</strong></li>
<li>Now choose which folders you want to sync at the bottom of the current page</li>
</ul>
<p>Now when you go to Mail from the home screen you will now have your Exchange account listed in your accounts list.</p>
<p>It&#8217;s really that simple! :) any probs let me know in the comments.</p>
<h2  class="related_post_title">Here are some related <em>posts:</em></h2><ul class="related_post"><li><a href="http://designwoop.com/2010/08/designing-campaign-monitor-ios-icons/" title="Designing Campaign Monitor iOS Icons">Designing Campaign Monitor iOS Icons</a></li><li><a href="http://designwoop.com/2010/07/iphone-made-with-css3-only/" title="iPhone Made With CSS3 Only">iPhone Made With CSS3 Only</a></li><li><a href="http://designwoop.com/2010/07/the-960-grid-system-made-easy/" title="The 960 Grid System Made Easy">The 960 Grid System Made Easy</a></li><li><a href="http://designwoop.com/2010/07/50-gorgeous-wallpapers-for-ios-iphone-4/" title="50 Gorgeous Wallpapers for iOS &#038; iPhone 4">50 Gorgeous Wallpapers for iOS &#038; iPhone 4</a></li><li><a href="http://designwoop.com/2010/05/give-your-website-a-custom-iphone-icon-withwithout-the-gloss-effect/" title="Give Your Website A Custom iPhone Icon With/Without The Gloss Effect">Give Your Website A Custom iPhone Icon With/Without The Gloss Effect</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://designwoop.com/2009/09/google-sync-now-supports-push-email/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
