<?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>DesignBash &#187; Tutorials</title>
	<atom:link href="http://www.designbash.com/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.designbash.com</link>
	<description>web magazine and more...</description>
	<lastBuildDate>Fri, 25 Nov 2011 01:00:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>The HTML of HTML 5</title>
		<link>http://www.designbash.com/tutorials/the-html-of-html-5/</link>
		<comments>http://www.designbash.com/tutorials/the-html-of-html-5/#comments</comments>
		<pubDate>Sun, 20 Nov 2011 22:12:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Quickie]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.designbash.com/?p=324</guid>
		<description><![CDATA[As the web continues to move forward, it&#8217;s becoming more and more important to understand (and use) HTML 5 tags. Although most tags are not officially supported in Internet Explorer, there are some great JavaScript libraries out there that allow us to start using HTML5 today! So, before getting to far into your HTML, you&#8217;ll [...]]]></description>
			<content:encoded><![CDATA[<p>As the web continues to move forward, it&#8217;s becoming more and more important to understand (and use) HTML 5 tags. Although most tags are not officially supported in Internet Explorer, there are some great JavaScript libraries out there that allow us to start using HTML5 today!<br />
<span id="more-324"></span></p>
<p>So, before getting to far into your HTML, you&#8217;ll need to drop in a small JavaScript reference to HTML5.js, which &#8220;shims&#8221; in HTML5 support for IE8 and below. It&#8217;s easy enough to do this, just use this little code snippet:</p>
<pre class="prettyprint">
<code class="html">
&lt;!-- If less than IE9, include the HTML5 shim --&gt;
&lt;!--[if lt IE 9]&gt;
&lt;script src="http://html5shim.googlecode.com/svn/trunk/html5.js"&gt;&lt;/script&gt;
&lt;![endif]--&gt;
</code>
</pre>
<p>Alright, now that we&#8217;ve considered older browsers we can get started with some actual HTML5 code. Starting from the very top, we need the doctype. Thankfully, the HTML5 doctype is simple compared to the ones you&#8217;re probably familiar with. Look at the beautiful simplicity of the document below:</p>
<pre class="prettyprint">
<code class="html">
&lt;!DOCTYPE html&gt;
&lt;html&gt;
  &lt;head&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;title&gt;HTML5 Example&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;p&gt;This is a perfectly valid document&lt;/p&gt;
  &lt;/body&gt;
&lt;/html&gt;
</code>
</pre>
<p>Mmmmm, so much nicer than before&#8230;</p>
<h2>What About Self Closing Tags?</h2>
<p>One of the design choices that I really appreciate about HTML5 is the fact that you can optionally self-close tags. I plan to write my code without the self-closing slash, as I find it less noisy, but there is nothing wrong with self closing tags.</p>
<pre class="prettyprint">
<code class="html">
&lt;!-- Totally valid --&gt;
&lt;img src="path/to/img.jpg" alt="valid" /&gt;

&lt;!-- Also perfectly valid (and less noisy) --&gt;
&lt;img src="path/to/img.jpg" alt="valid" &gt;
</code>
</pre>
<h2>HTML5 Semantics</h2>
<p>HTML5 gives us the ability create documents that are incredibly semantic. All the new elements were created with modern websites in mind, as you&#8217;ll see in the examples below:</p>
<pre class="prettyprint">
<code class="html">
&lt;header&gt;
  &lt;h1&gt;Large Title&lt;/h1&gt;
&lt;/header&gt;

&lt;nav&gt;&lt;ul&gt;
  &lt;li&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href="#"&gt;About&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href="#"&gt;Contact&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/nav&gt;

&lt;section id="content"&gt;
&lt;ul id="posts"&gt;
  &lt;li&gt;&lt;article&gt;
    &lt;h3&gt;Article Title&lt;/h3&gt;
  &lt;/article&gt;&lt;/li&gt;
  &lt;li&gt;&lt;article&gt;
    &lt;h3&gt;Another Article Title&lt;/h3&gt;
  &lt;/article&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;

&lt;footer&gt;
  &lt;address&gt;New York, New York/address&gt;
&lt;/footer&gt;
</code>
</pre>
<p>That&#8217;s a very small example of what we can do with this new kind of markup. For a full explanation of all the new tags, checkout the official <a href="http://dev.w3.org/html5/spec/Overview.html">HTML5 specifications</a>. It can be a little dry, but it&#8217;s worth slowly reading over.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.designbash.com/tutorials/the-html-of-html-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Make a Favicon for your Blog &#8211; An Easy How To&#8230;</title>
		<link>http://www.designbash.com/tutorials/make-a-favicon-for-your-blog-an-easy-how-to/</link>
		<comments>http://www.designbash.com/tutorials/make-a-favicon-for-your-blog-an-easy-how-to/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 20:27:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.designbash.com/?p=303</guid>
		<description><![CDATA[In the world of modern web design, Favicons are considered one of the most important aspects of your website. Although it may only be 16px by 16px, the importance of this icon should not be underestimated. This is the type of polish that puts your site in a whole new league. But really, they are [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.designbash.com/tutorials/make-a-favicon-for-your-blog-an-easy-how-to"><img src="http://www.designbash.com/wp-content/uploads/2010/03/favicon-guide.jpg" alt="" title="favicon-guide" width="500" height="150" class="aligncenter size-full wp-image-319" /></a><br />
In the world of modern web design, Favicons are considered one of the most important aspects of your website. Although it may only be 16px by 16px, the importance of this icon should not be underestimated. This is the type of polish that puts your site in a whole new league.<span id="more-303"></span></p>
<p>But really, they are kinda nice and having one makes your site seem just a little more professional. So today the gloves come off and we&#8217;re going to make a sweet favicon for an application I&#8217;ve been working on.</p>
<h2>But Where do I Start?</h2>
<p style="text-align: left;"><img class="aligncenter size-full wp-image-304" title="new-favicon-psd" src="http://www.designbash.com/wp-content/uploads/2010/03/new-favicon-psd.png" alt="" width="462" height="198" /><br />
The first step I like to take when making a favicon is to create a 16px by 16px Photoshop document &#8211; which is the standard favicon size. For this quick tutorial I already have a nice little logo created &#8211; and I&#8217;ll be using that to make my favicon.</p>
<h2>Keep it Simple, Stupid</h2>
<p>Because there is so little space to work with, it&#8217;s important to keep your favicon as simple as possible. My starting logo is a bit too busy to make into a favicon, plus favicons need to be square &#8211; so what I&#8217;ll probably do is lose the text and use either just the envelope edges and the heart.</p>
<div id="attachment_305" class="wp-caption aligncenter" style="width: 387px"><img class="size-full wp-image-305" title="my-logo-example" src="http://www.designbash.com/wp-content/uploads/2010/03/my-logo-example.png" alt="" width="377" height="196" /><p class="wp-caption-text">My Starting Logo, I&#39;ll be losing the text and keep just the envelope and heart.</p></div>
<h2 style="text-align: left;">Some Playing Around</h2>
<p>After playing around for 10-minutes in Photoshop, I quickly realized that 16-pixels is just too small to preserve the definition of the actual envelope. What I&#8217;ve ended up doing instead is using just the edges (red and blue stripes) of my envelope with a heart in the middle. A couple things I noticed as I did this:</p>
<ol>
<li>When transforming things down in size, <strong>blacks will sometimes become a little too gray and need to be darkened</strong> (using the Photoshop burn tool).</li>
<li>Whatever you end up with, <strong>run the sharpen tool over it a few times</strong>. It really helps clear up any blurry edges that resulted from such a dramatic size reduction.</li>
</ol>
<p>The final result looks something like this:</p>
<h2><img class="aligncenter size-full wp-image-307" title="my-favicon" src="http://www.designbash.com/wp-content/uploads/2010/03/my-favicon.png" alt="cool favicon" width="97" height="58" /></h2>
<h2>Next Up, Turn that PNG into an ICO file&#8230;</h2>
<p>Now comes the easy part. First, save your favicon as a PNG file. PNG is better than JPG because it is a lossless format, and with such a small image, you cannot afford to lose any quality. <strong>Next, head over to this <a href="http://www.dagondesign.com/tools/favicon-generator-tool/">sweet favicon generator</a> &#8211; the best tool I&#8217;ve found for converting images to the ICO favicon format</strong>. To be honest, I tried a few different sites and they all gave me problems except for this one.</p>
<h2>Making it Display on Your Blog or Site</h2>
<p>Once you have the ICO file on your computer, you need to <strong>rename it &#8220;favicon.ico&#8221;</strong>, anything else and it simply won&#8217;t work. Next you need to <strong>upload the icon to your public_html directory</strong> (it won&#8217;t work anywhere else). Finally, you&#8217;ll also need to include this small snippet of code in the &lt;head&gt; of your HTML files:</p>
<pre class="brush:html">
<link rel="shortcut icon" href="/favicon.ico" />
</pre>
<p>If everything is setup properly you should now see a favicon when you refresh your site. I should mention that I did have a problem with Firefox not displaying the icon, but I think it was a caching issue because I verified it with this <a href="http://www.seositecheckup.com/favicon.php">seositecheckup</a> tool and everything seemed good!</p>
<p>Here is what it looks like using Safari<br />
<img src="http://www.designbash.com/wp-content/uploads/2010/03/favicon-example.png" alt="Nice Favicon Example" title="favicon-example" width="240" height="29" class="aligncenter size-full wp-image-316" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.designbash.com/tutorials/make-a-favicon-for-your-blog-an-easy-how-to/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The CSS Image Button &#8211; How To Make a Rollover</title>
		<link>http://www.designbash.com/tutorials/the-css-image-button-how-to-make-a-rollover/</link>
		<comments>http://www.designbash.com/tutorials/the-css-image-button-how-to-make-a-rollover/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 22:24:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Beginner]]></category>
		<category><![CDATA[buttons]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.designbash.com/?p=193</guid>
		<description><![CDATA[Today we will be talking about CSS image buttons, something that every web developer absolutely needs to know and understand. Thankfully, these buttons are really easy to create and only require a few lines of CSS.]]></description>
			<content:encoded><![CDATA[<p>Today we will be talking about <strong>CSS image buttons</strong>, something that every web developer needs to know and understand. It&#8217;s really amazing how much of a difference a simple button can make on your conversion rate. In fact, I came across this comprehensive post that deals with that particular subject, <a href="http://www.jonnyhardwick.com/archives/2009/09/06/7-elements-of-a-high-converting-order-button/">check it out</a>. This post won&#8217;t focus so much on the particulars of a high-converting button, but it will teach you how to slap together a quick CSS button that uses an image as a background.<span id="more-193"></span></p>
<h3>Step 1 &#8211; Make or Find a Button</h3>
<p>For this tutorial I&#8217;ll be using my <a href="http://www.designbash.com/freebies/some-green-buttons/" target="_blank">green glossy buttons</a> from a previous freebie post. Feel free to download the source PSD and follow along, or just make your own button style.</p>
<h3>Step 2 &#8211; Prepare the Button</h3>
<p>Before we really get started, it&#8217;s important to know what size we want to make our button. For this example I&#8217;ll create a button that is quite large, I&#8217;m thinking around <strong>300px by 60px</strong> in size. So go ahead and crate a new Photoshop document with the dimensions you want.</p>
<p><img class="aligncenter size-full wp-image-194" title="css-button-tut1" src="http://www.designbash.com/wp-content/uploads/2010/01/css-button-tut1.jpg" alt="" width="500" height="250" /></p>
<p>After you&#8217;ve created the document, import my button (or yours) and scale it up so that it fills almost the entire document. If you have a little extra space on the sides it&#8217;s not the end of the world, just make sure that your button is perfectly centred on the canvas. To centre somthing perfectly you just need to:</p>
<ol>
<li>With your button folder/layer selected, use the marquee tool (<em>m-key</em>)  to select the entire canvas (<em>apple-a</em>)</li>
<li>Without deselecting anything, choose the Move tool (<em>v-key</em>) and use the alignment tools in the top panel to centre your button vertically and horizontally.</li>
</ol>
<p><br class="spacer_" /></p>
<p><img class="aligncenter size-full wp-image-195" title="css-alignment-tools" src="http://www.designbash.com/wp-content/uploads/2010/01/css-alignment-tools.jpg" alt="" width="500" height="250" /></p>
<p><br class="spacer_" /></p>
<div id="attachment_196" class="wp-caption aligncenter" style="width: 510px"><img class="size-full wp-image-196" title="cssbutton2" src="http://www.designbash.com/wp-content/uploads/2010/01/cssbutton2.jpg" alt="" width="500" height="196" /><p class="wp-caption-text">A Perfectly Centred Button</p></div>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<h3>Step 3 &#8211; Create a Rollover State</h3>
<p>Next up we need to create a <strong>rollover state</strong>. Basically, we need to <strong>double our canvas size (vertically) and duplicate our button. </strong>From the top menu select <strong>Image &gt; Canvas Size&#8230; </strong>and double the height of your canvas (120px if you&#8217;re following my example). Once your canvas size is doubled, divide it vertically with a horizontal guide.</p>
<p><img class="aligncenter size-full wp-image-200" title="css-button-double" src="http://www.designbash.com/wp-content/uploads/2010/01/css-button-double.png" alt="" width="479" height="345" /></p>
<p><img class="aligncenter size-full wp-image-201" title="doublebutton" src="http://www.designbash.com/wp-content/uploads/2010/01/doublebutton.jpg" alt="" width="500" height="250" /></p>
<p>Now you need to duplicate your button and centre it perfectly in the top section. The top button will be what our button looks like when you rollover, for now it looks the same as the bottom.</p>
<p><img class="aligncenter size-full wp-image-204" title="rollover-top01" src="http://www.designbash.com/wp-content/uploads/2010/01/rollover-top011.jpg" alt="" width="500" height="215" /></p>
<p>Next we add a rollover effect. If you&#8217;re using my buttons, you can open up the layer styles of the top button and slide the <strong>inner glow up to 75%</strong>. This will give our button a subtle glow effect when we hover over it.</p>
<p><img class="aligncenter size-full wp-image-205" title="effects" src="http://www.designbash.com/wp-content/uploads/2010/01/effects.jpg" alt="" width="500" height="250" /></p>
<p><img class="aligncenter size-full wp-image-207" title="effect-example" src="http://www.designbash.com/wp-content/uploads/2010/01/effect-example.jpg" alt="" width="500" height="201" /></p>
<p>With your button and rollover effect ready to go, you can now &#8220;<strong>save for web</strong>.&#8221; One important thing to consider here is what your background will be like. For my example I&#8217;ve made the background transparent and s<strong>aved my buttons in PNG format</strong>. This means my buttons are not supported in IE6, but you could just as easily choose a background color and ditch the transparency, making your buttons IE6 friendly.</p>
<h3>Step 4 &#8211; CSS Sprites and Some Basic HTML</h3>
<p>Now comes the fun part, creating the button. First, we&#8217;ll start with some markup, a simple and humble link:</p>
<pre class="brush:html"> &lt;a href="#" class="button"&gt;My Glossy Button&lt;/a&gt; </pre>
<p>I&#8217;ve given this link a class so that I can target it easier, but other than that it&#8217;s just a plain old link. Moving on let&#8217;s do some CSS magic. The basic idea is that we hide the link text using the text-indent property and give the link a background-image that only shows the non-rollover state. On hover we simply shift the background to show hover state, avoiding any loading time that is typical of CSS/Javascript image swaps.</p>
<pre class="brush:css">a.button {
display: block;
width: 300px;
height: 60px;
text-indent: -999em;
background: url(css-glossy-rollover.png) 0px -60px no-repeat;
}

a.button:hover {
background-position: 0px 0px;
}</pre>
<p>If you&#8217;ve done everything right the button should look something like this:</p>
<style type="text/css">
a.button {
display: block;
width: 300px;
height: 60px;
text-indent: -999em;
background: url(http://www.designbash.com/wp-content/uploads/2010/01/css-glossy-rollover.png) 0px -60px no-repeat;
}
a.button:hover {
background-position: 0px 0px;
}
</style>
<p><a href="#" class="button">My Glossy Button</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.designbash.com/tutorials/the-css-image-button-how-to-make-a-rollover/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Twitter Background &#8211; How to Make a Custom Background</title>
		<link>http://www.designbash.com/tutorials/twitter-background-how/</link>
		<comments>http://www.designbash.com/tutorials/twitter-background-how/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 19:18:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://www.designbash.com/?p=181</guid>
		<description><![CDATA[This quick tutorial will run through the basic task of creating a custom twitter background. It's really easy to do and makes your twitter page stand out from crowd. Whether you're a business or an individual, if you use twitter at all it's probably worth your time to make a custom background.]]></description>
			<content:encoded><![CDATA[<p>This quick tutorial will run through the basic task of creating a custom twitter background. It&#8217;s really easy to do and makes your twitter page stand out from crowd. Whether you&#8217;re a business or an individual, if you use twitter at all it&#8217;s probably worth your time to make a custom background.<span id="more-181"></span></p>
<h3>Step 1 &#8211; Size it Up</h3>
<p>Before making a background we need to think about the dimensions of the twitter site. Basically, your background will be sitting behind a container that is<strong> 763 pixels wide</strong>. Furthermore, we need to remember to keep our <strong>background image under 800k </strong>in size.</p>
<p><img class="aligncenter size-full wp-image-182" title="twitter-background-size" src="http://www.designbash.com/wp-content/uploads/2010/01/twitter-background-size.jpg" alt="Twitter Background Dimension" width="500" height="250" /></p>
<h3>Step 2 &#8211; Prepare the Photoshop Document</h3>
<p>With our size restrictions in mind, lets go ahead and start creating a background. First, create a new document that is <strong>1600px by 1200px in size at 72 DPI</strong>.</p>
<p><img class="aligncenter size-full wp-image-183" title="background-settings" src="http://www.designbash.com/wp-content/uploads/2010/01/background-settings.jpg" alt="" width="500" height="250" /></p>
<h3>Step 3 &#8211; Put in Some Guides</h3>
<p>The first thing I do when working in Photoshop is to place my guides. I first create a shape that is exactly 763-pixels and place it on the left side of the photoshop document. Twitter will justify (stick) your background to the left of the screen while allowing the main container to remain centred relative to your browser window. This makes it hard to know where to place your background elements, but you&#8217;ll probably want to place any important background elements within 150-pixels of the left side of the canvas.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-186" title="twitter-background-placement" src="http://www.designbash.com/wp-content/uploads/2010/01/twitter-background-placement.jpg" alt="" width="525" height="297" /></p>
<p><br class="spacer_" /></p>
<h3>Step 4 &#8211; Create a Mind Blowing Background</h3>
<p>This tutorial is more about the technical aspects of making a twitter background, not so much the actual design work. But when creating your background it&#8217;s important to remember that your background should fade to a solid color, otherwise people with large screens could end up seeing unattractive &#8220;cut&#8221; lines. Here are the steps that I took to make my background &#8220;work&#8221;:</p>
<ol>
<li>Created a nice background that has a radial gradient at the top</li>
<li>Applied a subtile background pattern</li>
<li>Used a masking layer to &#8220;fade out&#8221; the <strong>right</strong> and <strong>bottom</strong> edges of my pattern/gradient layers</li>
<li>Made a note of the solid color at the edges of my background (#481904 in my example).</li>
</ol>
<h3>Step 5 &#8211; Setup Twitter</h3>
<p>After logging into twitter, head over to <strong>settings/design </strong>area. You&#8217;ll need to set your background color to whatever you noted in the last step and then upload your new fancy image.</p>
<p>I know this background isn&#8217;t &#8220;mind blowing&#8221;, but it&#8217;s cute and simple and a good example of what you can do.</p>
<p><a href="https://twitter.com/emerson_lackey"><img class="aligncenter size-full wp-image-187" title="my-twitter-background" src="http://www.designbash.com/wp-content/uploads/2010/01/my-twitter-background.png" alt="" width="500" height="250" /></a></p>
<p><br class="spacer_" /></p>
<p>If you&#8217;re interested, feel free to download the blank background and add your own name.</p>
<p><br class="spacer_" /></p>
<div id="attachment_188" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.designbash.com/wp-content/uploads/2010/01/Twitter-Background-blank.png"><img class="size-medium wp-image-188" title="Twitter-Background-blank" src="http://www.designbash.com/wp-content/uploads/2010/01/Twitter-Background-blank-300x225.png" alt="Blank Twitter Background" width="300" height="225" /></a><p class="wp-caption-text">Click for the full size version</p></div>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.designbash.com/tutorials/twitter-background-how/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Animated GIF &#8211; How to Make a Loading Bar</title>
		<link>http://www.designbash.com/tutorials/animated-gif-how-to-make-a-loading-bar/</link>
		<comments>http://www.designbash.com/tutorials/animated-gif-how-to-make-a-loading-bar/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 18:02:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Animations]]></category>

		<guid isPermaLink="false">http://www.designbash.com/?p=94</guid>
		<description><![CDATA[Todays topic will deal with the wonderfully painful world of animated GIFs. Specifically, how to make animated GIFs inside of Photoshop. For this tutorial I'll be using Photoshop CS3 on a Mac, but I suspect that CS4 probably uses almost the same process. Alright, lets get started!]]></description>
			<content:encoded><![CDATA[<p>Todays topic will deal with the wonderfully painful world of animated GIFs. Specifically, <strong>how to make animated GIFs inside of Photoshop</strong>. For this tutorial I&#8217;ll be using Photoshop CS3 on a Mac, but I suspect that CS4 probably uses almost the same process. Alright, lets get started!<span id="more-94"></span></p>
<p><br class="spacer_" /></p>
<div id="attachment_126" class="wp-caption aligncenter" style="width: 274px"><a href="http://www.designbash.com/wp-content/uploads/2010/01/animated-loading-bar.gif"><img class="size-full wp-image-126" title="animated-loading-bar" src="http://www.designbash.com/wp-content/uploads/2010/01/animated-loading-bar.gif" alt="animated-loading-bar" width="264" height="34" /></a><p class="wp-caption-text">Our Final Product</p></div>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<p>First off, I know that it&#8217;s easy to find semi-customizable GIF makers around the web. This being said, I think it&#8217;s important to understand how to make these yourself, as it allows for a degree of customizability that would otherwise be impossible with the online tools such as <a href="http://www.ajaxload.info/" target="_blank">AjaxLoad</a> (a great tool to make little AJAX loaders).</p>
<h3>A Word of Warning</h3>
<p>I love Photoshop with all my heart, but to be honest, creating animated GIFs can be painful and annoying. Things just don&#8217;t work the way you would expect, and if you mess things up bad enough, it means sometimes redoing the entire animation (<em>aka make sure your history settings are set to longer than normal</em>). What makes this worse is that changing small details can be really annoying because it seems like you need to do it across ALL your frames of animation. If anyone out there has any insight into this please let me know and I&#8217;ll update this post. Thanks <img src='http://www.designbash.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<h3>Step One: Create a Nifty Looking Loader Bar</h3>
<p>First we&#8217;ll create a new Photoshop document with the following settings:</p>
<p><img class="aligncenter size-full wp-image-98" title="new-document-animated-loader" src="http://www.designbash.com/wp-content/uploads/2010/01/new-document-animated-loader-e1262893909516.png" alt="Animated Banner Settings" width="400" height="226" /></p>
<p>Next we need to create the background for the loading bar. When creating basic elements I generally try to use <strong>vector shapes</strong> whenever possible. This allows me to scale my work without losing quality and ends up saving me tons of time if I ever need to resize my document. Go ahead and create a vector rectangle shape (<em>U key</em>). Make sure that you&#8217;re making a shape, not a path. Your top toolbar should look like this:</p>
<p><img class="aligncenter size-full wp-image-100" title="vector-shape" src="http://www.designbash.com/wp-content/uploads/2010/01/vector-shape.png" alt="vector toolbar" width="409" height="27" /></p>
<p>Now, using the info panel for precision, make the rectangle shape exactly <strong>260px by 30px </strong>and centre it on in the document. Another thing that&#8217;s nice about vector shapes is how easy it is to change their color. All you need to do is double click the color swatch located on the left side of the layer (in the layer panel). For this example I choose a light grey <strong>#d2d2d2</strong>. Your basic outline should look something like this (<em>click to enlarge</em>):</p>
<p style="text-align: center;">0<a href="http://www.designbash.com/wp-content/uploads/2010/01/create-loader-shape-e1262896351926.png"><img class="aligncenter size-full wp-image-101" title="create-loader-shape" src="http://www.designbash.com/wp-content/uploads/2010/01/create-loader-shape-e1262896351926.png" alt="create loader shape" width="560" height="248" /></a></p>
<p style="text-align: left;">Next up we will add a subtle gradient overlay to give our loader background a little more depth. Make sure that <strong>foreground color is set to white</strong> <strong>(#ffffff)</strong> and double click on the layer  (<em>again, in the layer panel</em>) to pop open the layer styles dialog. In the Gradient Overlay section click on the Gradient dropdown to see all our possible gradients. In this instance we want to have a <strong>white to transparent gradient</strong>, which will probably be your second gradient swatch (<em>you did choose a white foreground, didn&#8217;t you?</em>). We will also be adding a small inner shadow:</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-107" title="background-styles" src="http://www.designbash.com/wp-content/uploads/2010/01/background-styles.png" alt="" width="316" height="521" /></p>
<p style="text-align: left;">If everything is working out, your image should look something like this:</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-108" title="animated-loader-background" src="http://www.designbash.com/wp-content/uploads/2010/01/animated-loader-background.png" alt="" width="400" height="200" /></p>
<p style="text-align: left;">OK, now let&#8217;s make the actual loader. I like the glossy candy-striped look, but you can really choose anything you want. Start by <strong>duplicating the layer we&#8217;ve been working on</strong>, and make sure that it is sitting on top of our background layer. Right-click on the new layer and choose &#8220;<strong>remove layer styles</strong>&#8221; to clear out our old styles and rename the layer to something like &#8220;loading bar.&#8221; I want to have a nice viberent red loading bar, so I choose #ff2f2f as my base color. Now we are going to add some layer styles that will give our loading bar that glossy look. Just like before, make sure that you have pure white selected as your foreground color. We are adding 4 different styles: an<strong> inner shadow</strong>, an <strong>inner glow</strong>, a <strong>gradient overlay</strong>, and a <strong>pattern overlay</strong>. If you want to use the same pattern that I&#8217;m using, I&#8217;ll attach it to this tutorial at the end.</p>
<p style="text-align: left;"><a href="http://www.designbash.com/wp-content/uploads/2010/01/loadingbar-layer-styles.png"><img class="aligncenter size-full wp-image-110" title="loadingbar-layer-styles" src="http://www.designbash.com/wp-content/uploads/2010/01/loadingbar-layer-styles.png" alt="" width="300" height="800" /></a></p>
<p style="text-align: left;">Whew, I know it&#8217;s a lot of styles, but it creates a really nice effect! At this point you should have something that looks kinda like this:</p>
<p style="text-align: left;"><img class="aligncenter size-full wp-image-111" title="loading-style" src="http://www.designbash.com/wp-content/uploads/2010/01/loading-style-e1262901279501.png" alt="loading bar style" width="398" height="197" /></p>
<p style="text-align: left;">Finally, you should reselect the background layer (the grey one) and transform the shape so that it sticks out 1px by on each side. This will give our loader a little border.</p>
<p style="text-align: left;"><img class="aligncenter size-full wp-image-113" title="with-border" src="http://www.designbash.com/wp-content/uploads/2010/01/with-border.png" alt="" width="339" height="95" /></p>
<h3>Step Two &#8211; Animating the GIF in Photoshop</h3>
<p>With our loader in vector format, we can now start the process of animation. There are quite a few ways of doing this and tons of little tricks and tips, but if you&#8217;ve never animated a GIF before I&#8217;ll try and keep this easy (there is probably a faster/more complicated way to do this).</p>
<p>First things first, transform your loading bar until it is only a few pixels wide:</p>
<p><img class="aligncenter size-full wp-image-114" title="only-a-few-px" src="http://www.designbash.com/wp-content/uploads/2010/01/only-a-few-px.png" alt="" width="329" height="85" />Now comes the annoying part. First you need to open up the animation window.</p>
<p><a href="http://www.designbash.com/wp-content/uploads/2010/01/animation-window.png"><img class="aligncenter size-full wp-image-115" title="animation-window" src="http://www.designbash.com/wp-content/uploads/2010/01/animation-window.png" alt="photoshop-animation-window" width="347" height="313" /></a></p>
<p style="text-align: left;">By default, your animation window is probably on the wrong setting (timeline mode) and we want to do this animation frame by frame. Adobe has hidden a huge menu in the animation window, it&#8217;s located in the top right corner, just below the close button. Click on it and select &#8220;<strong>convert to frame animation</strong>&#8220;. If you&#8217;ve done this right your animation window should now look something like this:</p>
<p style="text-align: center;"><a href="http://www.designbash.com/wp-content/uploads/2010/01/frame-animation.png"><img class="aligncenter size-full wp-image-116" title="frame-animation" src="http://www.designbash.com/wp-content/uploads/2010/01/frame-animation.png" alt="" width="397" height="96" /></a></p>
<p style="text-align: left;">Now we need to put in some guides so that we can animate our loading bar with precision. The number of slices you put in will correspond with the smoothness of your loading bar. The more guides you place, the more frames you&#8217;ll need, and the smoother the animation will be. It doesn&#8217;t need to be exact, but try to keep it relatively uniform. Take a look at my example:</p>
<p style="text-align: left;"><img class="aligncenter size-full wp-image-118" title="loader-with-guides" src="http://www.designbash.com/wp-content/uploads/2010/01/loader-with-guides.png" alt="loader with guides" width="323" height="75" /></p>
<p style="text-align: left;">With our guides in place we can start the actual animation process. In the animation panel you can add new frames by clicking the new frame button (<em>bottom of the animation window, just left of the trash icon</em>). While clicked on the second frame, duplicate the loading bar, and horizontally transform it &#8211; moving the right side up by one &#8220;notch.&#8221;</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-119" title="first-increment" src="http://www.designbash.com/wp-content/uploads/2010/01/first-increment-e1262971859944.png" alt="" width="500" height="190" /></p>
<p style="text-align: left;">Photoshop allows you to hide and show layers within the animation timeline, and that&#8217;s really the magic that will make our loading bar move. Click back on the first frame of animation and hide the duplicated layer we just created. Now when you click between the first and second frame, you should see the loading bar get bigger and smaller. It&#8217;s good practice to name your layers after their corresponding frames, so the first (smallest) loading bar layer should  be named &#8220;1st&#8221;.</p>
<p style="text-align: left;"><img class="aligncenter size-full wp-image-123" title="more-increments" src="http://www.designbash.com/wp-content/uploads/2010/01/more-increments-e1262972279493.png" alt="" width="500" height="200" /></p>
<p style="text-align: left;">Hopefully you&#8217;re getting the idea by now. Go ahead and finishing incrementing the loader until you&#8217;ve filled up the entire thing. It can be hassle to do all the frames, and you&#8217;ll find that Photoshop can be a little annoying. What seemed to work for me was to <strong>1. add new frame, 2. hide the current loader step, 3. duplicate the hidden loader step, 4. unhide and transform the duplicated loader step</strong>&#8230; <em>repeat, repeat, repeat&#8230; (If you do it in this order you won&#8217;t need to go back and re-hide the duplicated loader step in each animation frame). </em>My animation took a total of 26 frames, yikes!</p>
<p style="text-align: left;"><img class="aligncenter size-full wp-image-124" title="26 frames" src="http://www.designbash.com/wp-content/uploads/2010/01/26-frames-e1262973170777.png" alt="" width="450" height="572" /></p>
<p style="text-align: left;">You can tweak the timing in the animation window &#8211; in my project each frame is set to take 0.07 seconds:</p>
<p style="text-align: left;"><img class="aligncenter size-full wp-image-125" title="07-seconds" src="http://www.designbash.com/wp-content/uploads/2010/01/07-seconds.png" alt="" width="470" height="125" /></p>
<p style="text-align: left;">When you&#8217;re ready to export make sure you save it as a GIF and the animation should work just fine. The finished product looks quite nice: <em>(for this example I&#8217;ve set the gif to automatically repeat, although you probably only want it to play once)</em></p>
<p style="text-align: left;"><em><a href="http://www.designbash.com/wp-content/uploads/2010/01/animated-loading-bar.gif"><img class="aligncenter size-full wp-image-126" title="animated-loading-bar" src="http://www.designbash.com/wp-content/uploads/2010/01/animated-loading-bar.gif" alt="animated-loading-bar" width="264" height="34" /></a><br />
 </em></p>
<p>So thats it! As I mentioned before, there is probably a much easier and efficient method of doing this, but for simple animations this technique will work fine.</p>
<p>Feel free to <strong><a href="http://www.designbash.com/wp-content/uploads/2010/01/animated-loader.psd">download the source PSD</a></strong> and have a look for yourself!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.designbash.com/tutorials/animated-gif-how-to-make-a-loading-bar/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CSS Textarea Style &#8211; Quick n&#8217; Easy</title>
		<link>http://www.designbash.com/tutorials/css-textarea-style-quick-n-easy/</link>
		<comments>http://www.designbash.com/tutorials/css-textarea-style-quick-n-easy/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 14:13:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Beginner]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML Email]]></category>

		<guid isPermaLink="false">http://www.designbash.com/?p=79</guid>
		<description><![CDATA[I'm not sure why, but so many sites seem to ignore their horrible CSS textarea style. How many times have you used a textarea that had zero padding?]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m not sure why, but so many sites seem to ignore their <strong>horrible CSS textarea style</strong>. How many times have you used a textarea that had zero padding? or even worse, it used the default &#8220;Times New Roman&#8221; font because the designer was too lazy too fix it?</p>
<p><span id="more-79"></span></p>
<p>Well this article is going to be a quick example of a nice textarea styled with CSS. There is no reason why this should be hard to do, as it literally takes 2 minutes to put together.</p>
<p>Let&#8217;s get started. First we have our textarea:</p>
<pre class="brush:html">

<textarea id="commentBox"></textarea>
</pre>
<p>Just a couple things to note here&#8230; First off, try and make sure there are no extra spaces between the start of the textarea tag and the end. In my experiences having any space will sometimes cause the textarea to be pre-filled with spaces, which is both annoying and confusing when you&#8217;re trying to fill out a form. Second, you almost always want to give your textarea an id, you&#8217;ll need it to target with the label.</p>
<p>Next up some CSS styles:</p>
<pre class="brush:css">
#commentBox {
     display: block;
     width: 400px;
     height: 120px;
     padding: 8px;
     border: 1px solid #cccccc;
     line-height: 130%;
     font-size: 13px;
}
</pre>
<p>What we end up with is a nice standard textarea that can be customized to fit whatever theme you need. It should look like the example textarea below:</p>
<style type="text/css">
#commentBoxExample {
     width: 400px;
     height: 120px;
     display: block;
     padding: 8px;
     border: 1px solid #cccccc;
     line-height: 130%;
     font-size: 13px;
     margin: 0 auto;
} 
#textareaHolder {
     padding: 15px;
     background: #efefef;
     border: 1px solid #cccccc;
}
</style>
<div id="textareaHolder"><textarea id="commentBoxExample">This is just an example and only an example&#8230;</textarea></div>
<p>So thats it! Only 7-10 lines of CSS for a basic but nice looking textarea. From here it would be really easy to customize this with background-images, fancy borders, different colors, jQuery hover states, or whatever else you think would look nice.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.designbash.com/tutorials/css-textarea-style-quick-n-easy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Mail HTML Email</title>
		<link>http://www.designbash.com/html-email/how-to-mail-html-email/</link>
		<comments>http://www.designbash.com/html-email/how-to-mail-html-email/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 21:34:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML Email]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Beginner]]></category>
		<category><![CDATA[Email]]></category>

		<guid isPermaLink="false">http://www.designbash.com/?p=46</guid>
		<description><![CDATA[If you're anything like me, you may have wondered how to send HTML emails without using a fancy service like Campaign Monitor or Mail Chimp. The truth is, it's actually much easier than you probably think. There are just a few steps you need to follow.]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re anything like me, you may have wondered how to <strong>mail HTML emails</strong> without using a fancy service like <a href="http://www.campaignmonitor.com/" target="_blank"><strong>Campaign Monitor</strong></a> or <a href="http://www.mailchimp.com/" target="_blank"><strong>Mail Chimp</strong></a>. The truth is, it&#8217;s actually much easier than you probably think. There are just a few steps you need to follow.</p>
<p><span id="more-46"></span></p>
<h3>Step 1 &#8211; Get Thunderbird</h3>
<p style="text-align: center;"><a href="http://www.mozillamessaging.com"><img class="aligncenter size-full wp-image-47" title="get-thunderbird-email" src="http://www.designbash.com/wp-content/uploads/2010/01/get-thunderbird.png" alt="get-thunderbird-email" width="405" height="214" /></a></p>
<p>For this example I&#8217;ll be using <a href="http://www.mozillamessaging.com" target="_blank"><strong>Thunderbird</strong></a>, a great open-source mail client put together by the same people who bring you <a href="http://www.mozilla.com/firefox/" target="_blank"><strong>Firefox</strong></a>. I&#8217;m sure you can use other mail clients to <strong>mail HTML email</strong>, but I really enjoy Thunderbird so that&#8217;s what I&#8217;ve decided to use. You&#8217;ll need to get everything setup before you can actually send any HTML email, but that&#8217;s really outside the scope of this quick walkthrough.</p>
<h3>Step 2 &#8211; Craft Your HTML Email</h3>
<p>The next step is to craft your HTML email. This is definitely the hardest part and I would highly recommend looking through tutorial before trying anything too fancy. <a href="http://articles.sitepoint.com/article/code-html-email-newsletters" target="_blank">Sitepoint has a nice little article</a> on the subject, or if you&#8217;re feeling lazy you can grab a pre-fab <a href="http://www.campaignmonitor.com/templates/">HTML email template from Campaign Monitor</a>.</p>
<h3>Step 3 &#8211; Upload Images to a Public Area</h3>
<p>If you&#8217;re using any images in your HTML email, <strong>you&#8217;ll need to find a place to host them onlin</strong>e. If you fail to do this, all your images will show up broken. Ideally you&#8217;ll want to use your own hosting, but if you need a quick fix you can probably use a service like <a href="http://imgur.com/" target="_blank"><strong>imgur</strong></a> to temporarily host them for you. Once your images are all online, make sure to change all the image paths in your HTML email. <strong>The image path needs to be absolute, which means you need to put in the full URL </strong>(<em>ie. http://www.yoursite.com/email-images/your-image.jpg</em>).</p>
<h3>Step 4 &#8211; Use Thunderbird to Mail the HTML Email</h3>
<p>Create a new message just like you normally would, but leave everything blank to start. From the top menu click <strong>Insert / HTML </strong>then paste in your HTML email. (<em>click the images to see screenshots</em>)</p>
<p><br class="spacer_" /></p>
<div id="attachment_48" class="wp-caption aligncenter" style="width: 265px"><a href="http://www.designbash.com/wp-content/uploads/2010/01/create-new-message.jpg"><img class="size-medium wp-image-48" title="create-new-message" src="http://www.designbash.com/wp-content/uploads/2010/01/create-new-message-255x300.jpg" alt="create-new-email" width="255" height="300" /></a><p class="wp-caption-text">Create a Blank Message</p></div>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<div id="attachment_49" class="wp-caption aligncenter" style="width: 310px"><a style="text-decoration: none;" href="http://www.designbash.com/wp-content/uploads/2010/01/click-insert-html.jpg"><img class="size-medium wp-image-49" title="click-insert-html" src="http://www.designbash.com/wp-content/uploads/2010/01/click-insert-html-300x132.jpg" alt="mail-html-email" width="300" height="132" /></a><p class="wp-caption-text">Click Insert / HTML</p></div>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<div id="attachment_50" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.designbash.com/wp-content/uploads/2010/01/insert-html-email.jpg"><img class="size-medium wp-image-50" title="insert-html-email" src="http://www.designbash.com/wp-content/uploads/2010/01/insert-html-email-300x125.jpg" alt="insert-html-into-email-thunderbird" width="300" height="125" /></a><p class="wp-caption-text">Paste in Your HTML Email</p></div>
<p><br class="spacer_" /></p>
<h3>And thats it! Start sending your HTML emails!</h3>
]]></content:encoded>
			<wfw:commentRss>http://www.designbash.com/html-email/how-to-mail-html-email/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

