<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:yt="http://gdata.youtube.com/schemas/2007" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
   <channel>
      <title>Design Shack - Articles &amp; Community</title>
      <description>Serving you all our own tutorials and articles, along with daily community news.</description>
      <link>http://pipes.yahoo.com/pipes/pipe.info?_id=4a90daef25bf54d468b45b1b02f5658c</link>
      <atom:link rel="next" href="http://pipes.yahoo.com/pipes/pipe.run?_id=4a90daef25bf54d468b45b1b02f5658c&amp;_render=rss&amp;page=2" />
      <pubDate>Wed, 30 May 2012 20:03:49 +0000</pubDate>
      <generator>http://pipes.yahoo.com/pipes/</generator>
      <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/designshacklinks" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="designshacklinks" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
         <title>Design Inspiration: Video Play Button</title>
         <link>http://designshack.net/design/video-play-button</link>
         <description>&lt;p&gt;An intended replacement skin for the Youtube button that makes an impression through its complete simplicity.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;I like the subtle use of blue to add character to the design and the gentle use of gradients.&lt;/p&gt;

	&lt;br&gt;

	&lt;a rel="nofollow" target="_blank" href="http://designshack.net/out/video-play-button"&gt;&lt;img src="http://designshack.net/images/designs/video-play-button.jpg"/&gt;&lt;/a&gt;&lt;br&gt;&lt;br&gt;

	&lt;br&gt;

	&lt;p&gt;This design was featured on the Wednesday 30th of May 2012. It falls under the category of &lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/all/all/element"&gt;Element&lt;/a&gt;, and has a layout style of &lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/all/other/all"&gt;Other&lt;/a&gt;.&lt;/p&gt;

	&lt;p&gt;If you'd like, you can &lt;a rel="nofollow" target="_blank" href="http://designshack.net/out/video-play-button" title="Go To Video Play Button"&gt;visit this site&lt;/a&gt;, or view all our other &lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/"&gt;featured designs&lt;/a&gt;.&lt;/p&gt;


	&lt;br&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/666666/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#666666;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/888888/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#888888;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/cccccc/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#cccccc;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/aaaaaa/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#aaaaaa;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/4466aa/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#4466aa;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/226688/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#226688;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/66aacc/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#66aacc;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/0066cc/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#0066cc;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/444444/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#444444;"&gt;&lt;/a&gt;
	&lt;div style="clear:both;"&gt;&lt;/div&gt;

	&lt;br&gt;</description>
         <guid isPermaLink="false">http://designshack.net/design/video-play-button</guid>
         <pubDate>Wed, 30 May 2012 12:00:00 +0000</pubDate>
      </item>
      <item>
         <title>Design Inspiration: Upside!</title>
         <link>http://designshack.net/design/upside</link>
         <description>&lt;p&gt;A beautiful and perfectly elegant mark for the Down Syndrome Foundation.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;I love the bright colours and unique concept. The hand-drawn quality gives this mark character and sets it apart.&lt;/p&gt;

	&lt;br&gt;

	&lt;a rel="nofollow" target="_blank" href="http://designshack.net/out/upside"&gt;&lt;img src="http://designshack.net/images/designs/upside.jpg"/&gt;&lt;/a&gt;&lt;br&gt;&lt;br&gt;

	&lt;br&gt;

	&lt;p&gt;This design was featured on the Wednesday 30th of May 2012. It falls under the category of &lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/all/all/logo"&gt;Logo&lt;/a&gt;, and has a layout style of &lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/all/other/all"&gt;Other&lt;/a&gt;.&lt;/p&gt;

	&lt;p&gt;If you'd like, you can &lt;a rel="nofollow" target="_blank" href="http://designshack.net/out/upside" title="Go To Upside!"&gt;visit this site&lt;/a&gt;, or view all our other &lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/"&gt;featured designs&lt;/a&gt;.&lt;/p&gt;


	&lt;br&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/66cccc/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#66cccc;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/eecc44/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#eecc44;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/eeeeee/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#eeeeee;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/eeeeaa/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#eeeeaa;"&gt;&lt;/a&gt;
	&lt;div style="clear:both;"&gt;&lt;/div&gt;

	&lt;br&gt;</description>
         <guid isPermaLink="false">http://designshack.net/design/upside</guid>
         <pubDate>Wed, 30 May 2012 12:00:00 +0000</pubDate>
      </item>
      <item>
         <title>Design Inspiration: Jan Mense</title>
         <link>http://designshack.net/design/jan-mense</link>
         <description>&lt;p&gt;A bright, fun, and characteristic design for a personal portfolio site. With a fun balloon animation to boot!&lt;/p&gt;

	&lt;br&gt;

	&lt;a rel="nofollow" target="_blank" href="http://designshack.net/out/jan-mense"&gt;&lt;img src="http://designshack.net/images/designs/jan-mense.jpg"/&gt;&lt;/a&gt;&lt;br&gt;&lt;br&gt;

	&lt;br&gt;

	&lt;p&gt;This design was featured on the Wednesday 30th of May 2012. It falls under the category of &lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/all/all/portfolio"&gt;Portfolio&lt;/a&gt;, and has a layout style of &lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/all/3column/all"&gt;Three Column&lt;/a&gt;.&lt;/p&gt;

	&lt;p&gt;If you'd like, you can &lt;a rel="nofollow" target="_blank" href="http://designshack.net/out/jan-mense" title="Go To Jan Mense"&gt;visit this site&lt;/a&gt;, or view all our other &lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/"&gt;featured designs&lt;/a&gt;.&lt;/p&gt;


	&lt;br&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/eecc88/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#eecc88;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/444422/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#444422;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/888822/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#888822;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/ccaa22/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#ccaa22;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/666666/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#666666;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/ccaa66/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#ccaa66;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/886644/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#886644;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/222222/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#222222;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/664444/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#664444;"&gt;&lt;/a&gt;
	&lt;div style="clear:both;"&gt;&lt;/div&gt;

	&lt;br&gt;</description>
         <guid isPermaLink="false">http://designshack.net/design/jan-mense</guid>
         <pubDate>Wed, 30 May 2012 12:00:00 +0000</pubDate>
      </item>
      <item>
         <title>Code a Simple Folded Corner Effect With CSS</title>
         <link>http://designshack.net/articles/css/code-a-simple-folded-corner-effect-with-css/</link>
         <description>This week we have yet another fun and simple CSS project for you to hone your coding chops on. This time around we&amp;#8217;ll be creating the illusion of a page with one corner that has been folded over. With the power of pseudo elements, we&amp;#8217;ll create some CSS triangles that we can then push into [...]</description>
         <guid isPermaLink="false">http://designshack.net/?p=33143</guid>
         <pubDate>Wed, 30 May 2012 09:00:34 +0000</pubDate>
         <content:encoded><![CDATA[<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/ds-pagefold-11.jpg" alt="screenshot" width="510"/></div>
<p>This week we have yet another fun and simple CSS project for you to hone your coding chops on. This time around we&#8217;ll be creating the illusion of a page with one corner that has been folded over.</p>
<p>With the power of pseudo elements, we&#8217;ll create some CSS triangles that we can then push into place to create our page fold. Once we&#8217;re all finished, you&#8217;ll be able to simply apply a class to any div to add in the effect. </p>
<p><span id="more-33143"></span><br />
<em>Like the article? Be sure to subscribe to our <a rel="nofollow">RSS feed</a> and follow us on <a rel="nofollow" target="_blank" href="http://twitter.com/designshack">Twitter</a> to stay up on recent content.</em></p>
<h2>The Concept</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/ds-pagefold-10.jpg" alt="screenshot" width="510"/></div>
<p><strong>Demo:</strong> <a rel="nofollow" target="_blank" href="http://tinkerbin.com/IQLRbSIJ">Click here</a> to launch.</p>
<p>Recently, I wanted to add a little bit of character to a simple text container and decided to try folding over one of the corners. With the help of an image, this is a pretty easy task. However, if we&#8217;re attempting to go a pure CSS route, it takes more time and effort.</p>
<p>The method that I came up with is surely not innovative, but I thought it was interesting enough to share here. Basically, what we need, in addition to a rectangular box, is two triangles. We&#8217;ll push these triangles into the positions shown below.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/ds-pagefold-1.jpg" alt="screenshot" width="510"/></div>
<p>Once we have the triangles into place, we can change the top triangle to the same color as the background, and suddenly we&#8217;ve got our nice little page fold effect. Pretty easy!</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/ds-pagefold-2.jpg" alt="screenshot" width="510"/></div>
<p>Now that we have a plan in place, we can begin building our shapes using CSS. There&#8217;s really no great built-in methodology for creating triangles with CSS so we&#8217;ll have to turn to some border voodoo. </p>
<h2>The HTML</h2>
<p>To get started, create a div like the one shown below. I&#8217;ve thrown in a headline with a paragraph, one class for general page styles that we might want to reuse elsewhere and finally one class to apply the page fold effect (tl stands for &#8220;top left&#8221;, we&#8217;ll create another for a top right fold later). </p>
<div style="overflow:auto;background-color:#fff;">

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">div</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;page foldtl&quot;</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">h2</span>&gt;</span>Headline<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">h2</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">p</span>&gt;</span>Lorem ipsum dolor sit amet...<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">p</span>&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">div</span>&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">div</span>&gt;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<p>That&#8217;s all we&#8217;ll need for now. Let&#8217;s jump over to our CSS and get this thing styled!</p>
<h2>Page CSS</h2>
<p>For the CSS, we&#8217;ll start by coding up the general look of our little page without the fold effect. I started by giving the background a nice dark color, then moved on to styling the actual page class. Give it a width, height and margin, and assign white to the background color. </p>
<p>As an optional step, I included a very subtle background gradient. As always, this takes an ungodly chunk of code if we&#8217;re trying to play nice with as many browsers as possible. If you feel that it&#8217;s not worth it, simply ditch the gradient. </p>
<div style="overflow:auto;background-color:#fff;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">body <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">background</span><span style="color:#00AA00;">:</span> <span style="color:#cc00cc;">#272822</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
.<span style="color:#000000;font-weight:bold;">page</span> <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">background</span><span style="color:#00AA00;">:</span> <span style="color:#cc00cc;">#fff</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">width</span><span style="color:#00AA00;">:</span> <span style="color:#933;">250px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">height</span><span style="color:#00AA00;">:</span> <span style="color:#933;">330px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">margin</span><span style="color:#00AA00;">:</span> <span style="color:#933;">50px</span><span style="color:#00AA00;">;</span>
&nbsp;
 <span style="color:#808080;font-style:italic;">/* Optional Gradient */</span>
  <span style="color:#000000;font-weight:bold;">background</span><span style="color:#00AA00;">:</span> -moz-linear-gradient<span style="color:#00AA00;">&#40;</span><span style="color:#000000;font-weight:bold;">top</span><span style="color:#00AA00;">,</span>  <span style="color:#cc00cc;">#ffffff</span> <span style="color:#933;">0%</span><span style="color:#00AA00;">,</span> <span style="color:#cc00cc;">#e5e5e5</span> <span style="color:#933;">100%</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span> <span style="color:#808080;font-style:italic;">/* FF3.6+ */</span>
  <span style="color:#000000;font-weight:bold;">background</span><span style="color:#00AA00;">:</span> -webkit-gradient<span style="color:#00AA00;">&#40;</span>linear<span style="color:#00AA00;">,</span> <span style="color:#000000;font-weight:bold;">left</span> <span style="color:#000000;font-weight:bold;">top</span><span style="color:#00AA00;">,</span> <span style="color:#000000;font-weight:bold;">left</span> <span style="color:#000000;font-weight:bold;">bottom</span><span style="color:#00AA00;">,</span> color-stop<span style="color:#00AA00;">&#40;</span><span style="color:#933;">0%</span><span style="color:#00AA00;">,</span><span style="color:#cc00cc;">#ffffff</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">,</span> color-stop<span style="color:#00AA00;">&#40;</span><span style="color:#933;">100%</span><span style="color:#00AA00;">,</span><span style="color:#cc00cc;">#e5e5e5</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span> <span style="color:#808080;font-style:italic;">/* Chrome,Safari4+ */</span>
  <span style="color:#000000;font-weight:bold;">background</span><span style="color:#00AA00;">:</span> -webkit-linear-gradient<span style="color:#00AA00;">&#40;</span><span style="color:#000000;font-weight:bold;">top</span><span style="color:#00AA00;">,</span>  <span style="color:#cc00cc;">#ffffff</span> <span style="color:#933;">0%</span><span style="color:#00AA00;">,</span><span style="color:#cc00cc;">#e5e5e5</span> <span style="color:#933;">100%</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span> <span style="color:#808080;font-style:italic;">/* Chrome10+,Safari5.1+ */</span>
  <span style="color:#000000;font-weight:bold;">background</span><span style="color:#00AA00;">:</span> -o-linear-gradient<span style="color:#00AA00;">&#40;</span><span style="color:#000000;font-weight:bold;">top</span><span style="color:#00AA00;">,</span>  <span style="color:#cc00cc;">#ffffff</span> <span style="color:#933;">0%</span><span style="color:#00AA00;">,</span><span style="color:#cc00cc;">#e5e5e5</span> <span style="color:#933;">100%</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span> <span style="color:#808080;font-style:italic;">/* Opera 11.10+ */</span>
  <span style="color:#000000;font-weight:bold;">background</span><span style="color:#00AA00;">:</span> -ms-linear-gradient<span style="color:#00AA00;">&#40;</span><span style="color:#000000;font-weight:bold;">top</span><span style="color:#00AA00;">,</span>  <span style="color:#cc00cc;">#ffffff</span> <span style="color:#933;">0%</span><span style="color:#00AA00;">,</span><span style="color:#cc00cc;">#e5e5e5</span> <span style="color:#933;">100%</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span> <span style="color:#808080;font-style:italic;">/* IE10+ */</span>
  <span style="color:#000000;font-weight:bold;">background</span><span style="color:#00AA00;">:</span> linear-gradient<span style="color:#00AA00;">&#40;</span><span style="color:#000000;font-weight:bold;">top</span><span style="color:#00AA00;">,</span>  <span style="color:#cc00cc;">#ffffff</span> <span style="color:#933;">0%</span><span style="color:#00AA00;">,</span><span style="color:#cc00cc;">#e5e5e5</span> <span style="color:#933;">100%</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span> <span style="color:#808080;font-style:italic;">/* W3C */</span>
  filter<span style="color:#00AA00;">:</span> progid<span style="color:#3333ff;">:DXImageTransform</span><span style="color:#6666ff;">.Microsoft</span>.gradient<span style="color:#00AA00;">&#40;</span> startColorstr<span style="color:#00AA00;">=</span><span style="color:#ff0000;">'#ffffff'</span><span style="color:#00AA00;">,</span> endColorstr<span style="color:#00AA00;">=</span><span style="color:#ff0000;">'#e5e5e5'</span><span style="color:#00AA00;">,</span>GradientType<span style="color:#00AA00;">=</span><span style="color:#cc66cc;">0</span> <span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span> <span style="color:#808080;font-style:italic;">/* IE6-9 */</span>
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<p>Now that we&#8217;ve got the basic container styled, it&#8217;s time to make the text a little better. For the h2, I made it nice and large and scooted it pretty far from the top so that it won&#8217;t get in the way of the page fold. Also, I used the Google Web Font <a rel="nofollow" target="_blank" href="http://www.google.com/webfonts#QuickUsePlace:quickUse/Family:Lilita+One">Lilita One</a>. Embedding this is as easy as copying and pasting the code given to you on the page in that link. </p>
<p>Finally, to finish off the text, I added some padding to the paragraph, set its font and made brought its color a few shades back from black to help set it off from the headline. </p>
<div style="overflow:auto;background-color:#fff;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">.<span style="color:#000000;font-weight:bold;">page</span> h2 <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">padding</span><span style="color:#00AA00;">:</span> <span style="color:#933;">85px</span> <span style="color:#cc66cc;">0</span> <span style="color:#cc66cc;">0</span> <span style="color:#933;">20px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">font</span><span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">400</span> <span style="color:#933;">35px</span>/<span style="color:#cc66cc;">1.5</span> <span style="color:#ff0000;">'Lilita One'</span><span style="color:#00AA00;">,</span> Helvetica<span style="color:#00AA00;">,</span> <span style="color:#993333;">sans-serif</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
.<span style="color:#000000;font-weight:bold;">page</span> p <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">padding</span><span style="color:#00AA00;">:</span> <span style="color:#933;">10px</span> <span style="color:#933;">20px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">font</span><span style="color:#00AA00;">:</span> <span style="color:#933;">12px</span>/<span style="color:#cc66cc;">1.5</span> Helvetica<span style="color:#00AA00;">,</span> <span style="color:#993333;">sans-serif</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">color</span><span style="color:#00AA00;">:</span> <span style="color:#cc00cc;">#4b4b4b</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<h3>Progress Check</h3>
<p>At this point, you should have a nice little page something like the one shown below. It&#8217;s not much to look at right now, but it&#8217;s a solid start. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/ds-pagefold-3.jpg" alt="screenshot" width="510"/></div>
<h2>CSS Triangles</h2>
<p>Before we proceed, we have to learn to make a triangle with CSS. To begin this process, create an empty div and give it a class of &#8220;triangle&#8221;. Now set both the height and width to zero but apply a really thick border to the bottom and the left sides (use two different colors). Here&#8217;s the result that you&#8217;ll get:</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/ds-pagefold-4.jpg" alt="screenshot" width="510"/></div>
<p>As you can see, this has created a square that&#8217;s split diagonally from the bottom left corner to the top right corner. Each border corresponds to one of the triangles that result. Now watch what happens if we turn one of those borders transparent:</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/ds-pagefold-5.jpg" alt="screenshot" width="510"/></div>
<p>There you have it, a triangle made with pure CSS. We can even tweak the direction of the triangle by applying borders to different sides:</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/ds-pagefold-6.jpg" alt="screenshot" width="510"/></div>
<p>Make sure that you set the transparent border to the direction that you want the hypotenuse to be facing. So if you want it to face right, make the right border transparent. The reverse is true for the other borders. If you want the hypotenuse to face down, set the top border. If you want it to face up, set the bottom border.  </p>
<p>Check out <a rel="nofollow" target="_blank" href="http://tinkerbin.com/uhj4eLWT">this Tinkerbin</a> to see an example of all four options at work. </p>
<h2>Folding the Page</h2>
<p>Now it&#8217;s time to use this knowledge to fold the page over. To do this, we need to follow three steps. First, we&#8217;ll style the &#8220;foldtl&#8221; class that we set up before. Next, we&#8217;ll add one triangle using the :before pseudo element. Finally, we&#8217;ll add the second triangle using the :after pseudo element. </p>
<div style="overflow:auto;background-color:#fff;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color:#6666ff;">.foldtl</span> <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">position</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">relative</span><span style="color:#00AA00;">;</span>
  -webkit-box-shadow<span style="color:#00AA00;">:</span> <span style="color:#933;">5px</span> <span style="color:#933;">5px</span> <span style="color:#933;">5px</span> rgba<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0.8</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
  -moz-box-shadow<span style="color:#00AA00;">:</span> <span style="color:#933;">5px</span> <span style="color:#933;">5px</span> <span style="color:#933;">5px</span> rgba<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0.8</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
  box-shadow<span style="color:#00AA00;">:</span> <span style="color:#933;">5px</span> <span style="color:#933;">5px</span> <span style="color:#933;">5px</span> rgba<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0.8</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<p>As you can see, all we&#8217;ve done for the main class is apply relative positioning (this helps the absolutely positioned triangles) and set a box shadow. As a side note, this project is much easier without shadows, but I wanted to make sure you knew that it could still work. You just have to make sure that the shadow is offset enough that it doesn&#8217;t stick out on the side with the page fold. </p>
<p>Now it&#8217;s time to create our first triangle. Call up the :before pseudo element, set its contents to nothing, absolutely position it to the origin, then use the triangle code we just learned above. </p>
<div style="overflow:auto;background-color:#fff;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color:#6666ff;">.foldtl</span><span style="color:#3333ff;">:before </span><span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">content</span><span style="color:#00AA00;">:</span> <span style="color:#ff0000;">&quot;&quot;</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">position</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">absolute</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">top</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0%</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">left</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0%</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">width</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">height</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">border-bottom</span><span style="color:#00AA00;">:</span> <span style="color:#933;">70px</span> <span style="color:#993333;">solid</span> <span style="color:#cc00cc;">#eee</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">border-left</span><span style="color:#00AA00;">:</span> <span style="color:#933;">70px</span> <span style="color:#993333;">solid</span> <span style="color:#993333;">transparent</span><span style="color:#00AA00;">;</span>
  -webkit-box-shadow<span style="color:#00AA00;">:</span> <span style="color:#933;">7px</span> <span style="color:#933;">7px</span> <span style="color:#933;">7px</span> rgba<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0.3</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
  -moz-box-shadow<span style="color:#00AA00;">:</span> <span style="color:#933;">7px</span> <span style="color:#933;">7px</span> <span style="color:#933;">7px</span> rgba<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0.3</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
  box-shadow<span style="color:#00AA00;">:</span> <span style="color:#933;">7px</span> <span style="color:#933;">7px</span> <span style="color:#933;">7px</span> rgba<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0.3</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<p>As you can see, I set the size to 70px and the color to #eee, which is a little darker than the page color because this is the triangle that creates the fold over effect. Once again, the shadow has to be significantly offset to look right.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/ds-pagefold-7.jpg" alt="screenshot" width="510"/></div>
<h3>Cutout the Corner</h3>
<p>To finish up, we need to position our second triangle to cut out that top left corner. This uses pretty much the same syntax as the last one, only the color of the triangle is the same as the body and the direction has been reversed. </p>
<p><em>It turns out that this step isn&#8217;t really necessary, see the Update section below for more information.</em></p>
<div style="overflow:auto;background-color:#fff;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color:#6666ff;">.foldtl</span><span style="color:#3333ff;">:after </span><span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">content</span><span style="color:#00AA00;">:</span> <span style="color:#ff0000;">&quot;&quot;</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">position</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">absolute</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">top</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0%</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">left</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0%</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">width</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">height</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">border-top</span><span style="color:#00AA00;">:</span> <span style="color:#933;">69px</span> <span style="color:#993333;">solid</span> <span style="color:#cc00cc;">#272822</span><span style="color:#00AA00;">;</span> 
  <span style="color:#000000;font-weight:bold;">border-right</span><span style="color:#00AA00;">:</span> <span style="color:#933;">69px</span> <span style="color:#993333;">solid</span> <span style="color:#993333;">transparent</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<p>With that, our page fold effect is all finished! Here&#8217;s what it looks like:</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/ds-pagefold-8.jpg" alt="screenshot" width="510"/></div>
<h2>Flipping It Around</h2>
<p>Now that we&#8217;ve finished our top left page fold, it&#8217;s time to flip it around and see if we can pull off the same thing on the other side. The syntax is almost identical, just offset from the right instead of the left with your absolute positioning and flip your triangles around.</p>
<div style="overflow:auto;background-color:#fff;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color:#6666ff;">.foldtr</span> <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">position</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">relative</span><span style="color:#00AA00;">;</span>
  -webkit-box-shadow<span style="color:#00AA00;">:</span> <span style="color:#933;">-5px</span> <span style="color:#933;">7px</span> <span style="color:#933;">5px</span> rgba<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0.8</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
  -moz-box-shadow<span style="color:#00AA00;">:</span> <span style="color:#933;">-5px</span> <span style="color:#933;">7px</span> <span style="color:#933;">5px</span> rgba<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0.8</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
  box-shadow<span style="color:#00AA00;">:</span> <span style="color:#933;">-5px</span> <span style="color:#933;">7px</span> <span style="color:#933;">5px</span> rgba<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0.8</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#6666ff;">.foldtr</span><span style="color:#3333ff;">:before </span><span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">content</span><span style="color:#00AA00;">:</span> <span style="color:#ff0000;">&quot;&quot;</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">position</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">absolute</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">top</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0%</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">right</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0%</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">width</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">height</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">border-bottom</span><span style="color:#00AA00;">:</span> <span style="color:#933;">70px</span> <span style="color:#993333;">solid</span> <span style="color:#cc00cc;">#eee</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">border-right</span><span style="color:#00AA00;">:</span> <span style="color:#933;">70px</span> <span style="color:#993333;">solid</span> <span style="color:#993333;">transparent</span><span style="color:#00AA00;">;</span>
  -webkit-box-shadow<span style="color:#00AA00;">:</span> <span style="color:#933;">-7px</span> <span style="color:#933;">7px</span> <span style="color:#933;">7px</span> rgba<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0.3</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
  -moz-box-shadow<span style="color:#00AA00;">:</span> <span style="color:#933;">-7px</span> <span style="color:#933;">7px</span> <span style="color:#933;">7px</span> rgba<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0.3</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
  box-shadow<span style="color:#00AA00;">:</span> <span style="color:#933;">-7px</span> <span style="color:#933;">7px</span> <span style="color:#933;">7px</span> rgba<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0.3</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#6666ff;">.foldtr</span><span style="color:#3333ff;">:after </span><span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">content</span><span style="color:#00AA00;">:</span> <span style="color:#ff0000;">&quot;&quot;</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">position</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">absolute</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">top</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0%</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">right</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0%</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">width</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">height</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">border-top</span><span style="color:#00AA00;">:</span> <span style="color:#933;">69px</span> <span style="color:#993333;">solid</span> <span style="color:#cc00cc;">#272822</span><span style="color:#00AA00;">;</span> 
  <span style="color:#000000;font-weight:bold;">border-left</span><span style="color:#00AA00;">:</span> <span style="color:#933;">69px</span> <span style="color:#993333;">solid</span> <span style="color:#993333;">transparent</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<p>One thing that might trip you up here is the shadows, you&#8217;ll need to flip those as well otherwise the illusion will be ruined. This picture illustrates what I mean:</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/ds-pagefold-9.jpg" alt="screenshot" width="510"/></div>
<h2>See It In action</h2>
<p>Now that we&#8217;re all finished, it&#8217;s time to test drive this bad boy. Keep in mind that because we&#8217;re using :before and :after, IE7 and before won&#8217;t play nice. There are fixes available using <a rel="nofollow" target="_blank" href="http://jquery.lukelutman.com/plugins/pseudo/">JavaScript</a> if that&#8217;s a major concern for you. </p>
<p><strong>Demo:</strong> <a rel="nofollow" target="_blank" href="http://tinkerbin.com/IQLRbSIJ">Click here</a> to launch.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/ds-pagefold-10.jpg" alt="screenshot" width="510"/></div>
<h2>Update</h2>
<p>Here&#8217;s the thing, sometimes a project like this makes sense in your head when you code it, then you come back later and realize that you were doing it all wrong! That&#8217;s exactly what happened here. Right after publishing this, I noticed that since my border trick split into two triangles on its own, I really didn&#8217;t need to go through the step of adding the :after section at all. The information above is still great to learn from so I&#8217;ll leave it alone, but here&#8217;s a better way to pull this off.</p>
<p>All we need to do is take the border that we were making transparent and set it to the background color. That alone serves as our second triangle, letting us cut off the :after section completely. </p>
<div style="overflow:auto;background-color:#fff;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color:#6666ff;">.foldtl</span> <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">position</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">relative</span><span style="color:#00AA00;">;</span>
  -webkit-box-shadow<span style="color:#00AA00;">:</span> <span style="color:#933;">5px</span> <span style="color:#933;">5px</span> <span style="color:#933;">5px</span> rgba<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0.8</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
  -moz-box-shadow<span style="color:#00AA00;">:</span> <span style="color:#933;">5px</span> <span style="color:#933;">5px</span> <span style="color:#933;">5px</span> rgba<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0.8</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
  box-shadow<span style="color:#00AA00;">:</span> <span style="color:#933;">5px</span> <span style="color:#933;">5px</span> <span style="color:#933;">5px</span> rgba<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0.8</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#6666ff;">.foldl</span><span style="color:#3333ff;">:before </span><span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">content</span><span style="color:#00AA00;">:</span> <span style="color:#ff0000;">&quot;&quot;</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">position</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">absolute</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">top</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0%</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">left</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0%</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">width</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">height</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">border-bottom</span><span style="color:#00AA00;">:</span> <span style="color:#933;">70px</span> <span style="color:#993333;">solid</span> <span style="color:#cc00cc;">#eee</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">border-left</span><span style="color:#00AA00;">:</span> <span style="color:#933;">70px</span> <span style="color:#993333;">solid</span> <span style="color:#cc00cc;">#272822</span><span style="color:#00AA00;">;</span> <span style="color:#808080;font-style:italic;">/*Set to background color, not transparent!*/</span>
  -webkit-box-shadow<span style="color:#00AA00;">:</span> <span style="color:#933;">7px</span> <span style="color:#933;">7px</span> <span style="color:#933;">7px</span> rgba<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0.3</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
  -moz-box-shadow<span style="color:#00AA00;">:</span> <span style="color:#933;">7px</span> <span style="color:#933;">7px</span> <span style="color:#933;">7px</span> rgba<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0.3</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
  box-shadow<span style="color:#00AA00;">:</span> <span style="color:#933;">7px</span> <span style="color:#933;">7px</span> <span style="color:#933;">7px</span> rgba<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0.3</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<p>Live and learn folks, live and learn. Always go through and make sure your code is as concise as can be. Sometimes you make dumb mistakes (I sure do). Don&#8217;t get discouraged, instead take comfort in the fact that there&#8217;s almost always a better way to do something and each time you find one, you&#8217;re making yourself a better coder. </p>
<p>Be sure to check out the <a rel="nofollow" target="_blank" href="http://tinkerbin.com/tc7wN1e5">updated Tinkerbin</a> to see this new and improved version. </p>
<h2>Conclusion</h2>
<p>Thanks for reading this tutorial on how to create a page effect with CSS. I hope you found the information to be useful and are now fairly comfortable wielding both CSS triangles and the :before and :after pseudo elements.</p>
<p>Leave a comment below and let me know what you think and be sure to check back soon for more great CSS walkthroughs. </p>]]></content:encoded>
         <category>CSS</category>
      </item>
      <item>
         <title>Design Inspiration: iPhone Capture Button</title>
         <link>http://designshack.net/design/iphone-capture-button</link>
         <description>&lt;p&gt;A simple design element for an iPhone app that attempts a subtle redesign of the iPhone Capture button.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;I really like the use of texture and the simple reduction of camera imagery to create the central icon.&lt;/p&gt;

	&lt;br&gt;

	&lt;a rel="nofollow" target="_blank" href="http://designshack.net/out/iphone-capture-button"&gt;&lt;img src="http://designshack.net/images/designs/iphone-capture-button.jpg"/&gt;&lt;/a&gt;&lt;br&gt;&lt;br&gt;

	&lt;br&gt;

	&lt;p&gt;This design was featured on the Tuesday 29th of May 2012. It falls under the category of &lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/all/all/iphone-app"&gt;iPhone App&lt;/a&gt;, and has a layout style of &lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/all/other/all"&gt;Other&lt;/a&gt;.&lt;/p&gt;

	&lt;p&gt;If you'd like, you can &lt;a rel="nofollow" target="_blank" href="http://designshack.net/out/iphone-capture-button" title="Go To iPhone Capture Button"&gt;visit this site&lt;/a&gt;, or view all our other &lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/"&gt;featured designs&lt;/a&gt;.&lt;/p&gt;


	&lt;br&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/eeeeee/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#eeeeee;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/666666/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#666666;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/222222/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#222222;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/444444/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#444444;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/888888/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#888888;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/aaaaaa/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#aaaaaa;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/cccccc/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#cccccc;"&gt;&lt;/a&gt;
	&lt;div style="clear:both;"&gt;&lt;/div&gt;

	&lt;br&gt;</description>
         <guid isPermaLink="false">http://designshack.net/design/iphone-capture-button</guid>
         <pubDate>Tue, 29 May 2012 12:00:00 +0000</pubDate>
      </item>
      <item>
         <title>Design Inspiration: Dropbox Reimagined</title>
         <link>http://designshack.net/design/dropbox-reimagined</link>
         <description>&lt;p&gt;An interesting reimagining of the Dropbox logo in more 'realistic' colours.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;I like the attention to detail and the very different response that this logo produces, it immediately makes you think of a packing company rather than an online file-hosting service.&lt;/p&gt;

	&lt;br&gt;

	&lt;a rel="nofollow" target="_blank" href="http://designshack.net/out/dropbox-reimagined"&gt;&lt;img src="http://designshack.net/images/designs/dropbox-reimagined.jpg"/&gt;&lt;/a&gt;&lt;br&gt;&lt;br&gt;

	&lt;br&gt;

	&lt;p&gt;This design was featured on the Tuesday 29th of May 2012. It falls under the category of &lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/all/all/logo"&gt;Logo&lt;/a&gt;, and has a layout style of &lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/all/other/all"&gt;Other&lt;/a&gt;.&lt;/p&gt;

	&lt;p&gt;If you'd like, you can &lt;a rel="nofollow" target="_blank" href="http://designshack.net/out/dropbox-reimagined" title="Go To Dropbox Reimagined"&gt;visit this site&lt;/a&gt;, or view all our other &lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/"&gt;featured designs&lt;/a&gt;.&lt;/p&gt;


	&lt;br&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/eeeeee/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#eeeeee;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/eeccaa/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#eeccaa;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/eeaa88/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#eeaa88;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/cc8866/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#cc8866;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/cc6644/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#cc6644;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/aa4422/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#aa4422;"&gt;&lt;/a&gt;
	&lt;div style="clear:both;"&gt;&lt;/div&gt;

	&lt;br&gt;</description>
         <guid isPermaLink="false">http://designshack.net/design/dropbox-reimagined</guid>
         <pubDate>Tue, 29 May 2012 12:00:00 +0000</pubDate>
      </item>
      <item>
         <title>Design Inspiration: LBVD</title>
         <link>http://designshack.net/design/lbvd</link>
         <description>&lt;p&gt;LBVD are are writers, visual thinkers, creative strategists and responsible dreamers. And their quirky site clearly reflects the personality of the business!&lt;/p&gt;

	&lt;br&gt;

	&lt;a rel="nofollow" target="_blank" href="http://designshack.net/out/lbvd"&gt;&lt;img src="http://designshack.net/images/designs/lbvd.jpg"/&gt;&lt;/a&gt;&lt;br&gt;&lt;br&gt;

	&lt;br&gt;

	&lt;p&gt;This design was featured on the Tuesday 29th of May 2012. It falls under the category of &lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/all/all/corporate"&gt;Corporate&lt;/a&gt;, and has a layout style of &lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/all/other/all"&gt;Other&lt;/a&gt;.&lt;/p&gt;

	&lt;p&gt;If you'd like, you can &lt;a rel="nofollow" target="_blank" href="http://designshack.net/out/lbvd" title="Go To LBVD"&gt;visit this site&lt;/a&gt;, or view all our other &lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/"&gt;featured designs&lt;/a&gt;.&lt;/p&gt;


	&lt;br&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/aa4444/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#aa4444;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/000022/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#000022;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/444444/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#444444;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/666666/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#666666;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/222222/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#222222;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/000000/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#000000;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/eeeeee/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#eeeeee;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/cccccc/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#cccccc;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/aaaaaa/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#aaaaaa;"&gt;&lt;/a&gt;
	&lt;div style="clear:both;"&gt;&lt;/div&gt;

	&lt;br&gt;</description>
         <guid isPermaLink="false">http://designshack.net/design/lbvd</guid>
         <pubDate>Tue, 29 May 2012 12:00:00 +0000</pubDate>
      </item>
      <item>
         <title>Should You Be Designing With QR Codes?</title>
         <link>http://designshack.net/articles/business-articles/should-you-be-designing-with-qr-codes/</link>
         <description>QR codes are all the rage&amp;#8230; aren&amp;#8217;t they? Their presence certainly seems to have increased in recent years, indicating an impressive adoption rate among marketers. But does that mean that you should be using them? If a client asks you whether or not using QR codes is a good idea, what will you say? Join [...]</description>
         <guid isPermaLink="false">http://designshack.net/?p=33092</guid>
         <pubDate>Tue, 29 May 2012 06:00:05 +0000</pubDate>
         <content:encoded><![CDATA[<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/qrcodes-0.jpg" alt="screenshot" width="510"/></div>
<p>QR codes are all the rage&#8230; aren&#8217;t they? Their presence certainly seems to have increased in recent years, indicating an impressive adoption rate among marketers. But does that mean that you should be using them? If a client asks you whether or not using QR codes is a good idea, what will you say?</p>
<p>Join us as we take an honest and critical look at both sides of the QR debate so you can decide for yourself whether or not you should be designing with QR codes.</p>
<p><span id="more-33092"></span><br />
<em>Like the article? Be sure to subscribe to our <a rel="nofollow">RSS feed</a> and follow us on <a rel="nofollow" target="_blank" href="http://twitter.com/designshack">Twitter</a> to stay up on recent content.</em></p>
<h2>What Is A QR Code?</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/qrcodes-1.jpg" alt="screenshot" width="510"/></div>
<p>The core concept behind a QR Code (Quick Response Code) is absolutely nothing new: it&#8217;s basically a barcode. If you were born any time in the last three or four decades, you&#8217;ve see barcodes nearly every day of your life. Just like any barcode, a QR Code can be used to store encoded pieces of information that can then be decoded by a special reader.</p>
<p>One big difference is that standard barcodes are made to be read with a beam of light while QR Codes are meant to be seen as an image. The scanner essentially takes a picture of the QR Code, then aligns the picture using specific identifiable patterns and finally uses the rest of the pattern as a binary code. </p>
<p>They might look random, but if you look close you&#8217;ll notice that all QR Codes share four very specific squares. These are used to give the scanner information on the alignment, rotation and skew of the code so that it can be sure to interpret the information correctly. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/qrcodes-2.jpg" alt="screenshot" width="510"/></div>
<p>The benefit here is that QR Codes can be scanned very quickly at multiple orientations and angles. They can also store quite a bit of information in a really small area. </p>
<p>The real potential for QR codes was realized when someone had the revelation that just about everyone carries a potential scanner in their pocket. Any cell phone with a camera and basic web capabilities can easily read and respond to QR Codes. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/qrcodes-3.jpg" alt="screenshot" width="510"/></div>
<h2>The Promise</h2>
<p>The promise of QR Codes, as presented to potential clients, is nearly irresistible. In print, your space is always limited. Whether we&#8217;re talking about a company brochure or a bus stop ad, there&#8217;s a pre-defined amount of space to communicate your message. </p>
<p>Beyond this, your message is typically 100% static and has little to no actual interaction with the customer. It&#8217;s just a passive pile of ink and you can&#8217;t do much with it.</p>
<p>With the web though, everything changes. Space is virtually unlimited, interaction capabilities are limited only by your imagination and the holy grail of marketing becomes possible with technologies like social media: sustained, continual customer contact. </p>
<h3>A Gateway Drug</h3>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://www.flickr.com/photos/clevercupcakes/4461953159/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/qrcodes-4.jpg" alt="screenshot" width="510"/></a></div>
<p>The question of course is how to use limited printed media as a gateway to the unlimited and magical world of the Internet. QR Codes are one potential answer. &#8220;They&#8217;re easy to use and fun!&#8221; At least, that&#8217;s the sales pitch.</p>
<p>When you add a QR code to your boring old bus stop ad, suddenly it becomes an interactive advertising piece. A bored public transportation user will see it, point their phone at it and instantly be taken to a web page or even a video with more information.</p>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://www.flickr.com/photos/wikithreads/6205381505/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/qrcodes-5.jpg" alt="screenshot" width="510"/></a></div>
<p>To make sure all of the right buzzwords are used, QR Codes are pushed as social media friendly. You can use them to gather Likes on Facebook, Follows on Twitter, Pins on Pinterest; the list goes on and on. </p>
<h3>Liftoff</h3>
<p>QR Codes have this strange sort of cult following. Designers and marketers everywhere jumped on board and brought lots of creativity to an idea that originally began as a way for Toyota to track vehicles through the manufacturing process. </p>
<p>Today you&#8217;ll find QR codes in the strangest places. As the centerpiece for guerrilla marketing campaigns the world over, QR codes have been spotted on brick walls, shirts, telephone poles, belt buckles, produce, baked goods, tombstones and just about everything else you can imagine.</p>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://www.flickr.com/photos/fluidforms/3525672926/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/qrcodes-6.jpg" alt="screenshot" width="510"/></a></div>
<p>There&#8217;s even a Tumblr blog called &#8220;<a rel="nofollow" target="_blank" href="http://wtfqrcodes.com/">WTF QR Codes</a>&#8221; which is dedicated to showcasing the ridiculous nature of QR Code advertising. Stop by and scroll through the results for a few minutes and you&#8217;ll instantly see how bizarre this form of marketing has become.</p>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://wtfqrcodes.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/qrcodes-7.jpg" alt="screenshot" width="510"/></a></div>
<h2>Good or Evil?</h2>
<p>Some people see QR Codes as a modern advertising marvel on the verge of ubiquity. Others see them as a hopeless gimmick that future generations will no doubt laugh at us for even attempting. </p>
<p>As a designer, you should have a stance on the subject. This should of course be an educated, intelligent stance, not an off the cuff judgment. When a client comes to you with a question about QR codes, you&#8217;ll either come off as snide and derogatory or an informed expert. To make sure it&#8217;s the latter, let&#8217;s go over a few common questions.</p>
<h3>Are They Easy To Implement?</h3>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://qrcode.kaywa.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/qrcodes-8.jpg" alt="screenshot" width="510"/></a></div>
<p>Back when I was a full time designer for retail store brands, creating a barcode was sort of a pain. I had to purchase specialized and often expensive software, type in a very specific sequence of numbers, find a way to make sure it actually worked; it certainly wasn&#8217;t the most difficult part of my job but is wasn&#8217;t the highlight of my day either.</p>
<p>With a QR Code, the process is entirely different. There&#8217;s really almost no work on your part. Just Google &#8220;free QR Code generator&#8221; and you&#8217;ll find a bunch of websites that allow you to instantly create a QR code. Just type in a URL, choose a size and you&#8217;re good to go. If you want to test it, pull out your smartphone and any number of free QR scanning apps. </p>
<p>The bottom line is that QR codes couldn&#8217;t be easier to create. They size is also pretty flexible and since they&#8217;re squares they&#8217;re quite easy to integrate into a design.</p>
<h3>Are They Easy To Use?</h3>
<p>It&#8217;s hard to argue that QR Codes aren&#8217;t easy to use from the perspective of the person creating them, but what about from a user&#8217;s perspective? This is a matter that&#8217;s highly up for debate.</p>
<p>If you talk to someone in favor of QR Codes, the process sounds simple: just pull out your phone and zap the code. That&#8217;s all there is to it! It couldn&#8217;t be any easier right?</p>
<p>However, if you talk to someone who isn&#8217;t a fan of QR Codes, you might hear something drastically different. According to this crowd, the process is much more complex:</p>
<ul>
<li>Pull out your phone.</li>
<li>Search for your phone&#8217;s built-in QR Code reader (oh wait, there isn&#8217;t one).</li>
<li>Search for that QR code app that you downloaded one time, the name of which escapes you.</li>
<li>Realize that you deleted that app ages ago because you never used it. Go to app store, search for and download a new free QR Code reader.</li>
<li>Take a nap because you&#8217;re exhausted at this point.</li>
<li>Launch app and wait for the camera to initiate.</li>
<li>Hold phone up to QR Code.</li>
<li>Wait for browser to launch and page to load.</li>
<li>Tadaah, a web page! Wasn&#8217;t that easier than typing an a URL?</li>
</ul>
<p>Obviously, this process is overflowing with hyperbole, but it makes an interesting point about how the typical QR Code user experience could possibly be perceived as anything but quick and convenient. </p>
<p>The simple truth is that if you ask ten people what they think of QR Codes, you&#8217;ll likely get a few that think they&#8217;re an overhyped waste of ink. </p>
<h3>Do People Actually Scan Them?</h3>
<p>According to <a rel="nofollow" target="_blank" href="http://www.zimbio.com/Cool+Technology/articles/2ujPs3M3_5q/QR+Code+Statistics+2011+2012">Zimbio.com</a>, QR Codes were present in 1% of print advertising in January of 2011, a number which shot up to 6% by December of the same year. Once again, this tells us that advertisers like them, but what about the general public?</p>
<p>Data is scattered and hard to find, but we can gleam a lot from a report titled &#8220;<a rel="nofollow" target="_blank" href="http://www.cmbinfo.com/cmb-cms/wp-content/uploads/2012/01/Consumer-Pulse-Template-QR-Codes-Final.pdf">9 Things to Know About Consumer Behavior and QR Codes</a>&#8220;, which was released in January of 2012.</p>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://www.cmbinfo.com/cmb-cms/wp-content/uploads/2012/01/Consumer-Pulse-Template-QR-Codes-Final.pdf"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/qrcodes-9.jpg" alt="screenshot" width="510"/></a></div>
<p>According to this report, 79% of respondents had never heard of a QR Code. However, when shown a picture of a QR Code, 81% of respondents claimed to have seen one before. This lends credence to the idea that marketers love QR Codes a lot more than your average Joe!</p>
<div class="pullquote-r">
&#8220;Half of all smartphone owners have scanned a QR Code and 70% of those respondents claimed that it was an easy process.&#8221;
</div>
<p>&lt;/ br&gt;</p>
<p>Does this spell doom for QR Codes? Not so fast. The same report also claimed that half of all smartphone owners have scanned a QR Code and 70% of those respondents claimed that it was an easy process. Further, 41% of respondents said QR Codes were useful, 42% had mixed feelings and 18% said they weren&#8217;t useful.  </p>
<p>These numbers aren&#8217;t off the charts in the positive direction, but they&#8217;re actually much better than many naysayers claim. The blanket statement &#8220;nobody uses QR Codes&#8221; seems to be far from true. As long as your target market is smartphone owners, there&#8217;s a good chance that they both know what QR Codes are and are familiar with how to use them. </p>
<h2>Are QR Codes a Fad?</h2>
<p>In the 1990s, the world was ready for a replacement for cassette tapes. CDs were the obvious choice if you were purchasing music but they didn&#8217;t fully replace cassettes in at least one important way: recording. </p>
<p>Any kid with a Walkman or simple audio cassette recorder could make his/her own tapes. This was a great way to have fun, record music and quickly save information for later review. As great as CDs were for listening to your favorite tunes, they didn&#8217;t share the quick record feature.</p>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://www.flickr.com/photos/tompagenet/3241830209/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/qrcodes-10.jpg" alt="screenshot" width="510"/></a></div>
<p>That&#8217;s where MiniDiscs came in, or at least were supposed to. I thought MiniDisc players were amazing. They were better than cassettes in a million different ways. They used random access memory, so you could easily split your recordings into tracks and browse through them individually later. No more fast forwarding to find what you wanted! The players were stylish, small and had digital controls, which were very cool at the time.  </p>
<p>I was completely convinced that these were the devices of the future. Fast forward to 2012 though and four out of five people that I ask have never even heard of MiniDisc players and those that do have some recollection don&#8217;t recall why they were cool or even what they really were. So what the heck happened?</p>
<p>MiniDiscs failed for a number of reasons. They were initially too expensive to replace cheap CDs for music and late in the game the arrival of the MP3 provided the final nail in the coffin. The digital revolution hit with force and we stopped thinking of audio as something to be carried around on a series of plastic objects that had to be inserted into something. Instead, devices recorded, played and transferred audio all on their own with no pile of physical storage necessary. </p>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://www.flickr.com/photos/bionicteaching/6270866827/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/qrcodes-11.jpg" alt="screenshot" width="510"/></a></div>
<h3>The Point of That Long Metaphor</h3>
<p>Why is there a history of MiniDisc players in an article about QR Codes? Because when I see a QR Code, my mind instantly jumps to the lesson of the MiniDisc. I feel like QR Codes are a temporary and flawed solution to a problem that either doesn&#8217;t exist or will be solved by something else very soon.</p>
<p>If a QR Code just takes me to a web page, then a short URL seems just as easy or even more so. Further, new technology such as NFC threatens to take away a healthy chunk of the cell phone information gateway in the future. </p>
<p>The same report that I referred to earlier noted that 46% of respondents that had scanned a QR Code were simply curious about what it would do. This is a high number that indicates that lots of QR traffic is the result of it being a new technology that people want to understand. Eventually, when most people have tried it, these curious first timers will vanish. </p>
<p>We&#8217;re in a pretty serious state of flux at the moment with mobile technology advancing at breakneck speeds. It&#8217;s impossible to say for certain whether or not QR Codes will be an integral part of mobile-targeted advertising for years to come, but overzealous adopters need to prepare for the very real possibility that these things will be a fuzzy memory in a few years. </p>
<h2>Tips For Designing With QR Codes</h2>
<p>With all this in mind, we can see that QR Codes are currently at worst a fad that will fade quickly and at best a great way to grab the interest of a healthy chunk of smartphone owners. As long as we proceed with this information in check, we can come up with some common sense guidelines for designing with QR Codes.</p>
<h3>Give Users an Alternative</h3>
<p>Unless you want to dramatically limit the number of people who can access the information trapped inside of the QR Code, make sure that you have an alternative. This often takes the form of a simple URL under or beside QR Code.</p>
<h3>Use Mobile Friendly Content</h3>
<p>Always consider that virtually all of the people scanning your QR Code will be doing so with a mobile phone. If the code leads to a website that is optimized to work on desktops, you&#8217;ve failed. Make sure the content on the other end is usable at a small size and doesn&#8217;t use Flash or other non-mobile technologies.</p>
<h3>Creativity Pays Off</h3>
<p>That curiosity factor that we mentioned earlier is obviously a huge hook for QR Code users. As QR Codes become more ubiquitous, they become easier to ignore, just like sidebar ads on the Internet they&#8217;ll quickly become almost invisible to many people. Make sure you put some serious thought into presentation. How can you catch your audience&#8217;s attention and leverage their curiosity to score a scan?</p>
<h3>Have Clear Goals In Mind</h3>
<p>Getting people to scan your QR Code is an impressive feat, but if you don&#8217;t use that opportunity wisely then it&#8217;s a big fat waste of time. If you get a million scans but don&#8217;t successfully educate or encourage people towards further action, you haven&#8217;t really accomplished anything. Scoring social media love is an obvious goal that could pay off in the long term. </p>
<h3>Don&#8217;t Be Stupid</h3>
<p>As the site <a rel="nofollow" target="_blank" href="http://wtfqrcodes.com/">WTF QR Codes</a> clearly demonstrates, this technology is overused, abused and often poorly understood. QR Codes on a billboard next to a highway with an average speed of 75mph probably aren&#8217;t the best use of your client&#8217;s advertising dollars. </p>
<h2>What Do You Think?</h2>
<p>Now that you&#8217;ve seen the statistics, read my rants and considered my advice, it&#8217;s time for you to chime in using the comments below.</p>
<p>Do you think QR Codes are the savior of printed marketing or are they another overhyped marketer&#8217;s fantasy that normal people simply don&#8217;t care about? If clients ask you whether or not they should use QR codes, what will you say?</p>]]></content:encoded>
         <category>Business</category>
      </item>
      <item>
         <title>Think About Images and Text Together</title>
         <link>http://designshack.net/articles/layouts/think-about-images-and-text-together/</link>
         <description>Good design centers on good content. Good content needs good design to survive and stand out among all the other choices out there. The most successful design projects come together because of content-driven design. It is easy though for designers get stuck in an image or text rut. This frequently happens because people tend think [...]</description>
         <guid isPermaLink="false">http://designshack.net/?p=33031</guid>
         <pubDate>Mon, 28 May 2012 14:15:47 +0000</pubDate>
         <content:encoded><![CDATA[<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/frametext.jpg" alt="screenshot" width="510"/></div>
<p>Good design centers on good content. Good content needs good design to survive and stand out among all the other choices out there. The most successful design projects come together because of content-driven design.</p>
<p>It is easy though for designers get stuck in an image or text rut. This frequently happens because people tend think about text and images on their own. What we should be doing is writing copy with images in mind and preparing design projects with the text in mind. Think about how images and text will work together as you plan your next project.</p>
<p><span id="more-33031"></span><br />
<em>Like the article? Be sure to subscribe to our <a rel="nofollow">RSS feed</a> and follow us on <a rel="nofollow" target="_blank" href="http://twitter.com/designshack">Twitter</a> to stay up on recent content.</em></p>
<h2>Content is King</h2>
<p>The number one reason you will get people to pay attention to a design project is content. Yes, you will get a few looks on aesthetics alone, but what will keep the audience is content. Treat it like gold.</p>
<p>Plan your visuals to correspond with content and make sure all visual associations are clear. Don’t set up a website dedicated to frogs with a photo of a toad on the homepage. People will notice.</p>
<p>Take the time early in the planning process to think about content and how the visuals should represent it. Do any of your words create color or photo links? Use that to your advantage.</p>
<p>Use show, not tell, examples when possible. Too often you hit a website that tries to explain every concept with words. Put together images to represent visual examples. Don’t have a visual to work with? Create one. Snap a picture, use images with creative commons licenses or build an infographic (there are some nifty online tools out there).</p>
<h2>Google It, Dribbble It, Search It on Pinterest</h2>
<p><a rel="nofollow" target="_blank" href="http://dribbble.com/">
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/dribbble.jpg" alt="screenshot" width="510"/></div>
<p></a></p>
<p>When you get stumped, play online. It is not a waste of time to peruse images that have keywords relating to your content. Search and scroll through the options on Google Images, Pinterest or on a portfolio-image sharing site such as Dribbble. </p>
<p>It is perfectly fair to use others’ images for idea generation, but please avoid visual plagiarism. Think about how words and text intersect uniquely for your project and go from there.</p>
<p>Keep an ideas file. You are likely to stumble on some visually inspiring items that might not match your project. Save these ideas for the next project. Develop your visual brainstorming techniques to help come up with even more ideas.</p>
<h2>Use Active Words</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/dog.jpg" alt="screenshot" width="510"/></div>
<p>It sounds really simple. But words that imply action and movement are easier to represent visually. Not only will using more active verbs and descriptive words help you develop images, but they are more interesting as a whole.</p>
<p>Think about voice as well. Writing copy in active voice, rather than its passive counterpart will help you as well. Think about it like this: You want your copy to explain action happening. “The dog ate my homework” has much better flow than “My homework was eaten by the dog.” Using active voice will help you and others visualize the action happening in your copy. When you are able to create this link between your copy and a visualization of action, it will be easier to develop corresponding images and text.</p>
<p>Using active voice will also help your readers and users. People who read your copy and look at your images together will be more likely to relate to the information and engage with your content.</p>
<h2>Quiz Others About Your Images</h2>
<p>Sometimes the images come first. If you have the appropriate visuals nailed down but are experiencing copy woes, talk to others. Print out the images with no text on the page and ask coworkers, family members and friends what the images mean to them. Make a list of all the words they come up with and use that as a starting point.</p>
<p>This exercise can also give you an idea of what your visuals represent to others and if they will work with the concept of your project. If you come back with a lot of jarring responses or ideas that aren’t on par with your project concept, it might be time to rethink some of the imagery. </p>
<h2>Be Unexpected</h2>
<p><a rel="nofollow" target="_blank" href="http://elliotjaystocks.com/blog/the-fine-flourish-of-the-ligature/">
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/ligature.jpg" alt="screenshot" width="510"/></div>
<p></a></p>
<p><a rel="nofollow" target="_blank" href="http://wearepollen.eu/">
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/pollen.jpg" alt="screenshot" width="510"/></div>
<p></a></p>
<p>Avoid clichés and pair words and images that border on the unexpected. Note the choice of words there – look for “unexpected” relationships between images and type, not “unrelated.”</p>
<p>Elliott Jay Stocks’ blog is a great example. The blog uses the main headline for the post as a visual and it is made unexpected by the use of “fine flourish of the ligature.” You would almost expect the words “fine flourish” (which contain several ligatures) to appear in the italic style used by “ligature” (because the word does not actually contain joined letters).</p>
<p>The Pollen site works in very much the same fashion. “We Are Work” and the image of a sunglasses-clad couple create almost contrasting ideas &#8212; work and play. But read more into the text and you see that the image perfectly relates to the company’s branding.</p>
<h2>Don’t Try Too Hard</h2>
<p>Loose content-image associations can be tough for others to follow. If you are really struggling to find an image that works with your copy, it might be best go without an image-based visual or create an art element from text.</p>
<p>You want your information to convey a purposeful and balanced message. Mixing oddball images and text will not help you achieve that goal and could confuse those who are trying to understand your work.</p>
<h2>Personal Account</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/articleoutline.jpg" alt="screenshot" width="510"/></div>
<p>When writing for this blog, I am always looking for ways to come up with image and text pairs. To get started I always create an outline of what I plan to write about in my post – very much like the headers you see here. From there I think about those phrases and how they could be represented visually. Is there an image that will correspond on its own? Should I show an example and write about it to make the point more clear? Do I need to create an image that shows what I am trying to describe in the text?</p>
<p>As I write and create images (I do this one section at a time to help the process), I look back over everything and think about what has the most impact. From there, I select the image and words that will be what you see at the top of the page.</p>
<p>Sometimes, I see a website or ad or magazine cover that sparks a great idea that I want to write about. The text does not have to come first, though for me it often does. I have found that when I break out of my safety zone, I sometimes develop the best ideas.</p>
<h2>Conclusion</h2>
<p>You will get the best overall results when you think about images and text concurrently for each project you take on. You may have to get out of your comfort zone to do it, but open your thinking to performing both tasks simultaneously. </p>
<p>As you write copy, visualize the images you will pair with it. As you develop images, background and logos, think about the words that will be featured alongside them. By pairing the thought processes, you will find that your project comes together easier, with less rework and in line with what you planned from the start.</p>
<p><em>Image Source: <a rel="nofollow" target="_blank" href="http://www.flickr.com/photos/-cherry-/2262419699/">rachfog</a>.</p></em>]]></content:encoded>
      </item>
      <item>
         <title>Design Inspiration: Minimal Web Icon Set</title>
         <link>http://designshack.net/design/minimal-web-icon-set</link>
         <description>&lt;p&gt;Project for a wide system of wayfinding for a public space. Here is part of the user interface version.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;I love the brutal minimalism, reducing each icon to the minimum required.&lt;/p&gt;

	&lt;br&gt;

	&lt;a rel="nofollow" target="_blank" href="http://designshack.net/out/minimal-web-icon-set"&gt;&lt;img src="http://designshack.net/images/designs/minimal-web-icon-set.jpg"/&gt;&lt;/a&gt;&lt;br&gt;&lt;br&gt;

	&lt;br&gt;

	&lt;p&gt;This design was featured on the Monday 28th of May 2012. It falls under the category of &lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/all/all/element"&gt;Element&lt;/a&gt;, and has a layout style of &lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/all/other/all"&gt;Other&lt;/a&gt;.&lt;/p&gt;

	&lt;p&gt;If you'd like, you can &lt;a rel="nofollow" target="_blank" href="http://designshack.net/out/minimal-web-icon-set" title="Go To Minimal Web Icon Set"&gt;visit this site&lt;/a&gt;, or view all our other &lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/"&gt;featured designs&lt;/a&gt;.&lt;/p&gt;


	&lt;br&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/ee6644/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#ee6644;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/ee8888/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#ee8888;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/eeaaaa/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#eeaaaa;"&gt;&lt;/a&gt;
	&lt;div style="clear:both;"&gt;&lt;/div&gt;

	&lt;br&gt;</description>
         <guid isPermaLink="false">http://designshack.net/design/minimal-web-icon-set</guid>
         <pubDate>Mon, 28 May 2012 12:00:00 +0000</pubDate>
      </item>
      <item>
         <title>Design Inspiration: Lost My Bananas</title>
         <link>http://designshack.net/design/lost-my-bananas</link>
         <description>&lt;p&gt;A great logo for LostBananas that makes superb use of colour, the orange is immediately striking.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;I like the typeface and just how confused this monkey looks.&lt;/p&gt;

	&lt;br&gt;

	&lt;a rel="nofollow" target="_blank" href="http://designshack.net/out/lost-my-bananas"&gt;&lt;img src="http://designshack.net/images/designs/lost-my-bananas.jpg"/&gt;&lt;/a&gt;&lt;br&gt;&lt;br&gt;

	&lt;br&gt;

	&lt;p&gt;This design was featured on the Monday 28th of May 2012. It falls under the category of &lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/all/all/logo"&gt;Logo&lt;/a&gt;, and has a layout style of &lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/all/other/all"&gt;Other&lt;/a&gt;.&lt;/p&gt;

	&lt;p&gt;If you'd like, you can &lt;a rel="nofollow" target="_blank" href="http://designshack.net/out/lost-my-bananas" title="Go To Lost My Bananas"&gt;visit this site&lt;/a&gt;, or view all our other &lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/"&gt;featured designs&lt;/a&gt;.&lt;/p&gt;


	&lt;br&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/eeccaa/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#eeccaa;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/eeaa66/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#eeaa66;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/aa6622/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#aa6622;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/cc8866/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#cc8866;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/664422/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#664422;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/ee8822/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#ee8822;"&gt;&lt;/a&gt;
	&lt;div style="clear:both;"&gt;&lt;/div&gt;

	&lt;br&gt;</description>
         <guid isPermaLink="false">http://designshack.net/design/lost-my-bananas</guid>
         <pubDate>Mon, 28 May 2012 12:00:00 +0000</pubDate>
      </item>
      <item>
         <title>Design Inspiration: Arum Kumar</title>
         <link>http://designshack.net/design/arum-kumar</link>
         <description>&lt;p&gt;A fun, visual one page site with plenty of HTML5 and CSS3 trickery. Fun to scroll down, and we enjoyed the unique illustration work!&lt;/p&gt;

	&lt;br&gt;

	&lt;a rel="nofollow" target="_blank" href="http://designshack.net/out/arum-kumar"&gt;&lt;img src="http://designshack.net/images/designs/arum-kumar.jpg"/&gt;&lt;/a&gt;&lt;br&gt;&lt;br&gt;

	&lt;br&gt;

	&lt;p&gt;This design was featured on the Monday 28th of May 2012. It falls under the category of &lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/all/all/portfolio"&gt;Portfolio&lt;/a&gt;, and has a layout style of &lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/all/1column/all"&gt;One Column&lt;/a&gt;.&lt;/p&gt;

	&lt;p&gt;If you'd like, you can &lt;a rel="nofollow" target="_blank" href="http://designshack.net/out/arum-kumar" title="Go To Arum Kumar"&gt;visit this site&lt;/a&gt;, or view all our other &lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/"&gt;featured designs&lt;/a&gt;.&lt;/p&gt;


	&lt;br&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/000000/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#000000;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/222222/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#222222;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/444444/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#444444;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/666666/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#666666;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/888888/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#888888;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/cccccc/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#cccccc;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/aaaaaa/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#aaaaaa;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/eeeeee/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#eeeeee;"&gt;&lt;/a&gt;
	&lt;div style="clear:both;"&gt;&lt;/div&gt;

	&lt;br&gt;</description>
         <guid isPermaLink="false">http://designshack.net/design/arum-kumar</guid>
         <pubDate>Mon, 28 May 2012 12:00:00 +0000</pubDate>
      </item>
      <item>
         <title>Design Inspiration: Circle Design</title>
         <link>http://designshack.net/design/circle-design</link>
         <description>&lt;p&gt;This awesome site offers a walkthrough of the design process behind a popular iPhone application.&lt;/p&gt;

	&lt;br&gt;

	&lt;a rel="nofollow" target="_blank" href="http://designshack.net/out/circle-design"&gt;&lt;img src="http://designshack.net/images/designs/circle-design.jpg"/&gt;&lt;/a&gt;&lt;br&gt;&lt;br&gt;

	&lt;br&gt;

	&lt;p&gt;This design was featured on the Sunday 27th of May 2012. It falls under the category of &lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/all/all/design"&gt;Design&lt;/a&gt;, and has a layout style of &lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/all/other/all"&gt;Other&lt;/a&gt;.&lt;/p&gt;

	&lt;p&gt;If you'd like, you can &lt;a rel="nofollow" target="_blank" href="http://designshack.net/out/circle-design" title="Go To Circle Design"&gt;visit this site&lt;/a&gt;, or view all our other &lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/"&gt;featured designs&lt;/a&gt;.&lt;/p&gt;


	&lt;br&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/44aacc/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#44aacc;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/442222/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#442222;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/444444/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#444444;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/666666/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#666666;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/888888/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#888888;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/aaaaaa/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#aaaaaa;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/cccccc/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#cccccc;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/eeeeee/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#eeeeee;"&gt;&lt;/a&gt;&lt;a rel="nofollow" target="_blank" href="http://designshack.net/gallery/all/cc8866/all/all" style="float:left;display:block;width:15px;height:15px;margin:0 10px 0 0;background-color:#cc8866;"&gt;&lt;/a&gt;
	&lt;div style="clear:both;"&gt;&lt;/div&gt;

	&lt;br&gt;</description>
         <guid isPermaLink="false">http://designshack.net/design/circle-design</guid>
         <pubDate>Sun, 27 May 2012 12:00:00 +0000</pubDate>
      </item>
      <item>
         <title>What if I Don’t Like the Work? Dealing With a Design Project Gone Wrong</title>
         <link>http://designshack.net/articles/business-articles/what-if-i-dont-like-the-work-dealing-with-a-design-project-gone-wrong/</link>
         <description>Typically, the articles that I write on Design Shack are from the perspective of the designer. One topic that comes up regularly is how to deal with clients on various issues. However, today I&amp;#8217;d like to flip things around and jump to the aid of the other team. Designer/client relationships go both ways and just [...]</description>
         <guid isPermaLink="false">http://designshack.net/?p=33049</guid>
         <pubDate>Fri, 25 May 2012 06:00:39 +0000</pubDate>
         <content:encoded><![CDATA[<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/dontlikeit-0.jpg" alt="screenshot" width="510"/></div>
<p>Typically, the articles that I write on Design Shack are from the perspective of the designer. One topic that comes up regularly is how to deal with clients on various issues. However, today I&#8217;d like to flip things around and jump to the aid of the other team.</p>
<p>Designer/client relationships go both ways and just as often as there is a frustrated designer, there&#8217;s a disappointed client. Today we&#8217;re going to tackle the question of what to do when you hire a designer and just don&#8217;t like the work that resulted. </p>
<p><span id="more-33049"></span><br />
<em>Like the article? Be sure to subscribe to our <a rel="nofollow">RSS feed</a> and follow us on <a rel="nofollow" target="_blank" href="http://twitter.com/designshack">Twitter</a> to stay up on recent content.</em></p>
<h2>Fred Asks for Help</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/dontlikeit-4.jpg" alt="screenshot" width="510"/></div>
<p>I frequently receive emails from designers asking for advice on various topics from business to design. Recently though I received an email not from a designer but from a concerned client who simply didn&#8217;t know what to do.</p>
<p>The situation is extremely common and I&#8217;m sure it resonates with most people who have hired professional creatives at some point. The client, Fred, hired a designer to take on a major rebranding project. Step one was to refresh the logo.</p>
<p>Fred said that the designer obviously put forth a good deal of time and effort in this step, delivering ten different versions, each with around eight different slight variations for a total of eighty different logos to choose from! On a side note, I think too many options can be just as bad or worse than not enough, so I don&#8217;t really think this was appropriate, but Fred appreciated the dedication.</p>
<p>Now for the kicker, even with all of these options, Fred didn&#8217;t really see anything that he &#8220;was in love with.&#8221; In other words, he hired a designer to do some work, the designer delivered the work as promised, but he didn&#8217;t like it. Fred&#8217;s question is the same as that from every other design client in this situation: now what?</p>
<p>What&#8217;s the appropriate course of action here? Should Fred pay for the work? Should he tell the designer? Should more options be requested? </p>
<h2>Structuring a Design Agreement</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/dontlikeit-2.jpg" alt="screenshot" width="510"/></div>
<p>It&#8217;s too late for Fred, but I think the absolute best way to handle these situations is to prevent them altogether. The way to do this is to structure any design agreement clearly and carefully, planning for likely contingencies such as these.</p>
<h3>Make It Clear What Is Being Purchased</h3>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://www.bigstockphoto.com/image-5191650/stock-photo-money"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/dontlikeit-5.jpg" alt="screenshot" width="510"/></a></div>
<p>The first thing that needs to happen before any money changes hands is that the terms of payment should be made crystal clear. People tend to naturally work out the simple stuff like deadlines and dollar amounts, but skip over one of the most critical pieces of the puzzle: what&#8217;s being purchased?</p>
<p>There are two ways to approach this discussion. The first is that you&#8217;re buying the designer&#8217;s time. He or she is an experienced professional, and to use their services in any way, you must compensate them for every hour spent working.</p>
<p>This is similar to hiring a doctor. You go to the office, let the doctor do what he/she thinks is appropriate, hear the diagnosis and treatment, then decide whether or not you agree enough to follow along. Regardless of whether or not you think the prescription the doctor gave you is worth filling, you still have to pay the bill that comes in the mail later because the doctor&#8217;s time is valuable and you used some of it up.</p>
<p>The second way to view design work is a product-focused approach. Here you don&#8217;t care if the designer spends two or twenty hours on a project, you are paying a flat rate for a given list of &#8220;deliverables&#8221;. You give the designer  a list of your requirements and suggestions and receive a piece of design work in return (or multiple pieces depending on the agreement). </p>
<h3>Build In Revision Considerations</h3>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://www.bigstockphoto.com/image-15024668/stock-photo-classic-pink-eraser-on-paper-with-partially-erased-word-'oops'-macro-with-extremely-shallow-dof"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/dontlikeit-6.jpg" alt="screenshot" width="510"/></a></div>
<p>From the designer&#8217;s perspective, the hourly rate is by far the best way to go. This way the agreement stays fairly balanced: every hour of work is met with an hour&#8217;s worth of payment.</p>
<p>From the client&#8217;s perspective though, the flat rate piecemeal system can often be desirable because it&#8217;s easier to budget for: you know exactly how much you&#8217;ll be paying. With this system though, the client needs to be sure that there&#8217;s a clear system in place for revisions.</p>
<p>It&#8217;s almost never going to be the case that a designer hands over a piece of work that you don&#8217;t want to change or tweak in some way. For this reason, it&#8217;s often the case that a flat rate will come with something like the following: $X for three logo options, one major revision (significantly change one of the logos) and two minor revisions (tweak colors, fonts, etc.). </p>
<p>In this agreement, clients know up front what happens in the case that they don&#8217;t like the work for any reason. With no extra fees, they can get up to three revisions, one major and two minor. Some clients will still need more though so you&#8217;ll need to go one step further and decide on pricing for each additional major and minor round of revisions.</p>
<h2>Providing Feedback</h2>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://www.bigstockphoto.com/image-4830304/stock-photo-flow-diagram-with-three-boxes-on-blackboard"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/dontlikeit-9.jpg" alt="screenshot" width="510"/></a></div>
<p>I&#8217;ve written entire articles on providing feedback so I won&#8217;t spend too much time on this topic but I it&#8217;s worth briefly covering. When anything creative is involved, feedback can become a touchy subject.</p>
<p>Both sides are to blame here. Clients too often choose an extreme of flat out unprofessional, rude criticism or a hesitance to say anything negative whatsoever and tiptoe around the subject of not liking the work. Similarly, designers are too often emotionally tied to their work and forget who is paying the bills. If I like blue but the client insists that the logo should be yellow, I shouldn&#8217;t throw a tantrum or let my feelings get hurt, I should make the dang logo yellow and grow up.</p>
<p>The customer is most certainly <em>not</em> always right, but they are paying so that means they get the final say in many matters. If I hire a landscaper for my yard and insist that black gravel be used, the landscaper can by all means tell me that white gravel will look better with my house color but ultimately, I get to choose because it&#8217;s my yard. </p>
<p>As a client, you should be open, honest and professional. If your designer can&#8217;t take it, it&#8217;s time to hire someone else. You should never have to pretend that you like something. If the work is unsatisfactory, say so! It&#8217;s an awkward conversation but these are a part of every professional business relationship. As a designer, I greatly prefer clients who clearly let me know what they think and how I can make something more along the lines of what they were looking for. </p>
<h2>The Matter of Payment</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/dontlikeit-3.jpg" alt="screenshot" width="510"/></div>
<p>All of this leads up to where we&#8217;re standing with Fred. What should he do? He has eighty logos that he doesn&#8217;t like and a designer waiting for the next step!</p>
<p>The most important question here was whether or not the designer did his or her job. This is why I was so insistent earlier on making the terms of the agreement clear. In this case, it sounds like the designer went above and beyond the call of duty and worked hard to make the client happy.</p>
<p>If the logos were plagiarized, delivered in a raster format when the agreement was vector, or otherwise technically and morally insufficient, there would be clear grounds for non-payment. If the client doesn&#8217;t get what was promised, neither does the designer.</p>
<p>However, especially where creative work is concerned, there&#8217;s this awkward and huge gray area of work that was delivered to technical standards but simply isn&#8217;t what the client was looking for. As you&#8217;ve noticed already, I love a good metaphor so I&#8217;m going to stick with this theme.</p>
<h3>Logos Are Like Big Macs</h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/dontlikeit-8.jpg" alt="screenshot" width="510"/></div>
<p>Imagine that I roll into McDonald&#8217;s and order my first ever Big Mac. I get my food, sit down at the table and take a bite only to discover that I don&#8217;t like it at all. Now, if I took the sandwich apart and found that they forgot to put meat on the bun or put onions all over it when I specifically asked them not to, then I have reason to get a refund or a replacement. However, if I simply find that a Big Mac isn&#8217;t necessarily a food that I particularly enjoy, then I really have no ground on which to demand a refund. I took a gamble on something new, whether I like special sauce or not, McDonald&#8217;s has kept their part of the bargain and I should as well.</p>
<p>This same logic applies when you&#8217;re not necessarily &#8220;in love&#8221; with the work that your designer does. Ultimately, this person did the work that was agreed upon and you owe them a fair wage. If it turns out that you don&#8217;t like the design style, that just means that you picked the wrong designer just like I picked the wrong place to eat lunch with my Big Mac. </p>
<h3>Moving Forward</h3>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://www.bigstockphoto.com/image-5447436/stock-photo-feedback-concept-on-blackboard"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/dontlikeit-7.jpg" alt="screenshot" width="510"/></a></div>
<p>So what happens now? You simply don&#8217;t like the work and you&#8217;re out of free revisions. There are two courses of action, both of which involve being open and honest with the designer about what you&#8217;re feeling. </p>
<p>The first course of action is if you still have trust in the designer to do a better job. At this point, you attempt to structure a new agreement, distinct from the old one where you essentially just try again. </p>
<p>However, it&#8217;s understandable if the project has reduced your trust in the designer&#8217;s ability to deliver what you want. It&#8217;s often the case that you should cancel any further work, pay the agreed upon amount for the work that has been delivered, cut your losses and move on with another designer. Does this suck for you, the client? Absolutely, but you should&#8217;ve gone to Chipotle for lunch instead. </p>
<p>If the project is at an awkward point where the amount due is uncertain but you still want to cease activity, it&#8217;s time to have an open discussion and maybe even a debate with the designer about the value of the work that has been done so far. Think about how far the project has advanced. Has the designer finished 25% of the total work? Then you owe 25% of the total project fee. </p>
<h3>Satisfaction Guaranteed</h3>
<p>For the most part, this advice is widely applicable to almost any scenario where you as the client aren&#8217;t happy with the work a designer has produced. One important exception is if the designer is crazy enough to have a &#8220;satisfaction guaranteed&#8221; clause of some kind. Be sure to explore exactly what this entails up front because it just may mean that the designer is willing to do the work over until you&#8217;re satisfied. </p>
<h2>What Do You Think?</h2>
<p>Some of us have been on only one side of the designer/client relationship and therefore tend to see only part of the big picture. If you&#8217;ve been on both sides of a project gone wrong, you can see that everyone typically has a good mix of blame and innocence that can be assigned to them. Sometimes certain designers just aren&#8217;t a good fit with certain clients and you should always be well prepared when these situations arise.</p>
<p>Now that you&#8217;ve heard my advice, I&#8217;d like to hear from you. If you were/are a designer, what would you do in this situation? Now imagine that you&#8217;re the client. Does that change your perspective? Leave a comment and let us know. </p>]]></content:encoded>
         <category>Business</category>
      </item>
      <item>
         <title>Framework Fight: Zurb Foundation vs. Twitter Bootstrap</title>
         <link>http://designshack.net/articles/css/framework-fight-zurb-foundation-vs-twitter-bootstrap/</link>
         <description>In the vast world of rapid prototyping CSS frameworks and toolkits, there are a ton of different options to choose from, but ever since Twitter&amp;#8217;s Bootstrap hit the scene it seems like it has largely gobbled up this market. Is there room or reason for anything else? The folks at Zurb think so and aren&amp;#8217;t [...]</description>
         <guid isPermaLink="false">http://designshack.net/?p=32994</guid>
         <pubDate>Thu, 24 May 2012 06:00:39 +0000</pubDate>
         <content:encoded><![CDATA[<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/cssfoundation-8.jpg" alt="screenshot" width="510"/></div>
<p>In the vast world of rapid prototyping CSS frameworks and toolkits, there are a ton of different options to choose from, but ever since Twitter&#8217;s Bootstrap hit the scene it seems like it has largely gobbled up this market. Is there room or reason for anything else?</p>
<p>The folks at Zurb think so and aren&#8217;t about to abandon their widely successful <a rel="nofollow" target="_blank" href="http://foundation.zurb.com/">Foundation</a> project. Having written about Bootstrap several times in the past, I&#8217;m going to jump into Foundation today and see what I think. </p>
<p><span id="more-32994"></span><br />
<em>Like the article? Be sure to subscribe to our <a rel="nofollow">RSS feed</a> and follow us on <a rel="nofollow" target="_blank" href="http://twitter.com/designshack">Twitter</a> to stay up on recent content.</em></p>
<h2>Meet Foundation</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/cssfoundation-3.jpg" alt="screenshot" width="510"/></div>
<p>So what is Foundation? Zurb describes it as &#8220;an easy to use, powerful, and flexible framework for building prototypes and production code on any kind of device.&#8221;</p>
<p>Right from that description you can tell that Zurb is putting a lot of emphasis on the cross-device aspect of its layout grid. Interestingly enough, the word &#8220;responsive&#8221; doesn&#8217;t appear anywhere on the Foundation site (that I can find), but the benefits are definitely similar: design one project that works everywhere.</p>
<h3>Is It Like Bootstrap?</h3>
<p>These two projects certainly aren&#8217;t identical, but they&#8217;re about as close to direct competitors as you can get.  Basically, they&#8217;re similar enough that if you&#8217;re using one, you&#8217;re almost certainly not using the other. </p>
<p>Both Bootstrap and Foundation seek to give you all of the tools that you need to quickly perform CSS-based layout and prototyping work with some JavaScript goodies thrown in. They&#8217;re also both marketed with a heavy emphasis on clean, minimal design, which is a result of the extensive default styling on things like typography. Even their home pages look remarkably similar:</p>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://foundation.zurb.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/cssfoundation-1.jpg" alt="screenshot" width="510"/></a></div>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://twitter.github.com/bootstrap/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/cssfoundation-2.jpg" alt="screenshot" width="510"/></a></div>
<h2>The Grid</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/cssfoundation-4.jpg" alt="screenshot" width="510"/></div>
<p>The first thing that I turn to with any framework is the grid. The layout system is often the cornerstone that the entire experience is built on so getting this right is a big deal. </p>
<p>With Foundation, you start with a flexible twelve column grid, which responds well to browser resizes and uses media queries to handle the shift to smaller devices. In Bootstrap, you also have a twelve column grid that makes heavy use of media queries. Here you have the option to choose between fluid and static columns, which is nice.</p>
<p>Implementing the Foundation grid should be a snap if you&#8217;ve used other grid systems before. Yes, it does involve the use of non-semantic class names so if you hate frameworks for that reason, this won&#8217;t be the one that changes your mind. </p>
<p>The system here is easy enough that you can pick it up almost immediately. Each time you want a new row, create a div with the class &#8220;row&#8221;. From here you have twelve columns to fill. You can split it in half with two six column divs, cut it in thirds with three four column divs, etc. Simply apply a class that corresponds to the number of columns you&#8217;d like to fill in addition to the &#8220;columns&#8221; class. </p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color:#808080;font-style:italic;">&lt;!-- Foundation Grid Syntax --&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">div</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;row&quot;</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">div</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;six columns&quot;</span>&gt;</span>
    <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">p</span>&gt;</span>Lorem ipsum...<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">p</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">div</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">div</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;six columns&quot;</span>&gt;</span>
    <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">p</span>&gt;</span>Lorem ipsum...<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">p</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">div</span>&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">div</span>&gt;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<p>If we recreate this example in Bootstrap, the syntax is extremely similar, though more succinct. Bootstrap doesn&#8217;t require the extra &#8220;columns&#8221; class so you&#8217;ll be able to trim back your markup just a bit. Admittedly though, &#8220;span6&#8243; sure doesn&#8217;t read as nice as &#8220;six columns&#8221;. </p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color:#808080;font-style:italic;">&lt;!-- Bootstrap Grid Syntax --&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">div</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;row&quot;</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">div</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;span6&quot;</span>&gt;</span>
    <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">p</span>&gt;</span>Lorem ipsum...<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">p</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">div</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">div</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;span6&quot;</span>&gt;</span>
    <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">p</span>&gt;</span>Lorem ipsum...<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">p</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">div</span>&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">div</span>&gt;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<p>Both grid systems have all of the advanced features that you need: nesting, offsets, pushing/pulling, etc. As with the code above, you&#8217;ll find that with these features, Foundation&#8217;s syntax is a little more straightforward and easy to read while Bootstrap&#8217;s is more succinct. </p>
<h3>Who Wins the Grid Battle?</h3>
<p>I&#8217;m a grid fanatic and really love digging around and seeing what makes these things tick. I&#8217;ve built pages with both the Bootstrap and Foundation grids and honestly find them both to be excellent. They&#8217;re so similar in approach that I don&#8217;t think this will be the deciding feature for anyone trying to choose between the two. </p>
<p>If you hate one of them, you&#8217;ll probably hate them both and if you like one of them, it won&#8217;t be difficult to switch to the other. It used to be the case that Bootstrap would&#8217;ve lost this battle without a second thought, but now that Bootstrap 2 has <a rel="nofollow" target="_blank" href="http://designshack.net/articles/css/twitter-bootstrap-2-bootstrap-goes-responsive/">gone responsive</a>, I&#8217;m declaring it a draw. </p>
<h2>Basic UI Elements</h2>
<p>Both of these frameworks contain pre-styled but customizable UI elements so that you can quickly mockup your app or web page without giving too much thought to how you&#8217;re going to structure different pieces. </p>
<p>Let&#8217;s start by looking at one of the most basic UI pieces, a button. In foundation, all you really need for a button is an anchor tag with the &#8220;button&#8221; class applied.</p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">a</span> <span style="color:#000066;">href</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;#&quot;</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;button&quot;</span>&gt;</span>Button Text<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">a</span>&gt;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<p>However, this is going to create an incredibly simple button. If you want to make it more interesting, each additional piece of styling has another associated class. For instance, below I&#8217;ve made a small, blue, glossy button with rounded corners. </p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">a</span> <span style="color:#000066;">href</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;#&quot;</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;nice small radius blue button&quot;</span>&gt;</span>Button Text<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">a</span>&gt;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/cssfoundation-5.jpg" alt="screenshot" width="510"/></div>
<p>The story is the same here as with the grid. Foundation&#8217;s style is more verbose, but especially in this case, it allows for an easier to tweak experience. Instead of splitting classes off by what they do, Bootstrap assigns different personalities to each class. So you can choose between &#8220;btn-info&#8221; and &#8220;btn-warning&#8221; for different style options.</p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">a</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;btn btn-success&quot;</span> <span style="color:#000066;">href</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;#&quot;</span>&gt;</span>Button Text<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">a</span>&gt;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<p>As far as styling, I personally like the subtle gradient look that Bootstrap uses better than the glossy Foundation look, but this can be easily customized in both frameworks so it&#8217;s pretty much a non-issue. </p>
<h3>Forms, Tabs, and Labels Oh My</h3>
<p>It&#8217;s simply not worth going through every UI element and comparing the syntax, you should get the picture by now. Both frameworks stock you up on the most common UI items so that you can implement them with virtually no heavy lifting whatsoever.</p>
<p>Tabs, navigation, breadcrumbs, forms, labels, tables; if you want &#8216;em, you got &#8216;em no matter which of these you&#8217;re using. That being said, if you&#8217;re looking for quantity, Bootstrap really takes the lead here and seems to just pack in a ton of interesting UI elements. Each framework has some unique pieces not in the other, but Bootstrap wins the numbers game. </p>
<h2>JavaScript Goodies</h2>
<p>Foundation isn&#8217;t only a CSS library, it has some great JavaScript features as well. One of my favorite features is the Orbit slideshow, which is really easy to implement and customize. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/cssfoundation-6.jpg" alt="screenshot" width="510"/></div>
<p>All you need to set up a slideshow is a div with some images in it (use alt tags for captions). From here you just point your JavaScript at that div and call the &#8220;orbit&#8221; function. If you want to go further, there are plenty of options to tweak. </p>
<p>There&#8217;s also a pretty cool modal window plugin, some tooltips, tab functionality, dropdown menus, alert messages and some nice form validation. Jumping over to Bootstrap we see most of the same types of items implemented in subtly different ways. Once again though we find that the <a rel="nofollow" target="_blank" href="http://twitter.github.com/bootstrap/javascript.html">Bootstrap offering</a> is a little more robust. </p>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://twitter.github.com/bootstrap/javascript.html"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/cssfoundation-7.jpg" alt="screenshot" width="510"/></a></div>
<h2>Preprocessor Support</h2>
<p>One area where Foundation and Bootstrap went their separate ways is with their preprocessor support. Foundation went with Sass and Compass while Bootstrap went with LESS. I started as a LESS fan but have since been won over to the power of Sass so I&#8217;m inclined to like Foundation better in this regard, especially given the Compass integration. </p>
<p>Compass is a powerhouse of preprocessor goodness and really makes it easy to code up cross-browser CSS3 with little effort. I&#8217;ve always been fairly surprised that Bootstrap chose the LESS route instead.</p>
<p>That being said, it&#8217;s interesting to note that Bootstrap pretty nearly serves as Compass for LESS. Just like with Compass, Bootstrap comes built in with all sorts of helpful mixins that help you utilize complicated CSS features with very little hand coding. </p>
<p>Whether you&#8217;re using Foundation or Bootstrap, taking advantage of the preprocessor support will make it far easier to customize and extend the framework. </p>
<h2>Cut The Crap, Who Wins?</h2>
<p>It&#8217;s difficult to declare a winner here. As I mentioned previously, Bootstrap 1 was easily inferior to Foundation simply because the layout was purely static and non-responsive. With Bootstrap 2 however, Twitter really upped their game and have built an exceptional toolset and Foundation has some work to do if it&#8217;s going to match it. </p>
<p>Bootstrap simply has more to offer from a strict feature list perspective. It&#8217;s also more succinctly coded, better organized and far more thoroughly documented. This is on top of the fact that the developer community has thoroughly embraced Bootstrap to the point that superb third party themes, plugins and other extras are <a rel="nofollow" target="_blank" href="http://designshack.net/articles/css/20-awesome-resources-for-twitter-bootstrap-lovers/">easy to find</a>.</p>
<p>That being said, there&#8217;s an important question here: is bigger better? Just because Bootstrap seems to have more in it doesn&#8217;t necessarily mean that it&#8217;s superior. In the world of web design and development, less is often more. Foundation has a simpler, less bloated feel to it that I really appreciated. It really is amazingly easy to download it and begin busting out web pages in no time.</p>
<p>Bootstrap users will chime in here and point out that the bloated argument doesn&#8217;t apply because there&#8217;s a <a rel="nofollow" target="_blank" href="http://twitter.github.com/bootstrap/download.html">custom Bootstrap download builder</a> that easily lets you decide what you do and don&#8217;t want in your framework.</p>
<h2>Which Do You Think Is Better?</h2>
<p>You should give both frameworks a test drive to see which you gel with better. However, you came here for an opinion and I&#8217;ve got one for you. If you only want to download one of these libraries, go with Bootstrap. I&#8217;m not a Bootstrap fanboy and to be honest I haven&#8217;t even adopted it into my personal workflow. Further, I see Foundation as the underdog and would love to give it the prize here, but I think it&#8217;s got some catching up to do before that happens. </p>
<p>But what do I know? You guys are using these types of tools every day and I want to hear what you think. Is Foundation better than Bootstrap? Why or why not? Would you consider using either of these in your workflow if you&#8217;re not already? </p>]]></content:encoded>
      </item>
      <item>
         <title>Win One of Ten Copies of the Best 365 Websites Around the World</title>
         <link>http://designshack.net/articles/competitions/win-one-of-ten-copies-of-the-best-365-websites-around-the-world/</link>
         <description>“The Best 365 Websites Around the World” is a gorgeous, hard cover, full color book that showcases the best sites from around the world as judged by top-notch design professionals like Fabio Sasso. Today we&amp;#8217;ve got ten copies to give away to our awesome readers. Read on to learn more and see how you can [...]</description>
         <guid isPermaLink="false">http://designshack.net/?p=32920</guid>
         <pubDate>Wed, 23 May 2012 22:38:33 +0000</pubDate>
         <content:encoded><![CDATA[<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/awwwardsbook-1.jpg" alt="screenshot" width="510"/></div>
<p><em>“The Best 365 Websites Around the World”</em> is a gorgeous, hard cover, full color book that showcases the best sites from around the world as judged by top-notch design professionals like Fabio Sasso.</p>
<p>Today we&#8217;ve got ten copies to give away to our awesome readers. Read on to learn more and see how you can win!</p>
<p><span id="more-32920"></span></p>
<h2>The Giveaway</h2>
<p><a rel="nofollow" target="_blank" href="http://book.awwwards.com/">Awwwards</a> has teamed up with us to giveaway 10 digital copies of their latest book <em>“The Best 365 Websites Around the World”</em>, the ultimate guide for trends &#038; styles in website design, so you can find inspiration for layout, color, style and more.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/awwwardsbook-3.jpg" alt="screenshot" width="510"/></div>
<h2>About Awwwards</h2>
<p><a rel="nofollow" target="_blank" href="http://www.awwwards.com/">Awwwards</a> recognize and promote the talent and effort of the best developers, designers and web agencies in the world. An international jury made up of some of the most important designers, bloggers and Internet agencies evaluate each site by means of a strict system of evaluation, scoring it on a scale of 1 to 10 for its Design, Creativity, Usability and Content.</p>
<p>Check out all the latest <a rel="nofollow" target="_blank" href="http://www.awwwards.com/">Website Awwwards</a>.</p>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://www.awwwards.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/awwwardsbook-2.jpg" alt="screenshot" width="510"/></a></div>
<p>The goal at Awwwards is to create a meeting point where web developers, designers and agencies across the world can share experiences, inspiration and knowledge: A community that bids for a more accessible, usable and beautiful Internet.</p>
<h2>How to Win</h2>
<p>All you have to do to have chance to win is comment on this post in the most original way you can think of. The 10 best will receive their very own copy of <em>“The Best 365 Websites Around the World”</em>. We&#8217;ll choose the winners a week from today and update this post. Good luck!</p>]]></content:encoded>
         <category>Competitions</category>
      </item>
      <item>
         <title>Ode to the Option Key: 30+ Cool Option Key Shortcuts in Photoshop</title>
         <link>http://designshack.net/articles/software/ode-to-the-option-key-30-cool-option-key-shortcuts-in-photoshop/</link>
         <description>The Option key (that&amp;#8217;s Alt for you PC folks) is an amazing little helper for the Photoshop user. For the most part, you can probably get along without it but when you learn to wield it well, you open up tons of time saving features. Why is it so great? What are all these great [...]</description>
         <guid isPermaLink="false">http://designshack.net/?p=32933</guid>
         <pubDate>Wed, 23 May 2012 06:00:28 +0000</pubDate>
         <content:encoded><![CDATA[<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/odetooption-0.jpg" alt="screenshot" width="510"/></div>
<p>The Option key (that&#8217;s Alt for you PC folks) is an amazing little helper for the Photoshop user. For the most part, you can probably get along without it but when you learn to wield it well, you open up tons of time saving features.</p>
<p>Why is it so great? What are all these great things you can do with the Option key in Photoshop? Read on to find out!</p>
<p><span id="more-32933"></span><br />
<em>Like the article? Be sure to subscribe to our <a rel="nofollow">RSS feed</a> and follow us on <a rel="nofollow" target="_blank" href="http://twitter.com/designshack">Twitter</a> to stay up on recent content.</em></p>
<h2>Shortcut Guide</h2>
<p>What the heck are all these funny symbols? If you&#8217;re not familiar with keyboard shortcuts, then you might be asking yourself this question as you browse this article. Here&#8217;s a quick cheat sheet so you can make sense of it all. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/odetooption-2.jpg" alt="screenshot" width="510"/></div>
<h3>Instructions for Windows Users</h3>
<p>For simplicity, I&#8217;ll stick to the keyboard shortcuts for Mac users. PC users need only convert Command to Control and Option to Alt. </p>
<h2>New Layer With/Without Options</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/odetooption-3.jpg" alt="screenshot" width="510"/></div>
<p>When you&#8217;re creating a new layer with the default shortcut, <strong>Shift+Command+N</strong>, you&#8217;ll see a window of options pop up. If you add the Option key to this shortcut, <strong>Option+Shift+Command+N</strong>, you&#8217;ll be able to skip that window full of options and create a new layer right away.</p>
<p>When you&#8217;re in the Layers Palette, the opposite is true. Clicking the new layer button won&#8217;t give you any extra layer options, but holding down Option while you click will bring up the extra window. This also applies when you&#8217;re creating a new Layer Group or copying a layer with <strong>Command+J</strong>.</p>
<h2>Deleting Layers</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/odetooption-4.jpg" alt="screenshot" width="510"/></div>
<p>When you delete a layer by clicking on the trash can button in the layers palette, a little window will pop up asking you if you&#8217;re sure that you really want to take such a drastic action.</p>
<p>If you&#8217;re an experienced user, you need no such warning. Holding down the Option key while clicking the trash can will allow you to skip the warning (or click the box to never see it again). You can also simply hit &#8220;V&#8221; to select the Move Tool and then press Delete to kill the current layer.</p>
<h2>Selecting Tools</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/odetooption-5.jpg" alt="screenshot" width="510"/></div>
<p>Several of the Photoshop tool buttons have hidden options underneath, a few of which can&#8217;t be reached by keyboard shortcuts, leaving you to press and hold the button to wait for the flyout menu to pop up.</p>
<p>There&#8217;s a quicker and better way though, just use the Option key! By Option clicking on a tool with hidden options, you can cycle through the different tools associated with that button. </p>
<h2>Reset Dialog</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/odetooption-6.jpg" alt="screenshot" width="510"/></div>
<p>When you&#8217;re in any dialog with a lot of different settings and sliders, it&#8217;s easy to screw stuff up, which leaves you wishing that you could just start over. Fortunately, there&#8217;s an easy way to do exactly that. Simply hold down the Option key and you&#8217;ll see the Cancel button turn into a Reset button.</p>
<p>This little trick works when applying filters, layer effects and a lot more. Be sure to try it in every dialog you see!</p>
<h2>Draw From the Center</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/odetooption-7.jpg" alt="screenshot" width="510"/></div>
<p>Typically, when you draw a shape or make a selection, the point where you click and begin your drag represents the top left corner of the shape area. As you know, holding down Shift will keep your proportions in check, but if you add Option to that you can modify the behavior to draw from the center. </p>
<p>Using this method, the point where you click represents the very center of the object. I use this shortcut all the time as I often instinctively click right where I want the shape to be drawn.</p>
<h2>Merge Visible To New Layer</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/odetooption-8.jpg" alt="screenshot" width="510"/></div>
<p>There are several different ways to merge your layers in Photoshop. <strong>Command+E</strong> will merge two or more selected layers and <strong>Shift+Command+E</strong> will merge all of the visible layers. The problem with this command is that you lose your original layers if you do it.</p>
<p>The route that I take far more often is to add in the Option key and press <strong>Option+Shift+Command+E</strong> to merge all of the visible layers into a brand new layer while retaining all of my old layers. </p>
<h2>Create a Mask Filled with Black</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/odetooption-9.jpg" alt="screenshot" width="510"/></div>
<p>By default, when you click on the &#8220;Add layer mask&#8221; button in the layers palette, you&#8217;ll get a new mask filled with white, meaning that the layer will be 100% visible. It&#8217;s often the case though that you&#8217;ll want to paint in an effect gradually with a layer mask and so would prefer for the layer mask to start by turning the layer invisible. To accomplish this, simply hold down Option when you click the mask button. </p>
<h2>Create Intense Clouds</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/odetooption-10.jpg" alt="screenshot" width="510"/></div>
<p>Photoshop&#8217;s clouds filter seems like a silly feature at first, but you can actually use it create some really cool effects and realistic textures. When you render some clouds, there aren&#8217;t really any visible options, but a really neat hidden Photoshop feature is the ability to increase the intensity of the filter by holding down the Option key. Try creating clouds with and without the Option key and you&#8217;ll see the huge difference this makes! </p>
<h2>Multiple Undos</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/odetooption-11.jpg" alt="screenshot" width="510"/></div>
<p>Odds are you learned this one on your first day of Photoshop but I thought I&#8217;d include it just in case. If you just hit <strong>Command+Z</strong> to undo, you&#8217;ll toggle between the last two steps in your History Palette. If you want to take multiple steps back, use <strong>Option+Command+Z</strong>. To go forward multiple steps, use <strong>Shift+Command+Z</strong>.</p>
<h2>View and Edit a Mask</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/odetooption-12.jpg" alt="screenshot" width="510"/></div>
<p>When create a mask, the transparency of the layer is controlled by where you place white and black pixels. To paint in visibility, use white, to paint out details, use black. Typically, we do this while looking at our actual layer preview but sometimes it can be easier to tweak a mask by editing its pixels directly.</p>
<p>To do this, <strong>Option+Click</strong> on the little mask preview on the layer and your canvas will pop up a grayscale preview of your mask. From here you can edit the mask using many of your favorite tools and filters. </p>
<h2>Unlock Background Layer</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/odetooption-13.jpg" alt="screenshot" width="510"/></div>
<p>This one is super quick and super useful. That dang background layer is always locked by default so you can&#8217;t do much with it. To fix this, double click it while holding down Option.</p>
<h2>Repeat Filter With Options</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/odetooption-14.jpg" alt="screenshot" width="510"/></div>
<p>In Photoshop, you can always easily reapply the last filter that you used with <strong>Command+F</strong>. However, this applies the filter without any options using exactly the same settings as last time. If you&#8217;d like to repeat a filter but tweak the options, use <strong>Option+Command+F</strong>.</p>
<h2>Fill with Foreground Color</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/odetooption-15.jpg" alt="screenshot" width="510"/></div>
<p>Going to Edit&gt;Fill in the menu is a silly way to fill something. Pros usually just hit <strong>Command+Delete</strong> to quickly fill a selection or the canvas with the background color. Did you know that you can switch this up and use <strong>Option+Delete</strong> to fill with the foreground color?</p>
<p>Another cool tip is to hold Option when using the eyedropper tool, which will place the sampled color in the non-selected color space (be that foreground or background).</p>
<h2>History Eraser</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/odetooption-16.jpg" alt="screenshot" width="510"/></div>
<p>To write this tutorial, I spent a lot of time in Photoshop just trying random things. One of the coolest things that I stumbled onto that I had no idea even existed was the History Eraser Tool.</p>
<p>As you know, the eraser tool destructively eliminates pixels from a layer. However, it turns out that you actually have the ability to bring them back using this tool as well. Hold down the Option key while using the Eraser tool and you can paint in pixels from a previous snapshot or state in the History Palette. Just be sure to set the source by clicking on the icon to the left of the snapshot preview just like you do with the History Brush.</p>
<h2>Gradual &#8220;Blend If&#8221;</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/odetooption-17.jpg" alt="screenshot" width="510"/></div>
<p>Most people don&#8217;t even know what the heck the &#8220;Blend If&#8221; menu does. You can find it inside of the parent &#8220;Blending Options&#8221; menu in the Layer Effects Menu. Basically, &#8220;Blend If&#8221; allows you to blend to layers together according to their lightness and darkness values. </p>
<p>A complete tutorial is out of the scope of this article (maybe I&#8217;ll cook up one soon), but suffice to say that grabbing an arrow and moving it will change what the point at which pixels get blended. Holding down Option allows you to split the arrow, achieving a more gradual blend. </p>
<h2>Launch with Open Dialog</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/odetooption-18.jpg" alt="screenshot" width="510"/></div>
<p>It used to be that launching Photoshop with the Option key held down gave you an alternate splash screen. These days it simply takes you right into an Open dialog window, which isn&#8217;t nearly as cool in my opinion but is perhaps far more useful. </p>
<p><strong>Update:</strong> I was wrong about the alternate splash screen. Go to &#8220;About Photoshop&#8221; with the Command key held down to find it. I&#8217;m glad it&#8217;s still around! Thanks to <a rel="nofollow" target="_blank" href="http://twitter.com/#!/jonmfarmer">@jonmfarmer</a> for this tip.</p>
<h2>Alternate Tool Behaviors</h2>
<p>There are a ton of other alternate behaviors that result from using a tool with the Option key held down. Here are some of my favorites.</p>
<ul>
<li>Option dragging with the move tool <strong>makes a copy</strong>.</li>
<li>Option dragging with the Polygonal Lasso allows you to <strong>temporarily use the normal Lasso Tool</strong>.</li>
<li>Holding Option with most of the selection tools allows you to <strong>subtract from a selection</strong>.</li>
<li>Holding Option while using the brush tool gives you a <strong>quick Eyedropper</strong>. This also works with the Gradient Tool and the Shape Tools.</li>
<li>Holding down Option while using the Blur Tool <strong>Sharpens</strong> and holding Down Option while using the Sharpen Tool <strong>Blurs</strong>.</li>
<li>Holding down Option while using the Burn Tool <strong>Dodges</strong> and holding Down Option while using the Dodge Tool <strong>Burns</strong>.</li>
<li>Holding down Option while using the Pen Tool allows you to <strong>reposition a handle</strong>.</li>
<li>Option click on the canvas with the type tool to <strong>set the text box height and width</strong> manually.</li>
<li>Holding down Option while using the Hand Tool changes it to a <strong>Zoom Out</strong> Tool. This also works with the Zoom Tool.</li>
</ul>
<h2>Other Great Option Shortcuts</h2>
<p>Even after all of this, we still haven&#8217;t covered all of the great stuff that the Option key can do! There&#8217;s just so many great tweaks and functionality changes that you can access with it. Here are some not so hidden shortcuts that you might have missed:</p>
<ul>
<li>You know that <strong>Command+W</strong> closes a window, but did you know that <strong>Command+Option+W</strong> closes all windows?</li>
<li>Adding Shift+Option to a Print Command prints a single copy (<strong>Option+Shift+Command+P</strong>).</li>
<li><strong>Option+Command+A</strong> selects all layers.</li>
<li><strong>Option+Command+G</strong> creates a Clipping Mask.</li>
<li><strong>Holding Option</strong> while clicking on a color swatch or style deletes it.</li>
<li><strong>Holding Option</strong> while dragging text-based value scrubbers like Opacity allows for fine tuning.</li>
<li><strong>Option+Double Click</strong> on a layer brings up the properties dialog.</li>
</ul>
<h2>What Did I Miss?</h2>
<p>Well there you have it, more Option key tips than you&#8217;ll know what to do with. Hopefully, these weren&#8217;t all old news to you and you picked up a trick or two.</p>
<p>I&#8217;m sure there are some great ones that I&#8217;ve missed so be sure to leave a comment and let me know what cool Option shortcuts and hidden features you use on a regular basis. </p>]]></content:encoded>
         <category>Software</category>
      </item>
      <item>
         <title>Can’t Get Into Preprocessors? Try Zen Coding</title>
         <link>http://designshack.net/articles/css/cant-get-into-preprocessors-try-zen-coding/</link>
         <description>A ton of discussion lately has been given to preprocessors. These incredibly useful tools make coding easier, faster and more maintainable, but they&amp;#8217;re certainly not for everyone. Whether or not you&amp;#8217;ve jumped on the preprocessor bandwagon, you should give a fresh look to an old favorite that helps you dramatically cut your coding time without [...]</description>
         <guid isPermaLink="false">http://designshack.net/?p=32881</guid>
         <pubDate>Tue, 22 May 2012 06:00:19 +0000</pubDate>
         <content:encoded><![CDATA[<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/sublimezen-0.jpg" alt="screenshot" width="510"/></div>
<p>A ton of discussion lately has been given to preprocessors. These incredibly useful tools make coding easier, faster and more maintainable, but they&#8217;re certainly not for everyone. Whether or not you&#8217;ve jumped on the preprocessor bandwagon, you should give a fresh look to an old favorite that helps you dramatically cut your coding time without reinventing your workflow with compilers and other complications: Zen Coding.</p>
<p>With Zen Coding, you can type a little and output a lot, just like with a preprocessor like Jade or Haml, only it expands instantly into the vanilla HTML that you love. For those that are new to the concept, I&#8217;ll walk you through how Zen Coding works and show you some of my favorite tricks, then end with a brief tutorial on getting Zen Coding up and running in Sublime Text 2.</p>
<p><span id="more-32881"></span><br />
<em>Like the article? Be sure to subscribe to our <a rel="nofollow">RSS feed</a> and follow us on <a rel="nofollow" target="_blank" href="http://twitter.com/designshack">Twitter</a> to stay up on recent content.</em></p>
<h2>Zen Coding vs. Preprocessors</h2>
<p>Zen Coding has been around for a number of years, so several of you reading this are bound to think that this is too old school to merit a discussion in 2012, but I&#8217;m willing to bet that lots of new coders have never given it a shot. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/sublimezen-1.jpg" alt="screenshot" width="510"/></div>
<p>I&#8217;ll start by saying what Zen Coding isn&#8217;t: it isn&#8217;t a preprocessor in the same vein as LESS, Sass, Stylus, Jade, Haml and the like. There are similarities though. Like all of these, Zen Coding has a unique syntax that is aimed at simplifying the process of coding HTML and CSS.</p>
<p>However, unlike those other tools, Zen Coding doesn&#8217;t add any special features such as variables or mixins, nor does it require any extra files which have to be run through a compiler. Zen Coding outputs HTML and CSS immediately, no one has any possible way of even knowing that you used it by looking at your code.</p>
<p>Perhaps a closer parallel is <a rel="nofollow" target="_blank" href="http://smilesoftware.com/TextExpander/">TextExpander</a>, an app that &#8220;expands&#8221; brief text snippets into larger ones. Basically, Zen Coding is like a giant set of prebuilt text expansion macros built specifically for HTML and CSS coders. </p>
<h2>How Does It Work?</h2>
<p>Enough explanation, let&#8217;s jump in and explore the actual syntax behind Zen Coding. If you&#8217;re at all familiar with HTML, CSS and the concept of the DOM, I&#8217;m sure you&#8217;ll pick it up immediately. </p>
<p>Let&#8217;s start with the HTML side because I think that&#8217;s where almost all of the real benefit lies. As our first basic example, let&#8217;s say we wanted to create a simple div with an ID of container, here&#8217;s how we would do it:</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/sublimezen-2.jpg" alt="screenshot" width="510"/></div>
<p>If you&#8217;re familiar with <a rel="nofollow" target="_blank" href="http://designshack.net/articles/html/save-loads-of-time-by-writing-your-html-with-haml/">Haml</a>, you&#8217;ll immediately see that some of the same conventions are used here. First I typed the name of the element that I wanted, in this case a div, then I used the CSS-like syntax of inserting a hashtag to indicate that I&#8217;m referring to an ID. Finally, I followed the hashtag with the actual text that I wanted assigned to the ID: &#8220;container&#8221;. </p>
<p>As you can see, I very nearly cut my required typing in half for this particular snippet of code. I didn&#8217;t have to bother with any starting and closing brackets or quotes, instead the structure has been stripped to a bare minimum.</p>
<p>We can use this knowledge as a jumping off point for other similar snippets. For instance, let&#8217;s say I want to create a paragraph with a given class. The syntax is pretty much the same, only I use a period to indicate a class (again, just like CSS).</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/sublimezen-3.jpg" alt="screenshot" width="510"/></div>
<h2>Chaining, Siblings and Children</h2>
<p>Saving a handful of characters is quaint, but what if you&#8217;re a serious developer who can type all of that in your sleep in the span of a second? Is this Zen Coding stuff really going to be all that useful?</p>
<p>The answer is a resounding &#8220;yes.&#8221; In fact, the more complex your code structure becomes, the more helpful you&#8217;ll find Zen Coding to be! The real power here lies in the ability to chain together different elements.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/sublimezen-5.jpg" alt="screenshot" width="510"/></div>
<p>As you can see, it&#8217;s easy to create both children and siblings with the Zen Coding syntax. Sticking with the CSS theme, siblings are connected with the &#8220;+&#8221; symbol and children use the &#8220;&gt;&#8221; symbol. </p>
<p>This opens up a massive amount of time and effort saving potential. Play around with this for a few minutes and your brain will quickly begin to think of the structure of HTML documents this way. Before you know it, you&#8217;ll be typing long, advanced sequences that expand into nice, fat chunks of code. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/sublimezen-4.jpg" alt="screenshot" width="510"/></div>
<h3>Zen CSS</h3>
<p>Zen Coding isn&#8217;t just for HTML, it also helps you code CSS. To be honest, I don&#8217;t use this aspect of Zen Coding too much simply because most decent text editors have such good CSS auto-complete that I spend very little time manually typing out properties anyway (also, CSS auto-complete tends to compete with and override Zen Coding). The same argument could be said of HTML, but here I find Zen Coding to be much faster than the auto-complete route.</p>
<p>Still, this is all my personal opinion, you might find that you absolutely love the CSS side of Zen Coding. Here&#8217;s an example of how it works: </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/sublimezen-6.jpg" alt="screenshot" width="510"/></div>
<p>As you can see, the CSS side usually involves you typing out the initials of the property, followed by a colon and the initials of the value to assign to the property. As you might guess, there are a ton of CSS properties supported so memorization here is much trickier than with the HTML side. Be sure to check out the <a rel="nofollow" target="_blank" href="http://code.google.com/p/zen-coding/wiki/CheatSheets">cheat sheets</a>.</p>
<h2>My Favorite HTML Macros</h2>
<p>The <a rel="nofollow" target="_blank" href="http://code.google.com/p/zen-coding/wiki/CheatSheets">Zen Coding cheat sheet</a> can be pretty overwhelming given that there&#8217;s so much in it, so to help get you hooked right from the start, here are some of my favorite macros.</p>
<h3>HTML5 Starter</h3>
<p>Want to start a new HTML document with a clean slate? Simply type &#8220;html:5&#8243; and you&#8217;ll be off to a strong start. </p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color:#808080;font-style:italic;">&lt;!--Type This--&gt;</span>
html:5
&nbsp;
<span style="color:#808080;font-style:italic;">&lt;!--Get This--&gt;</span>
<span style="color:#00bbdd;">&lt;!DOCTYPE HTML&gt;</span> <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">html</span> <span style="color:#000066;">lang</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;en-EN&quot;</span>&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">head</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">title</span>&gt;&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">title</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">meta</span> <span style="color:#000066;">charset</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;UTF-8&quot;</span>&gt;</span> <span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">head</span>&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">body</span>&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">body</span>&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">html</span>&gt;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<h3>Stylesheet Include</h3>
<p>Once you start that fresh HTML file, you&#8217;ll want to toss in a stylesheet. Fortunately, you can do so in a jiffy.</p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color:#808080;font-style:italic;">&lt;!--Type This--&gt;</span>
link:css
&nbsp;
<span style="color:#808080;font-style:italic;">&lt;!--Get This--&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">link</span> <span style="color:#000066;">rel</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;stylesheet&quot;</span> <span style="color:#000066;">type</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;text/css&quot;</span> <span style="color:#000066;">href</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;style.css&quot;</span> <span style="color:#000066;">media</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;all&quot;</span>&gt;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<h3>JavaScript Include</h3>
<p>One more for the head portion of your document. After you&#8217;ve gotten the stylesheet worked out, it&#8217;s time to toss in the JavaScript.</p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color:#808080;font-style:italic;">&lt;!--Type This--&gt;</span>
script:src
&nbsp;
<span style="color:#808080;font-style:italic;">&lt;!--Get This--&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">script</span> <span style="color:#000066;">type</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;text/javascript&quot;</span> <span style="color:#000066;">src</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;&quot;</span>&gt;&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">script</span>&gt;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<h3>Anchor Tags</h3>
<p>One of my first questions regarding Zen Coding was, &#8220;how do links work?&#8221; Haml is actually pretty awkward when it comes to any sort of inline elements and attributes so I was worried that this might be the same.</p>
<p>However, instead of coming up with a complicated scheme for inserting the link text and URL, you simply type &#8220;a&#8221; and the core structure of the anchor is created and made ready for you to fill in. It could probably be a little better, but at least it&#8217;s easy to remember!</p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color:#808080;font-style:italic;">&lt;!--Type This--&gt;</span>
a
&nbsp;
<span style="color:#808080;font-style:italic;">&lt;!--Get This--&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">a</span> <span style="color:#000066;">href</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;&quot;</span>&gt;&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">a</span>&gt;</span>
&nbsp;
<span style="color:#808080;font-style:italic;">&lt;!--Type This--&gt;</span>
a:link
&nbsp;
<span style="color:#808080;font-style:italic;">&lt;!--Get This--&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">a</span> <span style="color:#000066;">href</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;http://&quot;</span>&gt;&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">a</span>&gt;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<h3>Multiply Elements</h3>
<p>Zen Coding has a handy multiplier trick that makes it easy to create a certain number of a specific elements. Once again, the process is very intuitive, just use the &#8220;*&#8221; symbol and the number of the element that you&#8217;d like to create.</p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color:#808080;font-style:italic;">&lt;!--Type This--&gt;</span>
p*3
&nbsp;
<span style="color:#808080;font-style:italic;">&lt;!--Get This--&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">p</span>&gt;&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">p</span>&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">p</span>&gt;&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">p</span>&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">p</span>&gt;&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">p</span>&gt;</span>
&nbsp;
<span style="color:#808080;font-style:italic;">&lt;!--Type This--&gt;</span>
ul&gt;li.someclass*4
&nbsp;
<span style="color:#808080;font-style:italic;">&lt;!--Get This--&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">ul</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">li</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;someclass&quot;</span>&gt;&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">li</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">li</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;someclass&quot;</span>&gt;&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">li</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">li</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;someclass&quot;</span>&gt;&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">li</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">li</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;someclass&quot;</span>&gt;&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">li</span>&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">ul</span>&gt;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<h3>Increment Number</h3>
<p>Another really cool trick that you can pull off while multiplying elements is to include an incrementing number in the class or ID value. To do this, you implement the &#8220;$&#8221; symbol. </p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color:#808080;font-style:italic;">&lt;!--Type This--&gt;</span>
ul&gt;li.someclass-$*5
&nbsp;
<span style="color:#808080;font-style:italic;">&lt;!--Get This--&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">ul</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">li</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;someclass-1&quot;</span>&gt;&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">li</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">li</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;someclass-2&quot;</span>&gt;&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">li</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">li</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;someclass-3&quot;</span>&gt;&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">li</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">li</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;someclass-4&quot;</span>&gt;&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">li</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">li</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;someclass-5&quot;</span>&gt;&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">li</span>&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">ul</span>&gt;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<h2>How Do I Make This Work?</h2>
<p>Zen Coding is supported in tons of different text editors and is occasionally even built in, as is the case with Espresso. Be sure to check the <a rel="nofollow" target="_blank" href="http://code.google.com/p/zen-coding/">Zen Coding Google Project Page</a> to download the plugins for your editor.</p>
<h3>How To Install Zen Coding on Sublime Text 2</h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/sublimezen-9.jpg" alt="screenshot" width="510"/></div>
<p>I&#8217;ve definitely been bitten by the Sublime Text bug. I simply love this text editor and can&#8217;t get enough of its extensibility and flexibility. One quick and easy way to make Sublime Text 2 even better is to add Zen Coding support.</p>
<p>To do this, you&#8217;ll need to grab the free <a rel="nofollow" target="_blank" href="http://wbond.net/sublime_packages/package_control">Sublime Package Control</a> download from Will Bond. This is an awesome package manager that makes finding and installing Sublime text plugins incredibly easy. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/sublimezen-76.jpg" alt="screenshot" width="510"/></div>
<p>Once you&#8217;ve got that installed, hit Command+Shift+P (Command = Control for PC folks) to bring up the Command Palette and type the word &#8220;install&#8221;. You should see an item that says &#8220;Package Control: Install Package&#8221;, hit enter on that option.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/sublimezen-8.jpg" alt="screenshot" width="510"/></div>
<p>From here, type &#8220;Zen Coding&#8221; and you should see the package. Simply hit enter again and the package will be installed (restart if it doesn&#8217;t take effect). Start a new HTML document, type out an abbreviation, hit tab, and watch the magic (make sure your syntax is set to HTML or it won&#8217;t work). </p>
<p>Sublime text is already a fantastic editor and using it conjunction with Zen Coding just makes me smile. It&#8217;s a killer combination that you won&#8217;t want to miss out on. </p>
<h2>Do You Use Zen Coding?</h2>
<p>To be honest, I really missed the boat on Zen Coding when it was popular a couple of years ago. I always found the Espresso integration to be a little clunky and since that was my editor of choice, I never explored it further. Now that I&#8217;m on Sublime Text I just love how quickly I can use Zen Coding to bust out a complex HTML structure without the hassle of tags, returns and the like.</p>
<p>What do you think? Do you use Zen Coding for your HTML? Do you prefer it over using a preprocessor to do something similar? How about with your CSS? Do you think Zen Coding is useful for typing CSS or are you fine with auto-complete?</p>]]></content:encoded>
         <category>CSS</category>
      </item>
      <item>
         <title>DPI vs. Pixels: What Do I Use?</title>
         <link>http://designshack.net/articles/graphics/dpi-vs-pixels-what-do-i-use/</link>
         <description>You hear the phrases tossed around by everyone today – from amateur photographers to the iPhone salesman to some of the world’s most acknowledged visual creators and designers. But what do image size specs really mean? And what should you use? Simply, it all depends on your project. Knowing what medium you are creating for [...]</description>
         <guid isPermaLink="false">http://designshack.net/?p=32864</guid>
         <pubDate>Mon, 21 May 2012 14:10:13 +0000</pubDate>
         <content:encoded><![CDATA[<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/DPIlede.jpg" alt="screenshot" width="510"/></div>
<p>You hear the phrases tossed around by everyone today – from amateur photographers to the iPhone salesman to some of the world’s most acknowledged visual creators and designers. But what do image size specs really mean? And what should you use?</p>
<p>Simply, it all depends on your project. Knowing what medium you are creating for and how your images will be used is key to sizing and picking the right number of pixels or DPI. Before you begin your next project, though, make sure you are familiar with all the image-quality jargon.</p>
<p><span id="more-32864"></span><br />
<em>Like the article? Be sure to subscribe to our <a rel="nofollow">RSS feed</a> and follow us on <a rel="nofollow" target="_blank" href="http://twitter.com/designshack">Twitter</a> to stay up on recent content.</em></p>
<h2>Pixels</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/PPI.jpg" alt="screenshot" width="510"/></div>
<p>Picture elements, or pixels, in web design refer to the smallest units on a grid displaying an image. Pixels are measure by pixels per inch, or PPI. The more pixels per inch, the sharper an image will appear because of the size of each pixel. Pixelation occurs when the number of pixels per inch in an image is low, causing each pixel to have visible edges.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/imagesize.jpg" alt="screenshot" width="510"/></div>
<p>PPI is important because it is a measure of image quality. Using image sizing tools in photo editing software, you can resample images (change the number of pixels in the document) or resize images (change the actual size of each pixel in the document but not the overall number of pixels). In Adobe Photoshop, the “Image Size” menu allows you to resize or resample. Keep an eye on the number of pixels (the top section of the window) versus the “Resample Image” option (in the bottom left corner).</p>
<h3>On Screen and for the Web</h3>
<p><a rel="nofollow" target="_blank" href="https://www.facebook.com/designshack">
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/dsfacebook.jpg" alt="screenshot" width="510"/></div>
<p></a></p>
<p>The web standard for images is 72 pixels per inch. At 72 PPI, images will render nicely (as long as they are of good quality) and should not appear pixelated or distorted. Keep in mind that your full-size photo should be wide enough to fully occupy the frame. (If you are in doubt, always size your photo a little on the large side.)</p>
<p>Think about your Facebook timeline photo, for example. The cover photo is 851 pixels wide. At 72 pixels per inch, your photo would need to be nearly 12 inches wide to fill the space without causing pixelation.</p>
<p>PPI has an impact on text as well. Just as a higher number of pixels per inch can make a photo appear sharper, it can also make text easier to read. Fonts with higher PPI are legible on screen at even smaller sizes than lose with lower PPI. Remember, text can appear pixelated in the very same way images can.</p>
<p>Finally, when thinking about pixels for web design, you must consider the ever-changing browser size. Unlike a few years ago when most everyone used a standard shape and size browser for most applications, today’s users each have a set of preferences that you may want to take into account. When developing fluid-with layouts, allow for images to grow proportionately with the browser but not beyond actual size. This will maintain the integrity and quality of your images.</p>
<h3>For Print</h3>
<p>While PPI can help you determine the quality of an image, it really has little else to do with actual printing. For print specifications, understanding dots per inch is more relevant.</p>
<h2>DPI</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/martinprints.jpg" alt="screenshot" width="510"/></div>
<p>DPI means dots per inch. The term was developed as a method to explain printing quality and resolution. When an image is printed, it is made up of hundreds of thousands of tiny dots that are overlaid with each ink color. The inks mix in each dot to form a wide spectrum of visible color. The number associated with DPI is the number of printed dots in each inch. The higher the DPI, typically the better and smoother the image looks.</p>
<p>Increasingly though, people use DPI to refer to everything and often confuse DPI with pixels or PPI. (Photo software can add to this confusion as well, using the term in dialogue boxes.) But unless you are printing your project, DPI should not be a real concern.</p>
<h3>On Screen and for the Web</h3>
<p>When you are looking at images on screen, it is unlikely that you will be able to tell the difference between an image that is 100 DPI and an image that is 300 DPI because monitors just don’t render images in dots.</p>
<p>DPI is irrelevant when working on web-based projects. It is only important for items that will cross platforms. For example, a company logo may be used on both the company’s website and on business cards. A copy of the image with a high DPI will be important to have on file for the image that appears on the business cards.</p>
<h3>For Print</h3>
<p>This is where the importance of DPI comes in. Every printer will specify a necessary resolution for print jobs – 300 DPI is a typical resolution for paper printing. It is important for your final project to meet DPI specifications so that the printer does not enlarge or shrink your design, which could alter the look and quality of the final product.</p>
<p>DPI also comes into play when converting a printed item to a digital format. The higher the DPI when an image is scanned, the higher quality it will be on screen. In general, photo quality is considered to be a 200 DPI scan at actual size. Consider using a higher scan DPI if you plan to enlarge or reprint an image.</p>
<h2>Megapixel</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/camera.jpg" alt="screenshot" width="510"/></div>
<p>Since we are talking about images and image quality, it is important to note how all of this relates to what might be the most well-known form of a pixel – the megapixel. Megapixels are a unit used by the digital camera industry to help you understand how large or high quality of a photo you can take with a certain camera. When you boil it down, one megapixel is equal to one million pixels.</p>
<p>Digital images – no matter the source – are made up of pixels. Megapixels just help you understand the top resolution and quality of a photo your equipment can take.</p>
<h2>Conclusion</h2>
<p>Using the proper PPI or DPI specs for your next design project can impact overall quality. Remember to use PPI when working on digital applications and DPI when you are preparing a project for print.</p>
<p>Keep in mind that both units of measure can impact image quality. If you are unsure about the necessary pixel- or dot- resolution, opt for quality over file compression. You can always shrink something later with no visual loss.</p>
<p><em>Image Sources: <a rel="nofollow" target="_blank" href="http://www.flickr.com/photos/korosirego/4592913123/">Rego – d4u.hu</a>, <a rel="nofollow" target="_blank" href="http://www.flickr.com/photos/38298697@N05/4766772816/">mamojo</a></em>, <a rel="nofollow" target="_blank" href="http://www.flickr.com/photos/suckamc/243834544/">Martin Cathrae</a>, <a rel="nofollow" target="_blank" href="http://www.flickr.com/photos/daveynin/6040475592/">daveynin</a> and <a rel="nofollow" target="_blank" href="http://www.flickr.com/photos/skyseeker/16127608/">skyseeker</a>.</p>]]></content:encoded>
      </item>
      <item>
         <title>How to Center Anything With CSS</title>
         <link>http://designshack.net/articles/css/how-to-center-anything-with-css/</link>
         <description>Recently, we took a dive into the very core concepts behind CSS layout and explored the differences between absolute and relative positioning. We&amp;#8217;re going to follow that up with another CSS layout talk, this time based around a fundamental question that almost every new developer asks: how do you center something? There are a bunch [...]</description>
         <guid isPermaLink="false">http://designshack.net/?p=31490</guid>
         <pubDate>Fri, 18 May 2012 06:00:25 +0000</pubDate>
         <content:encoded><![CDATA[<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/centeranything-0.jpg" alt="screenshot" width="510"/></div>
<p>Recently, we took a dive into the very core concepts behind CSS layout and explored the differences between <a rel="nofollow" target="_blank" href="http://designshack.net/articles/css/the-lowdown-on-absolute-vs-relative-positioning/">absolute and relative positioning</a>. We&#8217;re going to follow that up with another CSS layout talk, this time based around a fundamental question that almost every new developer asks: how do you center something?</p>
<p>There are a bunch of different types of web elements and layout situations, each calling for a unique solution for centering (both vertically and horizontally). Today we&#8217;ll go over a bunch of these scenarios so you can wrap your mind around how they work and come away with the confidence to center anything!</p>
<p><span id="more-31490"></span><br />
<em>Like the article? Be sure to subscribe to our <a rel="nofollow">RSS feed</a> and follow us on <a rel="nofollow" target="_blank" href="http://twitter.com/designshack">Twitter</a> to stay up on recent content.</em></p>
<h2>Who&#8217;s This For?</h2>
<p>I&#8217;ve gotten a lot of commenter feedback lately from designers who struggle with the basic methods and concepts of layout in CSS. The general consensus among many of those new to CSS is that they simply &#8220;fiddle&#8221; with the code until everything finally works.</p>
<p>Having been there quite a few times myself, I know that this is an immensely frustrating period of your professional growth. Knowing that the answer is right there in front of you and not being able to figure it out is excruciating and time consuming. </p>
<p>If this sounds familiar, hopefully I can help ease you out of this period with some solid and practical advice for how to handle some common layout scenarios. If you&#8217;re a CSS ninja who can code a website blindfolded, this article probably isn&#8217;t for you. If you&#8217;re a designer who just wants a better understanding of how to take what&#8217;s in your Photoshop file and turn it into CSS, you&#8217;re in the right place. Let&#8217;s get started.</p>
<h2>Horizontally Center an Element</h2>
<p>The first scenario that we&#8217;ll attack is by far one of the most common: centering an element horizontally in the viewport or browser window. To get started, let&#8217;s bust out a simple div and give it some basic styling. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/centeranything-1.jpg" alt="screenshot" width="510"/></div>
<p>As you can see, by default, our div pops up in the top left of the viewport. The trick here is that we need the div to stay in the center of the window, no matter what the window&#8217;s size is currently. That means that we can&#8217;t use absolute positioning to place it at a specific point because that won&#8217;t be centered on any other possible window sizes.</p>
<p>Instead what we need to do is leverage the &#8220;auto&#8221; value that can be applied to margins. Here&#8217;s how this works:</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/centeranything-2.jpg" alt="screenshot" width="510"/></div>
<p>As you can see, applying a single line of CSS tossed our box straight to the center of its parent, which in this case is the body. To accomplish this, I used a bit of CSS shorthand. If you need a refresher, margin shorthand starts at the top and works its way around clockwise.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/centeranything-3.jpg" alt="screenshot" width="510"/></div>
<p>You can shorten this even further if you only have two values that you need assigned. In this case, the first slot will apply to the top and bottom margins while the second slot will apply to the left and right margins. Here&#8217;s another look at our centered div, this time with the margins declared using three separate but perfectly equivalent methods. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/centeranything-4.jpg" alt="screenshot" width="510"/></div>
<p>As you can see, our element is void of top and bottom margins, but the left and right are set to <em>auto</em>, which keeps the item perfectly centered. </p>
<h3>Things To Keep In Mind</h3>
<p>There are some important things to remember about using the auto margins trick. First of all, you <strong>must</strong> have a specific width declared for the element that you&#8217;re centering. The height declaration is not necessary, you can allow the content to determine the height if you wish, which is the default setting, but the width must always be set. </p>
<p>It&#8217;s important to note that while this trick will work on most block level elements, not just divs, it won&#8217;t help you out with vertical centering. As an example, let&#8217;s throw a paragraph inside of a div, then attempt to center that paragraph in the space.</p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">div <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">height</span><span style="color:#00AA00;">:</span> <span style="color:#933;">400px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">width</span><span style="color:#00AA00;">:</span> <span style="color:#933;">400px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">background</span><span style="color:#00AA00;">:</span> <span style="color:#cc00cc;">#eee</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">margin</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">auto</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
p <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">width</span><span style="color:#00AA00;">:</span> <span style="color:#933;">60%</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">margin</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">auto</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">font</span><span style="color:#00AA00;">:</span> <span style="color:#933;">14px</span>/<span style="color:#cc66cc;">1.5</span> Helvetica<span style="color:#00AA00;">,</span> <span style="color:#993333;">sans-serif</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/centeranything-5.jpg" alt="screenshot" width="510"/></div>
<p>As you can see, I have auto margins set both on the paragraph and its parent div. This centered everything nicely horizontally, but it didn&#8217;t have any effect on the vertical position. </p>
<h2>Center An Absolutely Positioned Element</h2>
<p>The method above works to automatically center one item inside another, but the method assumes that you&#8217;re using the default positioning context: static. If you have absolute positioning applied, this method goes out the window. </p>
<p>Using the absolute and relative positioning methods we learned <a rel="nofollow" target="_blank" href="http://designshack.net/articles/css/the-lowdown-on-absolute-vs-relative-positioning/">last week</a>, we can apply a simply formula to solve this issue. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/centeranything-6.jpg" alt="screenshot" width="510"/></div>
<p>Here we see that on an absolutely positioned item contained inside of a relatively positioned item, we need to set the <em>left</em> property by plugging some numbers into this formula. Here&#8217;s a test case:</p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color:#6666ff;">.container</span> <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">height</span><span style="color:#00AA00;">:</span> <span style="color:#933;">300px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">width</span><span style="color:#00AA00;">:</span> <span style="color:#933;">300px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">background</span><span style="color:#00AA00;">:</span> <span style="color:#cc00cc;">#eee</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">margin</span><span style="color:#00AA00;">:</span> <span style="color:#933;">10px</span> <span style="color:#993333;">auto</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">position</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">relative</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#6666ff;">.box</span> <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">height</span><span style="color:#00AA00;">:</span> <span style="color:#933;">100px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">width</span><span style="color:#00AA00;">:</span> <span style="color:#933;">100px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">background</span><span style="color:#00AA00;">:</span> <span style="color:#cc00cc;">#222</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">position</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">absolute</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/centeranything-7.jpg" alt="screenshot" width="510"/></div>
<p>Let&#8217;s see if we can center the black box horizontally. Using our formula, we can see that the <em>left</em> property needs to be set to 100px. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/centeranything-8.jpg" alt="screenshot" width="510"/></div>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color:#6666ff;">.container</span> <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">height</span><span style="color:#00AA00;">:</span> <span style="color:#933;">300px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">width</span><span style="color:#00AA00;">:</span> <span style="color:#933;">300px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">background</span><span style="color:#00AA00;">:</span> <span style="color:#cc00cc;">#eee</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">margin</span><span style="color:#00AA00;">:</span> <span style="color:#933;">10px</span> <span style="color:#993333;">auto</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">position</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">relative</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#6666ff;">.box</span> <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">height</span><span style="color:#00AA00;">:</span> <span style="color:#933;">100px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">width</span><span style="color:#00AA00;">:</span> <span style="color:#933;">100px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">background</span><span style="color:#00AA00;">:</span> <span style="color:#cc00cc;">#222</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">position</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">absolute</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">left</span><span style="color:#00AA00;">:</span> <span style="color:#933;">100px</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<p>With this code, we&#8217;ve set the distance between the left side of the box and the edge of its parent container to 100px, which centers it perfectly. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/centeranything-9.jpg" alt="screenshot" width="510"/></div>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/centeranything-10.jpg" alt="screenshot" width="510"/></div>
<h3>With Fluid Width</h3>
<p>The method above only works if the parent container has a static width. Given the popularity of responsive design though, more and more containers are going the fluid route lately. This means that we&#8217;ll need another way to center the child that isn&#8217;t dependent on the width of the parent.</p>
<p>To accomplish this, we need to use a percentage for the <em>left</em> value. The obvious answer is to use 50%, but that won&#8217;t really work because you&#8217;re not accounting for the width of the element that you&#8217;re centering. To make it work, we need to add in a negative left margin of half the width of the child element. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/centeranything-11.jpg" alt="screenshot" width="510"/></div>
<p>Using this logic, we apply a left margin of negative fifty pixels along with a left value of 50% and our div is once again perfectly centered on the x-axis. </p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color:#6666ff;">.container</span> <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">height</span><span style="color:#00AA00;">:</span> <span style="color:#933;">300px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">width</span><span style="color:#00AA00;">:</span> <span style="color:#933;">70%</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">background</span><span style="color:#00AA00;">:</span> <span style="color:#cc00cc;">#eee</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">margin</span><span style="color:#00AA00;">:</span> <span style="color:#933;">10px</span> <span style="color:#993333;">auto</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">position</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">relative</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#6666ff;">.box</span> <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">height</span><span style="color:#00AA00;">:</span> <span style="color:#933;">100px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">width</span><span style="color:#00AA00;">:</span> <span style="color:#933;">100px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">background</span><span style="color:#00AA00;">:</span> <span style="color:#cc00cc;">#222</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">position</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">absolute</span><span style="color:#00AA00;">;</span>
&nbsp;
  <span style="color:#808080;font-style:italic;">/*Centering Method 2*/</span>
  <span style="color:#000000;font-weight:bold;">margin</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0px</span> <span style="color:#cc66cc;">0</span> <span style="color:#cc66cc;">0</span> <span style="color:#933;">-50px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">left</span><span style="color:#00AA00;">:</span> <span style="color:#933;">50%</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/centeranything-9.jpg" alt="screenshot" width="510"/></div>
<p>It&#8217;s important to note that this would also work if our child element had a fluid width. We use the same steps as before and come up with something like the following:</p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color:#6666ff;">.container</span> <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">height</span><span style="color:#00AA00;">:</span> <span style="color:#933;">300px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">width</span><span style="color:#00AA00;">:</span> <span style="color:#933;">70%</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">background</span><span style="color:#00AA00;">:</span> <span style="color:#cc00cc;">#eee</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">margin</span><span style="color:#00AA00;">:</span> <span style="color:#933;">10px</span> <span style="color:#993333;">auto</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">position</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">relative</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#6666ff;">.box</span> <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">height</span><span style="color:#00AA00;">:</span> <span style="color:#933;">100px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">width</span><span style="color:#00AA00;">:</span> <span style="color:#933;">70%</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">background</span><span style="color:#00AA00;">:</span> <span style="color:#cc00cc;">#222</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">position</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">absolute</span><span style="color:#00AA00;">;</span>
&nbsp;
  <span style="color:#808080;font-style:italic;">/*Centering Method 2*/</span>
  <span style="color:#000000;font-weight:bold;">margin</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0px</span> <span style="color:#cc66cc;">0</span> <span style="color:#cc66cc;">0</span> <span style="color:#933;">-35%</span><span style="color:#00AA00;">;</span> <span style="color:#808080;font-style:italic;">/* Half of 70% /*
  left: 50%;
}</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/centeranything-12.jpg" alt="screenshot" width="510"/></div>
<h2>Dead Center an Element</h2>
<p>Now that we have a few simple and complicated centering methods in our tool belt, it&#8217;s time to tackle the puzzle of perfectly centering an element both horizontally and vertically. </p>
<p>Fortunately, to pull this off, we can use the same method that we just learned, we just have to account for height. This time around we&#8217;re also going to center both the parent and the child both vertically and horizontally. Here&#8217;s the code to pull it off:</p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color:#6666ff;">.container</span> <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">height</span><span style="color:#00AA00;">:</span> <span style="color:#933;">300px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">width</span><span style="color:#00AA00;">:</span> <span style="color:#933;">300px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">background</span><span style="color:#00AA00;">:</span> <span style="color:#cc00cc;">#eee</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">position</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">absolute</span><span style="color:#00AA00;">;</span>
&nbsp;
  <span style="color:#000000;font-weight:bold;">margin</span><span style="color:#00AA00;">:</span> <span style="color:#933;">-150px</span> <span style="color:#cc66cc;">0</span> <span style="color:#cc66cc;">0</span> <span style="color:#933;">-150px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">left</span><span style="color:#00AA00;">:</span> <span style="color:#933;">50%</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">top</span><span style="color:#00AA00;">:</span> <span style="color:#933;">50%</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#6666ff;">.box</span> <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">height</span><span style="color:#00AA00;">:</span> <span style="color:#933;">100px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">width</span><span style="color:#00AA00;">:</span> <span style="color:#933;">100px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">background</span><span style="color:#00AA00;">:</span> <span style="color:#cc00cc;">#222</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">position</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">absolute</span><span style="color:#00AA00;">;</span>
&nbsp;
  <span style="color:#808080;font-style:italic;">/*Centering Method 2*/</span>
  <span style="color:#000000;font-weight:bold;">margin</span><span style="color:#00AA00;">:</span> <span style="color:#933;">-50px</span> <span style="color:#cc66cc;">0</span> <span style="color:#cc66cc;">0</span> <span style="color:#933;">-50px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">left</span><span style="color:#00AA00;">:</span> <span style="color:#933;">50%</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">top</span><span style="color:#00AA00;">:</span> <span style="color:#933;">50%</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/centeranything-14.jpg" alt="screenshot" width="510"/></div>
<p>There are a few things that you need to notice here. First, this time <strong>both</strong> the parent and the child are absolutely positioned. From here, I used our negative margins trick with the left property on the container div, then did the same for the box div. </p>
<p>The result is that our content is completely centered and will stay that way as the browser changes size in any direction (even vertically!). Click on the image below to tinker with a live demo. </p>
<p><a rel="nofollow" target="_blank" href="http://tinkerbin.com/c6OniFNx">
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/centeranything-13.jpg" alt="screenshot" width="510"/></div>
<p></a></p>
<h2>Centering Text</h2>
<p>For my next trick, I&#8217;ll teach you something cool about centering text. We&#8217;ll start with a simple h1 element inside of a container div. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/centeranything-15.jpg" alt="screenshot" width="510"/></div>
<p>Now, I&#8217;m sure that you already know how to center this text horizontally in the space. It&#8217;s typically one of the first things you learn in CSS. Just set the <em>text-align</em> property to center.</p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color:#6666ff;">.container</span> <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">height</span><span style="color:#00AA00;">:</span> <span style="color:#933;">400px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">width</span><span style="color:#00AA00;">:</span> <span style="color:#933;">400px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">background</span><span style="color:#00AA00;">:</span> <span style="color:#cc00cc;">#eee</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">margin</span><span style="color:#00AA00;">:</span> <span style="color:#933;">50px</span> <span style="color:#993333;">auto</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
h1 <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">font</span><span style="color:#00AA00;">:</span> <span style="color:#933;">40px</span>/<span style="color:#cc66cc;">1</span> Helvetica<span style="color:#00AA00;">,</span> <span style="color:#993333;">sans-serif</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">text-align</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">center</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/centeranything-16.jpg" alt="screenshot" width="510"/></div>
<p>Easy right? But now let&#8217;s say we want to center this line of text vertically as well. If this were a paragraph, we would probably take the methods above into account, but since it&#8217;s only a single line, we can use a nifty trick. </p>
<p>All we have to do is set the <em>line-height</em> property to the height of the container. I accomplished this below using the <a rel="nofollow" target="_blank" href="http://designshack.net/articles/css/6-css-shorthand-tricks-every-developer-should-know">shorthand font syntax</a>.</p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color:#6666ff;">.container</span> <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">height</span><span style="color:#00AA00;">:</span> <span style="color:#933;">200px</span><span style="color:#00AA00;">;</span> <span style="color:#808080;font-style:italic;">/*Set line-height to this value*/</span>
  <span style="color:#000000;font-weight:bold;">width</span><span style="color:#00AA00;">:</span> <span style="color:#933;">400px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">background</span><span style="color:#00AA00;">:</span> <span style="color:#cc00cc;">#eee</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">margin</span><span style="color:#00AA00;">:</span> <span style="color:#933;">150px</span> <span style="color:#993333;">auto</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
h1 <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">font</span><span style="color:#00AA00;">:</span> <span style="color:#933;">40px</span>/<span style="color:#933;">200px</span> Helvetica<span style="color:#00AA00;">,</span> <span style="color:#993333;">sans-serif</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">text-align</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">center</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/centeranything-17.jpg" alt="screenshot" width="510"/></div>
<p><strong>Warning:</strong> This trick only works with a single line of text, and is a bit hacky so it may not be appropriate for all situations.</p>
<h2>Centering a Background Image</h2>
<p>The last thing that we&#8217;re going to learn to center is a CSS background image. To get started with this, we&#8217;ll create another container div, but this time we&#8217;ll keep in empty and toss in an image using CSS. </p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color:#6666ff;">.container</span> <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">height</span><span style="color:#00AA00;">:</span> <span style="color:#933;">300px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">width</span><span style="color:#00AA00;">:</span> <span style="color:#933;">300px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">margin</span><span style="color:#00AA00;">:</span> <span style="color:#933;">150px</span> <span style="color:#993333;">auto</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">background</span><span style="color:#00AA00;">:</span> <span style="color:#cc00cc;">#eee</span> <span style="color:#993333;">url</span><span style="color:#00AA00;">&#40;</span>http<span style="color:#00AA00;">:</span>//lorempixum.com/<span style="color:#cc66cc;">100</span>/<span style="color:#cc66cc;">100</span>/nature/<span style="color:#cc66cc;">4</span><span style="color:#00AA00;">&#41;</span> <span style="color:#993333;">no-repeat</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<p>As you can see, the default place for an image to appear if no repeat is set is the top left. It turns out though that you can move it to one of nine different preassigned slots. These are shown below:</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/centeranything-19.jpg" alt="screenshot" width="510"/></div>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/centeranything-18.jpg" alt="screenshot" width="510"/></div>
<p>We accomplish this movement through the use of the <em>background-position</em> property. Simply call this property and set any of the values listed above. </p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color:#6666ff;">.container</span> <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">height</span><span style="color:#00AA00;">:</span> <span style="color:#933;">300px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">width</span><span style="color:#00AA00;">:</span> <span style="color:#933;">300px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">margin</span><span style="color:#00AA00;">:</span> <span style="color:#933;">150px</span> <span style="color:#993333;">auto</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">background</span><span style="color:#00AA00;">:</span> <span style="color:#cc00cc;">#eee</span> <span style="color:#993333;">url</span><span style="color:#00AA00;">&#40;</span>http<span style="color:#00AA00;">:</span>//lorempixum.com/<span style="color:#cc66cc;">100</span>/<span style="color:#cc66cc;">100</span>/nature/<span style="color:#cc66cc;">4</span><span style="color:#00AA00;">&#41;</span> <span style="color:#993333;">no-repeat</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">background-position</span><span style="color:#00AA00;">:</span> <span style="color:#000000;font-weight:bold;">top</span> <span style="color:#993333;">center</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/centeranything-20.jpg" alt="screenshot" width="510"/></div>
<p>As an alternative, we can use the shorthand syntax for this. Simply toss in one of the values at the end of your stream of values on the <em>background</em> property.</p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color:#6666ff;">.container</span> <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">height</span><span style="color:#00AA00;">:</span> <span style="color:#933;">300px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">width</span><span style="color:#00AA00;">:</span> <span style="color:#933;">300px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">margin</span><span style="color:#00AA00;">:</span> <span style="color:#933;">150px</span> <span style="color:#993333;">auto</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">background</span><span style="color:#00AA00;">:</span> <span style="color:#cc00cc;">#eee</span> <span style="color:#993333;">url</span><span style="color:#00AA00;">&#40;</span>http<span style="color:#00AA00;">:</span>//lorempixum.com/<span style="color:#cc66cc;">100</span>/<span style="color:#cc66cc;">100</span>/nature/<span style="color:#cc66cc;">4</span><span style="color:#00AA00;">&#41;</span> <span style="color:#993333;">no-repeat</span> <span style="color:#993333;">center</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/centeranything-21.jpg" alt="screenshot" width="510"/></div>
<h2>Conclusion</h2>
<p>There you have it! You should now be completely confident in your ability to tackle almost any centering situation with CSS, from dead centering a div to vertically centering a line of text within its container and beyond. </p>
<p>Reach out to us on <a rel="nofollow" target="_blank" href="https://www.facebook.com/designshack">Facebook</a> or <a rel="nofollow" target="_blank" href="https://twitter.com/#!/designshack">Twitter</a> and let us know if you found this information to be helpful and if you have any questions. </p>]]></content:encoded>
      </item>
      <item>
         <title>Cycle Through Client Quotes With CSS Keyframes</title>
         <link>http://designshack.net/articles/css/cycle-through-client-quotes-with-css-keyframes/</link>
         <description>Client testimonials are a popular website feature. They bring credibility to a company and instill a sense of trust. If your other clients love you so much, I might too! As a fun experiment, today we&amp;#8217;re going to set out to build a cool little quote section that will rotate between multiple different quotes using [...]</description>
         <guid isPermaLink="false">http://designshack.net/?p=32835</guid>
         <pubDate>Thu, 17 May 2012 10:00:08 +0000</pubDate>
         <content:encoded><![CDATA[<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/quotebox-7.jpg" alt="screenshot" width="510"/></div>
<p>Client testimonials are a popular website feature. They bring credibility to a company and instill a sense of trust. If your other clients love you so much, I might too!</p>
<p>As a fun experiment, today we&#8217;re going to set out to build a cool little quote section that will rotate between multiple different quotes using only CSS. Along the way, we&#8217;ll learn all about how to plan and create multi-step keyframe sequences. Let&#8217;s get started.</p>
<p><span id="more-32835"></span><br />
<em>Like the article? Be sure to subscribe to our <a rel="nofollow">RSS feed</a> and follow us on <a rel="nofollow" target="_blank" href="http://twitter.com/designshack">Twitter</a> to stay up on recent content.</em></p>
<h2>The HTML</h2>
<p>To start this project, we need to decide on the structure of our quote. Typically, a client quote will have three pieces of text: the client&#8217;s name, where they&#8217;re from and what they said. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/quotebox-2.jpg" alt="screenshot" width="510"/></div>
<p>With this in mind, we can create a quote container that has three different pieces. The header will hold the client&#8217;s name, the small element will presumably hold the name of the company the client is from or some other related information, and the paragraph with hold the quote text.</p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">div</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;quote&quot;</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">h3</span>&gt;</span>John Smith<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">h3</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">small</span>&gt;</span>Design Shack<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">small</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">p</span>&gt;</span>&quot;This is the quote text.&quot;<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">p</span>&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">div</span>&gt;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<p>Because we used three different elements, we won&#8217;t need any additional hooks and should be able to easily target each piece of the quote in our CSS. As a side note, I arbitrarily chose an h3 here simply because h1 and h2 are typically used up for other purposes. Feel free to change this to whatever you like. </p>
<p>Now that we have our structure figured out, it&#8217;s time to expand it into three different quotes. To showcase the versatility of this project, I decided to fill my text with the last words of a few famous people. A little morbid, but as a placeholder it&#8217;ll do!</p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">div</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;container&quot;</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">div</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;quote&quot;</span>&gt;</span>
    <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">h3</span>&gt;</span>Emily Dickinson<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">h3</span>&gt;</span>
    <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">small</span>&gt;</span>1830-1886<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">small</span>&gt;</span>
    <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">p</span>&gt;</span>&quot;The fog is rising...&quot;<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">p</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">div</span>&gt;</span>
&nbsp;
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">div</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;quote&quot;</span>&gt;</span>
    <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">h3</span>&gt;</span>Oscar Wilde<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">h3</span>&gt;</span>
    <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">small</span>&gt;</span>1854-1900<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">small</span>&gt;</span>
    <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">p</span>&gt;</span>&quot;And now, I am dying beyond my means.&quot;<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">p</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">div</span>&gt;</span>
&nbsp;
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">div</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;quote&quot;</span>&gt;</span>
    <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">h3</span>&gt;</span>Thomas Edison<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">h3</span>&gt;</span>
    <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">small</span>&gt;</span>1847-1931<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">small</span>&gt;</span>
    <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">p</span>&gt;</span>&quot;It is very beautiful over there.&quot;<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">p</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">div</span>&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">div</span>&gt;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<h2>Starter CSS</h2>
<p>Once you have your HTML worked out, jump over to your CSS and enter something similar to the code below. Basically, I set an interesting background pattern and defined the container that will hold the quotes. </p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color:#00AA00;">*</span> <span style="color:#00AA00;">&#123;</span><span style="color:#000000;font-weight:bold;">margin</span><span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">0</span><span style="color:#00AA00;">;</span> <span style="color:#000000;font-weight:bold;">padding</span><span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">0</span><span style="color:#00AA00;">;</span><span style="color:#00AA00;">&#125;</span>
&nbsp;
body <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">background</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">url</span><span style="color:#00AA00;">&#40;</span><span style="color:#ff0000;">'dark_geometric.png'</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span> <span style="color:#808080;font-style:italic;">/*http://subtlepatterns.com/?p=1045*/</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#6666ff;">.container</span> <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">height</span><span style="color:#00AA00;">:</span> <span style="color:#933;">210px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">width</span><span style="color:#00AA00;">:</span> <span style="color:#933;">940px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">margin</span><span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">0</span> <span style="color:#993333;">auto</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">position</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">relative</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<h2>Quote Styles</h2>
<p>Next it&#8217;s time to style the quote divs. I used absolute positioning here so that all three quotes will occupy the same space. By default, they&#8217;ll create a vertical stack but we don&#8217;t want that at all. In our finished product, one quote will fade out, then another will fade in. Consequently, we&#8217;ll want them to be in the same spot. </p>
<p>I also set the opacity to zero so that all of the quotes will be hidden by default. Opacity is a quirky property that&#8217;s really a headache to work with. We&#8217;ll talk about this a little more later. The thing to note now is that, you won&#8217;t see anything with the opacity at zero so you&#8217;ll want to temporarily comment this part out while you style the quote section. </p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color:#6666ff;">.quote</span> <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">position</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">absolute</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">margin</span><span style="color:#00AA00;">:</span> <span style="color:#933;">70px</span> <span style="color:#933;">30px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">height</span><span style="color:#00AA00;">:</span> <span style="color:#933;">80px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">top</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0px</span><span style="color:#00AA00;">;</span>
&nbsp;
  opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">0</span><span style="color:#00AA00;">;</span>
  -moz-opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">0</span><span style="color:#00AA00;">;</span>
  filter<span style="color:#00AA00;">:</span>alpha<span style="color:#00AA00;">&#40;</span>opacity<span style="color:#00AA00;">=</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<h2>Quote Text Styles</h2>
<p>Now that we have the general quote container styled, it&#8217;s time to grab each piece of text and style it individually. For this demo, we&#8217;ll make the text nice and big so set the h3 to 55px and the small to 18px, then use Helvetica for the font-family. </p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color:#6666ff;">.quote</span> h3 <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">font</span><span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">300</span> <span style="color:#933;">55px</span>/<span style="color:#cc66cc;">1.2</span> <span style="color:#ff0000;">&quot;HelveticaNeue-Light&quot;</span><span style="color:#00AA00;">,</span> <span style="color:#ff0000;">&quot;Helvetica Neue Light&quot;</span><span style="color:#00AA00;">,</span> <span style="color:#ff0000;">&quot;Helvetica Neue&quot;</span><span style="color:#00AA00;">,</span> Helvetica<span style="color:#00AA00;">,</span> Arial<span style="color:#00AA00;">,</span> <span style="color:#993333;">sans-serif</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">color</span><span style="color:#00AA00;">:</span> <span style="color:#cc00cc;">#fff</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#6666ff;">.quote</span> small <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">font</span><span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">300</span> <span style="color:#933;">18px</span>/<span style="color:#cc66cc;">1.0</span> <span style="color:#ff0000;">&quot;HelveticaNeue-Light&quot;</span><span style="color:#00AA00;">,</span> <span style="color:#ff0000;">&quot;Helvetica Neue Light&quot;</span><span style="color:#00AA00;">,</span> <span style="color:#ff0000;">&quot;Helvetica Neue&quot;</span><span style="color:#00AA00;">,</span> Helvetica<span style="color:#00AA00;">,</span> Arial<span style="color:#00AA00;">,</span> <span style="color:#993333;">sans-serif</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">color</span><span style="color:#00AA00;">:</span> <span style="color:#cc00cc;">#fff</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<p>Our task with the paragraph is much more complex. Not only do we need to style it into a box, we need to remove it from the stack and stick it to the right of the other content. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/quotebox-1.jpg" alt="screenshot" width="510"/></div>
<p>To make this happen, we need to do a number of things so I&#8217;ve divided my styles for this into three different steps (shown below).</p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color:#6666ff;">.quote</span> p <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">background</span><span style="color:#00AA00;">:</span> <span style="color:#cc00cc;">#fff</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">font</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">italic</span> <span style="color:#933;">25px</span>/<span style="color:#cc66cc;">1.5</span> Helvetica<span style="color:#00AA00;">,</span> <span style="color:#993333;">sans-serif</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">text-align</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">center</span><span style="color:#00AA00;">;</span>
&nbsp;
  <span style="color:#000000;font-weight:bold;">position</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">absolute</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">left</span><span style="color:#00AA00;">:</span> <span style="color:#933;">450px</span><span style="color:#00AA00;">;</span> <span style="color:#000000;font-weight:bold;">top</span><span style="color:#00AA00;">:</span> <span style="color:#933;">-15px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">padding</span><span style="color:#00AA00;">:</span> <span style="color:#933;">30px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">width</span><span style="color:#00AA00;">:</span> <span style="color:#933;">400px</span><span style="color:#00AA00;">;</span>
&nbsp;
  -webkit-border-radius<span style="color:#00AA00;">:</span> <span style="color:#933;">5px</span><span style="color:#00AA00;">;</span>
  -moz-border-radius<span style="color:#00AA00;">:</span> <span style="color:#933;">5px</span><span style="color:#00AA00;">;</span>
  border-radius<span style="color:#00AA00;">:</span> <span style="color:#933;">5px</span><span style="color:#00AA00;">;</span>
&nbsp;
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<p>For the first step, I handled the &#8220;icing&#8221; or standard visual stuff. I made the background white, set the font and aligned the text to the center. Next I handled the positioning and size of the actual box through the use of some padding and absolute positioning. I finished this all off with an optional border-radius, which rounds our corners off nicely. </p>
<h3>Progress Check</h3>
<p>If we check on our progress by making sure one quote is visible, we&#8217;re looking pretty good! However, our quote is sitting in a plain old box. We&#8217;re missing the little triangle that makes it look like a speech bubble. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/quotebox-3.jpg" alt="screenshot" width="510"/></div>
<h2>Adding the Triangle</h2>
<p>To add in that little triangle, we have to turn to the :after pseudo element. Basically, we create an empty element, position it to the left side, and apply some tricky border voodoo. </p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color:#6666ff;">.quote</span> p<span style="color:#3333ff;">:after </span><span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">content</span><span style="color:#00AA00;">:</span> <span style="color:#ff0000;">&quot;&quot;</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">height</span><span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">0</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">width</span><span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">0</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">position</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">absolute</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">right</span><span style="color:#00AA00;">:</span> <span style="color:#933;">100%</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">top</span><span style="color:#00AA00;">:</span> <span style="color:#933;">50%</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">margin-top</span><span style="color:#00AA00;">:</span> <span style="color:#933;">-10px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">border</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">solid</span> <span style="color:#993333;">transparent</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">border-right-color</span><span style="color:#00AA00;">:</span> <span style="color:#cc00cc;">#fff</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">border-width</span><span style="color:#00AA00;">:</span> <span style="color:#933;">10px</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<p>As you can see, that gives us the effect that we&#8217;re going for, pretty neat eh?</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/quotebox-4.jpg" alt="screenshot" width="510"/></div>
<h2>Animate That Sucka</h2>
<p>Now that we&#8217;ve got our visual styling and positioning figured out, it&#8217;s time to come up with a way to fade out one quote and pop in another and repeat this process on an infinite loop. We could and should use jQuery, but today we&#8217;re trying to figure it out with pure CSS so we&#8217;ll turn to keyframe animations.</p>
<p>I&#8217;m going to be brutally honest here, I do this type of stuff almost every day and it still took me forever to figure out the proper sequence to use to make the keyframes fade in and out at the right time. I fiddled and fiddled and kept having awkward overlaps and results that weren&#8217;t at all what I wanted.</p>
<p>I tell you this so you know that you&#8217;re not alone if you still find yourself hitting walls that are difficult to overcome. Eventually, I did get my slow brain to wrap around the concept though. </p>
<p>I&#8217;m a visual thinker so I made a crude chart to see how it all works. Basically we want to stack these animations so that only one quote is visible at any given time. To pull this off, we&#8217;ll put create a thirty second animation and split it into three parts. The first and last parts will have an opacity of zero and the second part will have an opacity of one.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/quotebox-65.jpg" alt="screenshot" width="510"/></div>
<p>As you can see, we&#8217;ll need to delay the second animation&#8217;s start time by ten seconds and the third animation&#8217;s start time by twenty seconds. This way, if you draw a vertical line at any point of the chart, no more than one quote is showing at the same time. </p>
<p>Now, when I implemented this, I didn&#8217;t like how long it took the quotes to fade in and out. I want a quick fade in, a long period of visibility and a quick fade out. To do this we simply need to add a couple of more keyframes. Here&#8217;s the sequence I came up with:</p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color:#a1a100;">@-webkit-keyframes &quot;quoteshift&quot; {</span>
 <span style="color:#933;">0%</span> <span style="color:#00AA00;">&#123;</span>
   opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">0</span><span style="color:#00AA00;">;</span>
 <span style="color:#00AA00;">&#125;</span>
 <span style="color:#933;">2%</span> <span style="color:#00AA00;">&#123;</span>
   opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">1</span><span style="color:#00AA00;">;</span>
 <span style="color:#00AA00;">&#125;</span>
 <span style="color:#933;">31%</span> <span style="color:#00AA00;">&#123;</span>
   opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">1</span><span style="color:#00AA00;">;</span>
 <span style="color:#00AA00;">&#125;</span>
 <span style="color:#933;">33%</span> <span style="color:#00AA00;">&#123;</span>
   opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">0</span><span style="color:#00AA00;">;</span>
 <span style="color:#00AA00;">&#125;</span>
 <span style="color:#933;">100%</span> <span style="color:#00AA00;">&#123;</span>
   opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">0</span><span style="color:#00AA00;">;</span>
 <span style="color:#00AA00;">&#125;</span>
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<p>We only need to set up the one sequence, but we apply it to the three separate quotes in three different ways. Basically, the only difference is the delay value, which makes the animation wait a few seconds before beginning. </p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color:#6666ff;">.quote</span><span style="color:#3333ff;">:nth-</span>child<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">1</span><span style="color:#00AA00;">&#41;</span> <span style="color:#00AA00;">&#123;</span>
  -webkit-animation<span style="color:#00AA00;">:</span> quoteshift 30s 0s infinite linear<span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#6666ff;">.quote</span><span style="color:#3333ff;">:nth-</span>child<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">2</span><span style="color:#00AA00;">&#41;</span> <span style="color:#00AA00;">&#123;</span>
  -webkit-animation<span style="color:#00AA00;">:</span> quoteshift 30s 10s infinite linear<span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#6666ff;">.quote</span><span style="color:#3333ff;">:nth-</span>child<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">3</span><span style="color:#00AA00;">&#41;</span> <span style="color:#00AA00;">&#123;</span>
  -webkit-animation<span style="color:#00AA00;">:</span> quoteshift 30s 20s infinite linear<span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<p>That&#8217;s all there is to it! When the page loads, the first quote will fade in, then fade out as the second quote comes in (and so on). </p>
<h2>Browser Compatibility</h2>
<p>At this point you&#8217;re probably screaming at your computer screen that I&#8217;m an idiot who only uses Webkit prefixes. In truth, I only did this to keep things understandable. Now that we&#8217;ve got it all figured out, we can use our good old friend <a rel="nofollow" target="_blank" href="http://prefixr.com/index.php">Prefixr</a> to expand it out. When we do this, here&#8217;s the giant chunk of code that gets spit out:</p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color:#808080;font-style:italic;">/*QUOTE ANIMATION*/</span>
<span style="color:#6666ff;">.quote</span><span style="color:#3333ff;">:nth-</span>child<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">1</span><span style="color:#00AA00;">&#41;</span> <span style="color:#00AA00;">&#123;</span>
  -webkit-animation<span style="color:#00AA00;">:</span> quoteshift 30s 0s infinite linear<span style="color:#00AA00;">;</span>
  -moz-animation<span style="color:#00AA00;">:</span> quoteshift 30s 0s infinite linear<span style="color:#00AA00;">;</span>
  -ms-animation<span style="color:#00AA00;">:</span> quoteshift 30s 0s infinite linear<span style="color:#00AA00;">;</span>
  -o-animation<span style="color:#00AA00;">:</span> quoteshift 30s 0s infinite linear<span style="color:#00AA00;">;</span>
  animation<span style="color:#00AA00;">:</span> quoteshift 30s 0s infinite linear<span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#6666ff;">.quote</span><span style="color:#3333ff;">:nth-</span>child<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">2</span><span style="color:#00AA00;">&#41;</span> <span style="color:#00AA00;">&#123;</span>
  -webkit-animation<span style="color:#00AA00;">:</span> quoteshift 30s 10s infinite linear<span style="color:#00AA00;">;</span>
  -moz-animation<span style="color:#00AA00;">:</span> quoteshift 30s 10s infinite linear<span style="color:#00AA00;">;</span>
  -ms-animation<span style="color:#00AA00;">:</span> quoteshift 30s 10s infinite linear<span style="color:#00AA00;">;</span>
  -o-animation<span style="color:#00AA00;">:</span> quoteshift 30s 10s infinite linear<span style="color:#00AA00;">;</span>
  animation<span style="color:#00AA00;">:</span> quoteshift 30s 10s infinite linear<span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#6666ff;">.quote</span><span style="color:#3333ff;">:nth-</span>child<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">3</span><span style="color:#00AA00;">&#41;</span> <span style="color:#00AA00;">&#123;</span>
  -webkit-animation<span style="color:#00AA00;">:</span> quoteshift 30s 20s infinite linear<span style="color:#00AA00;">;</span>
  -moz-animation<span style="color:#00AA00;">:</span> quoteshift 30s 20s infinite linear<span style="color:#00AA00;">;</span>
  -ms-animation<span style="color:#00AA00;">:</span> quoteshift 30s 20s infinite linear<span style="color:#00AA00;">;</span>
  -o-animation<span style="color:#00AA00;">:</span> quoteshift 30s 20s infinite linear<span style="color:#00AA00;">;</span>
  animation<span style="color:#00AA00;">:</span> quoteshift 30s 20s infinite linear<span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#808080;font-style:italic;">/*KEYFRAMES*/</span>
<span style="color:#a1a100;">@keyframes &quot;quoteshift&quot; {</span>
 <span style="color:#933;">0%</span> <span style="color:#00AA00;">&#123;</span>
    -ms-filter<span style="color:#00AA00;">:</span> <span style="color:#ff0000;">&quot;progid:DXImageTransform.Microsoft.Alpha(Opacity=0)&quot;</span><span style="color:#00AA00;">;</span>
    filter<span style="color:#00AA00;">:</span> alpha<span style="color:#00AA00;">&#40;</span>opacity<span style="color:#00AA00;">=</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
    opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">0</span><span style="color:#00AA00;">;</span>
 <span style="color:#00AA00;">&#125;</span>
 <span style="color:#933;">2%</span> <span style="color:#00AA00;">&#123;</span>
    -ms-filter<span style="color:#00AA00;">:</span> <span style="color:#ff0000;">&quot;progid:DXImageTransform.Microsoft.Alpha(Opacity=100)&quot;</span><span style="color:#00AA00;">;</span>
    filter<span style="color:#00AA00;">:</span> alpha<span style="color:#00AA00;">&#40;</span>opacity<span style="color:#00AA00;">=</span><span style="color:#cc66cc;">100</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
    opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">1</span><span style="color:#00AA00;">;</span>
 <span style="color:#00AA00;">&#125;</span>
 <span style="color:#933;">31%</span> <span style="color:#00AA00;">&#123;</span>
    -ms-filter<span style="color:#00AA00;">:</span> <span style="color:#ff0000;">&quot;progid:DXImageTransform.Microsoft.Alpha(Opacity=100)&quot;</span><span style="color:#00AA00;">;</span>
    filter<span style="color:#00AA00;">:</span> alpha<span style="color:#00AA00;">&#40;</span>opacity<span style="color:#00AA00;">=</span><span style="color:#cc66cc;">100</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
    opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">1</span><span style="color:#00AA00;">;</span>
 <span style="color:#00AA00;">&#125;</span>
 <span style="color:#933;">33%</span> <span style="color:#00AA00;">&#123;</span>
    -ms-filter<span style="color:#00AA00;">:</span> <span style="color:#ff0000;">&quot;progid:DXImageTransform.Microsoft.Alpha(Opacity=0)&quot;</span><span style="color:#00AA00;">;</span>
    filter<span style="color:#00AA00;">:</span> alpha<span style="color:#00AA00;">&#40;</span>opacity<span style="color:#00AA00;">=</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
    opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">0</span><span style="color:#00AA00;">;</span>
 <span style="color:#00AA00;">&#125;</span>
 <span style="color:#933;">100%</span> <span style="color:#00AA00;">&#123;</span>
    -ms-filter<span style="color:#00AA00;">:</span> <span style="color:#ff0000;">&quot;progid:DXImageTransform.Microsoft.Alpha(Opacity=0)&quot;</span><span style="color:#00AA00;">;</span>
    filter<span style="color:#00AA00;">:</span> alpha<span style="color:#00AA00;">&#40;</span>opacity<span style="color:#00AA00;">=</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
    opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">0</span><span style="color:#00AA00;">;</span>
 <span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#a1a100;">@-moz-keyframes quoteshift {</span>
 <span style="color:#933;">0%</span> <span style="color:#00AA00;">&#123;</span>
   filter<span style="color:#00AA00;">:</span> alpha<span style="color:#00AA00;">&#40;</span>opacity<span style="color:#00AA00;">=</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
   opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">0</span><span style="color:#00AA00;">;</span>
 <span style="color:#00AA00;">&#125;</span>
 <span style="color:#933;">2%</span> <span style="color:#00AA00;">&#123;</span>
   filter<span style="color:#00AA00;">:</span> alpha<span style="color:#00AA00;">&#40;</span>opacity<span style="color:#00AA00;">=</span><span style="color:#cc66cc;">100</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
   opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">1</span><span style="color:#00AA00;">;</span>
 <span style="color:#00AA00;">&#125;</span>
 <span style="color:#933;">31%</span> <span style="color:#00AA00;">&#123;</span>
   filter<span style="color:#00AA00;">:</span> alpha<span style="color:#00AA00;">&#40;</span>opacity<span style="color:#00AA00;">=</span><span style="color:#cc66cc;">100</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
   opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">1</span><span style="color:#00AA00;">;</span>
 <span style="color:#00AA00;">&#125;</span>
 <span style="color:#933;">33%</span> <span style="color:#00AA00;">&#123;</span>
   filter<span style="color:#00AA00;">:</span> alpha<span style="color:#00AA00;">&#40;</span>opacity<span style="color:#00AA00;">=</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
   opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">0</span><span style="color:#00AA00;">;</span>
 <span style="color:#00AA00;">&#125;</span>
 <span style="color:#933;">100%</span> <span style="color:#00AA00;">&#123;</span>
   filter<span style="color:#00AA00;">:</span> alpha<span style="color:#00AA00;">&#40;</span>opacity<span style="color:#00AA00;">=</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
   opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">0</span><span style="color:#00AA00;">;</span>
 <span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#a1a100;">@-webkit-keyframes &quot;quoteshift&quot; {</span>
 <span style="color:#933;">0%</span> <span style="color:#00AA00;">&#123;</span>
   filter<span style="color:#00AA00;">:</span> alpha<span style="color:#00AA00;">&#40;</span>opacity<span style="color:#00AA00;">=</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
   opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">0</span><span style="color:#00AA00;">;</span>
 <span style="color:#00AA00;">&#125;</span>
 <span style="color:#933;">2%</span> <span style="color:#00AA00;">&#123;</span>
   filter<span style="color:#00AA00;">:</span> alpha<span style="color:#00AA00;">&#40;</span>opacity<span style="color:#00AA00;">=</span><span style="color:#cc66cc;">100</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
   opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">1</span><span style="color:#00AA00;">;</span>
 <span style="color:#00AA00;">&#125;</span>
 <span style="color:#933;">31%</span> <span style="color:#00AA00;">&#123;</span>
   filter<span style="color:#00AA00;">:</span> alpha<span style="color:#00AA00;">&#40;</span>opacity<span style="color:#00AA00;">=</span><span style="color:#cc66cc;">100</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
   opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">1</span><span style="color:#00AA00;">;</span>
 <span style="color:#00AA00;">&#125;</span>
 <span style="color:#933;">33%</span> <span style="color:#00AA00;">&#123;</span>
   filter<span style="color:#00AA00;">:</span> alpha<span style="color:#00AA00;">&#40;</span>opacity<span style="color:#00AA00;">=</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
   opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">0</span><span style="color:#00AA00;">;</span>
 <span style="color:#00AA00;">&#125;</span>
 <span style="color:#933;">100%</span> <span style="color:#00AA00;">&#123;</span>
   filter<span style="color:#00AA00;">:</span> alpha<span style="color:#00AA00;">&#40;</span>opacity<span style="color:#00AA00;">=</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
   opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">0</span><span style="color:#00AA00;">;</span>
 <span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#a1a100;">@-ms-keyframes &quot;quoteshift&quot; {</span>
 <span style="color:#933;">0%</span> <span style="color:#00AA00;">&#123;</span>
   -ms-filter<span style="color:#00AA00;">:</span> <span style="color:#ff0000;">&quot;progid:DXImageTransform.Microsoft.Alpha(Opacity=0)&quot;</span><span style="color:#00AA00;">;</span>
   filter<span style="color:#00AA00;">:</span> alpha<span style="color:#00AA00;">&#40;</span>opacity<span style="color:#00AA00;">=</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
   opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">0</span><span style="color:#00AA00;">;</span>
 <span style="color:#00AA00;">&#125;</span>
 <span style="color:#933;">2%</span> <span style="color:#00AA00;">&#123;</span>
   -ms-filter<span style="color:#00AA00;">:</span> <span style="color:#ff0000;">&quot;progid:DXImageTransform.Microsoft.Alpha(Opacity=100)&quot;</span><span style="color:#00AA00;">;</span>
   filter<span style="color:#00AA00;">:</span> alpha<span style="color:#00AA00;">&#40;</span>opacity<span style="color:#00AA00;">=</span><span style="color:#cc66cc;">100</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
   opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">1</span><span style="color:#00AA00;">;</span>
 <span style="color:#00AA00;">&#125;</span>
 <span style="color:#933;">31%</span> <span style="color:#00AA00;">&#123;</span>
   -ms-filter<span style="color:#00AA00;">:</span> <span style="color:#ff0000;">&quot;progid:DXImageTransform.Microsoft.Alpha(Opacity=100)&quot;</span><span style="color:#00AA00;">;</span>
   filter<span style="color:#00AA00;">:</span> alpha<span style="color:#00AA00;">&#40;</span>opacity<span style="color:#00AA00;">=</span><span style="color:#cc66cc;">100</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
   opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">1</span><span style="color:#00AA00;">;</span>
 <span style="color:#00AA00;">&#125;</span>
 <span style="color:#933;">33%</span> <span style="color:#00AA00;">&#123;</span>
   -ms-filter<span style="color:#00AA00;">:</span> <span style="color:#ff0000;">&quot;progid:DXImageTransform.Microsoft.Alpha(Opacity=0)&quot;</span><span style="color:#00AA00;">;</span>
   filter<span style="color:#00AA00;">:</span> alpha<span style="color:#00AA00;">&#40;</span>opacity<span style="color:#00AA00;">=</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
   opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">0</span><span style="color:#00AA00;">;</span>
 <span style="color:#00AA00;">&#125;</span>
 <span style="color:#933;">100%</span> <span style="color:#00AA00;">&#123;</span>
   -ms-filter<span style="color:#00AA00;">:</span> <span style="color:#ff0000;">&quot;progid:DXImageTransform.Microsoft.Alpha(Opacity=0)&quot;</span><span style="color:#00AA00;">;</span>
   filter<span style="color:#00AA00;">:</span> alpha<span style="color:#00AA00;">&#40;</span>opacity<span style="color:#00AA00;">=</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
   opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">0</span><span style="color:#00AA00;">;</span>
 <span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#a1a100;">@-o-keyframes &quot;quoteshift&quot; {</span>
 <span style="color:#933;">0%</span> <span style="color:#00AA00;">&#123;</span>
   filter<span style="color:#00AA00;">:</span> alpha<span style="color:#00AA00;">&#40;</span>opacity<span style="color:#00AA00;">=</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
   opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">0</span><span style="color:#00AA00;">;</span>
 <span style="color:#00AA00;">&#125;</span>
 <span style="color:#933;">2%</span> <span style="color:#00AA00;">&#123;</span>
   filter<span style="color:#00AA00;">:</span> alpha<span style="color:#00AA00;">&#40;</span>opacity<span style="color:#00AA00;">=</span><span style="color:#cc66cc;">100</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
   opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">1</span><span style="color:#00AA00;">;</span>
 <span style="color:#00AA00;">&#125;</span>
 <span style="color:#933;">31%</span> <span style="color:#00AA00;">&#123;</span>
   filter<span style="color:#00AA00;">:</span> alpha<span style="color:#00AA00;">&#40;</span>opacity<span style="color:#00AA00;">=</span><span style="color:#cc66cc;">100</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
   opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">1</span><span style="color:#00AA00;">;</span>
 <span style="color:#00AA00;">&#125;</span>
 <span style="color:#933;">33%</span> <span style="color:#00AA00;">&#123;</span>
   filter<span style="color:#00AA00;">:</span> alpha<span style="color:#00AA00;">&#40;</span>opacity<span style="color:#00AA00;">=</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
   opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">0</span><span style="color:#00AA00;">;</span>
 <span style="color:#00AA00;">&#125;</span>
 <span style="color:#933;">100%</span> <span style="color:#00AA00;">&#123;</span>
   filter<span style="color:#00AA00;">:</span> alpha<span style="color:#00AA00;">&#40;</span>opacity<span style="color:#00AA00;">=</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
   opacity<span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">0</span><span style="color:#00AA00;">;</span>
 <span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<p>As I mentioned before, our use of the opacity property is a little suspect because <a rel="nofollow" target="_blank" href="http://css-tricks.com/css-transparency-settings-for-all-broswers/">opacity support is a mess</a>. Fortunately, Prefixr takes the lead on this and tries to ensure that our code is primed to work on as many browsers as possible. Unfortunately, it does go a little overboard by inserting all of those filter properties where they aren&#8217;t necessarily needed, so some clean up might be a good idea.</p>
<h3>Selectivizr</h3>
<p>We used some advanced selectors in the tutorial, so while we&#8217;re on the topic of browser support, I should point out that you&#8217;ll need to add <a rel="nofollow" target="_blank" href="https://github.com/keithclark/selectivizr">Selectivizr</a> and jQuery to your project to make sure older browser understand these. </p>
<h3>Keyframe Support</h3>
<p>Here&#8217;s the kicker, we&#8217;ve gone through all of this to make sure that we&#8217;ve maxed out our browser support on selectors and opacity, but in the end IE is still going to refuse to play along because there&#8217;s no keyframe support until IE 10. </p>
<p>Obviously, JavaScript is going to be the answer here if you&#8217;re going to use this in the real world. You can either do the whole thing in JS or simply use it as a backup for browsers that don&#8217;t support keyframes. </p>
<h2>Demo</h2>
<p>Here&#8217;s the live demo. Be sure to wait a while when you launch it, remember that the entire animation takes thirty seconds!</p>
<p><strong>Demo:</strong> <a rel="nofollow" target="_blank" href="http://designshack.net/tutorialexamples/testimonial/index.html">Click here to launch</a></p>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://designshack.net/tutorialexamples/testimonial/index.html"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/quotebox-7.jpg" alt="screenshot" width="510"/></a></div>
<h2>Conclusion</h2>
<p>Keyframes have come a long way since the days when they were only supported by Webkit browsers. However, keep in mind that because of our old friend IE, they&#8217;re still more in the realm of &#8220;fun to play with&#8221; than something you should bank on for important projects.</p>
<p>Leave a comment below and let us know if you enjoyed this tutorial and how you would improve it!</p>]]></content:encoded>
         <category>CSS</category>
      </item>
      <item>
         <title>10 Tips for Awesome Tumblr Theme Design</title>
         <link>http://designshack.net/articles/inspiration/10-tips-for-awesome-tumblr-theme-design/</link>
         <description>Here at Design Shack, WordPress is our bread and butter, but in the world of blogging platforms, we have lots of love for Tumblr as well. It&amp;#8217;s simple, gorgeous, and simply enjoyable to use. Today we&amp;#8217;re going to take a look at what makes a great Tumblr theme. With over 1,300 options in the Tumblr [...]</description>
         <guid isPermaLink="false">http://designshack.net/?p=32773</guid>
         <pubDate>Wed, 16 May 2012 13:00:30 +0000</pubDate>
         <content:encoded><![CDATA[<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/tumblrtips-0.jpg" alt="screenshot" width="510"/></div>
<p>Here at Design Shack, WordPress is our bread and butter, but in the world of blogging platforms, we have lots of love for Tumblr as well. It&#8217;s simple, gorgeous, and simply enjoyable to use.</p>
<p>Today we&#8217;re going to take a look at what makes a great Tumblr theme. With over 1,300 options in the Tumblr theme garden, it can be difficult to stand out. Why do some themes catch so much attention while others are ignored? Good design holds the answer.</p>
<p><span id="more-32773"></span><br />
<em>Like the article? Be sure to subscribe to our <a rel="nofollow">RSS feed</a> and follow us on <a rel="nofollow" target="_blank" href="http://twitter.com/designshack">Twitter</a> to stay up on recent content.</em></p>
<h2>#1 Type Is Everything</h2>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://safe.tumblr.com/theme/preview/11655"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/tumblrtips-1.jpg" alt="screenshot" width="510"/></a></div>
<p>If you want to create a popular theme, or even just an impressive theme for your own personal use, don&#8217;t let the type be an afterthought. With Tumblr themes, type is a huge part of the overall visual aesthetic. It defines the personality of the page and grabs the attention of very specific types of browsers.</p>
<p>As an example, consider how the headline in the theme shown above differs from that shown below. You have sleek and understated compared to bold and intense. Even if all other design features were constant, the type alone would drastically set these themes apart.</p>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://safe.tumblr.com/theme/preview/5932"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/tumblrtips-3.jpg" alt="screenshot" width="510"/></a></div>
<p>One excellent way to boost the appeal of your theme through type is to integrate various font services. For instance, the <a rel="nofollow" target="_blank" href="http://www.tumblr.com/theme/34020">Candor theme</a> shown below features Typekit and Google Web font integration. This gives users the ability to customize the type far beyond what would typically be available in a blog environment. </p>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://www.tumblr.com/theme/34020"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/tumblrtips-2.jpg" alt="screenshot" width="510"/></a></div>
<h2>#2 Challenge the Status Quo</h2>
<p>As a designer, it&#8217;s extremely important to keep your audience in mind and throughout this post I&#8217;ll continually discuss some of the quirks and intricacies of the unique user base that Tumblr enjoys.</p>
<p>One thing that draws people to Tumblr is that it&#8217;s a place where you can easily find something that&#8217;s very different than the traditional blog model. The popularity of themes like <a rel="nofollow" target="_blank" href="http://www.tumblr.com/theme/9517">Organ</a> shown below proves that this is the case.</p>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://safe.tumblr.com/theme/preview/9517#"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/tumblrtips-4.jpg" alt="screenshot" width="510"/></a></div>
<p>This theme is completely out of realm of what you would expect in a blog page. There are plenty of others that follow this path as well. The theme below for instance, shows one post at a time and requires users to use their arrow keys to navigate.</p>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://safe.tumblr.com/theme/preview/34490#/234"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/tumblrtips-5.jpg" alt="screenshot" width="510"/></a></div>
<p>The unique ideas go on and on. The theme below takes all of the posts and sticks them into a messy stack of Polaroids, which arrange into a neat grid when you hover over them.</p>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://safe.tumblr.com/theme/preview/31615"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/tumblrtips-6.jpg" alt="screenshot" width="510"/></a></div>
<p>The obvious implication here is that if you want to design a popular Tumblr theme, one great way to go about it is to create something unlike anything else that&#8217;s out there. These users really appreciate creativity and will  download your theme like crazy if that&#8217;s what you&#8217;re offering.</p>
<h2>#3 Customization Options Rock</h2>
<p>Take a look at these three Tumblr theme previews and see if you notice a trend:</p>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://www.tumblr.com/theme/34654"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/tumblrtips-7.jpg" alt="screenshot" width="510"/></a></div>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://www.tumblr.com/theme/34602"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/tumblrtips-8.jpg" alt="screenshot" width="510"/></a></div>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://www.tumblr.com/theme/34753"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/tumblrtips-9.jpg" alt="screenshot" width="510"/></a></div>
<p>As I&#8217;m sure you saw, the customization options are a big deal. They&#8217;re touted above all else and the designers call out to you with impressive numbers: 60+ ways to customize, 80+ options, etc.</p>
<p>Once again, we see that the Tumblr user base is an expressive bunch. Not only do they want you to give them a great looking theme, they want to be able to make it their own. Earlier we saw an example of some built-in font customization options. Start here and then go much further. Provide color options, work in a personalized header or sidebar with information about the author, let the user rearrange the columns; the possibilities are endless. </p>
<p>As you customize, just remember that the theme should also be great with no effort. Make sure the personalization options are there for those who are interested, but don&#8217;t get in the way of those who aren&#8217;t.</p>
<h2>#4 Go Responsive</h2>
<p>To be honest, I didn&#8217;t expect the Tumblr theme market to be so current with modern web design practices. In my search I came across a number of responsive themes like the one shown below. </p>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://originwest.stylehatch.co/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/tumblrtips-10.jpg" alt="screenshot" width="510"/></a></div>
<p>The fact that responsive Tumblr themes exist and are gaining in popularity shows that the Tumblr user base is either decently educated in web design or are at the very least, interested in making their blog as cross-platform as possible. </p>
<p>Your typical blog owners will probably visit their own page on their tablets, smartphones, laptops and desktops and they&#8217;ll definitely go for themes that look great on all of these devices. Responsive design is everywhere and a time is already approaching when it will become more of an expectation than a bonus feature. Are you ready for that day?</p>
<h2>#5 Pay Attention To Trends</h2>
<p>As we&#8217;ve already shown, Tumblr users seem pretty well aware of recent design trends. You can use this to your advantage to create themes that will be instantly popular. As an example, consider the popularity of Pinterest and how it has led to the wildfire like spread of <a rel="nofollow" target="_blank" href="http://designshack.net/articles/css/masonry/">masonry style layouts</a>. Tumblr theme designers didn&#8217;t take long to jump on board this train and start dishing out themes that utilize a layout and aesthetic that appeals to Pinterest lovers.</p>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://www.tumblr.com/theme/34525"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/tumblrtips-11.jpg" alt="screenshot" width="510"/></a></div>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://www.tumblr.com/theme/34508"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/tumblrtips-12.jpg" alt="screenshot" width="510"/></a></div>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://www.tumblr.com/theme/33969"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/tumblrtips-13.jpg" alt="screenshot" width="510"/></a></div>
<p>If you&#8217;re looking to create a popular theme, look around the web and find some practices that are becoming very popular but haven&#8217;t necessarily caught on in the Tumblr market yet. What will the next layout fad be?</p>
<h2>#6 Make a Beautiful Background</h2>
<p>Minimal, white background themes flood the Tumblr theme market, many of which are super popular. It&#8217;s becomingly increasingly difficult to stand out in that niche though as all of the options start to look the same after a while.</p>
<p>One solution that proves extremely successful for some designers is to run to the opposite end of the spectrum and invest a lot of time into building a stunning background for their theme. </p>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://safe.tumblr.com/theme/preview/34375"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/tumblrtips-14.jpg" alt="screenshot" width="510"/></a></div>
<p>Tumblr themes tend to utilize a ton of whitespace so the background graphic can be a very important place to showcase creativity and a unique aesthetic. </p>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://safe.tumblr.com/theme/preview/34085"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/tumblrtips-15.jpg" alt="screenshot" width="510"/></a></div>
<p>Bottom line: don&#8217;t underestimate the power of a good background in earning you downloads. Even if you don&#8217;t have a graphic that can stretch all throughout a page, you can pour you effort into a header graphic with similar results.</p>
<h2>#7 Come Up With a Visual Theme</h2>
<p>One tactic that seems to work pretty well is to decide on a metaphor or theme for the template that you&#8217;re building (here &#8220;theme&#8221; refers to a specific aesthetic such as &#8220;desert&#8221; or &#8220;fantasy&#8221;). This is a great way to get your mind &#8220;into the zone&#8221; from a creative point of view and leads to some interesting results that users love. </p>
<p>For inspiration, look over the &#8220;Space Traveler&#8221; theme below. This gorgeous piece of design uses planetary orbital charts and compass rose graphics to create a positively charming aesthetic.</p>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://space-traveler-theme.tumblr.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/tumblrtips-16.jpg" alt="screenshot" width="510"/></a></div>
<p>What visual idea can you run with that will make your theme both unique and enticing? Consider places that you&#8217;ve been, specific film or literature genres, foods; anything that you can turn into a specific look. </p>
<h2>#8 Choose a Target Audience</h2>
<p>No matter what you&#8217;re designing, it&#8217;s vitally important to keep your target audience in mind. This gets tricky when you&#8217;re designing general use templates though because your intended audience is pretty much anyone! Aside from the Tumblr user aspects that we&#8217;ve already been discussing, how can you further target your design to a specific set of users?</p>
<p>One of the best answers is simply to pick a group of people and intentionally target them. If I&#8217;m a photographer for instance, I might run a Google search for Tumblr themes for photographers. Now, tons of generic themes might work perfectly for what I need, but what I&#8217;ll find in my search is likely those themes that explicitly state that they&#8217;re for photographers, like the one below.</p>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://space-traveler-theme.tumblr.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/tumblrtips-17.jpg" alt="screenshot" width="510"/></a></div>
<p>Spend some time looking through Tumblr and finding a market that isn&#8217;t well represented, then build a theme for that group of people. Think about specific professions like realtors or app developers and ask yourself what types of features they would gravitate toward.  </p>
<h2>#9 Icons Icons Icons</h2>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://safe.tumblr.com/theme/preview/483"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/tumblrtips-19.jpg" alt="screenshot" width="510"/></a></div>
<p>Thus far we&#8217;ve talked about how both type and background graphics play a huge role in the personality of your theme, another area of the design that fits this description is icons. Tumblr uses icons to differentiate between post types, which has led to a lot of creativity in this area on the part of designers.</p>
<p>Icons can really help define the aesthetic that you&#8217;re going for and many designers use them generously throughout their designs, not simply in post type indicators. </p>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://the-new-yorker-theme.tumblr.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/tumblrtips-18.jpg" alt="screenshot" width="510"/></a></div>
<p>Whether you&#8217;re using a prebuilt icon library or crafting one yourself, remember that this is a key area where you can make your work stand out from the competition. Take the time to get it right and you&#8217;ll be glad you did. </p>
<h2>#10 The Download is in The Details</h2>
<p>As a Tumblr user myself, the themes that really impress me are those from designers that really gave a lot of attention to the finer points of the design. Subtle textures and patterns, shadows in all the right places, barely noticeable edge highlights, these little touches go a long way toward making your design seem professional and attractive. </p>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://safe.tumblr.com/theme/preview/33261"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/tumblrtips-20.jpg" alt="screenshot" width="510"/></a></div>
<p>No matter what aesthetic you&#8217;re going for, be it vintage, skeuomorphic, minimal or wacky, don&#8217;t rush through it just to have something to upload. Slow down and really polish off the minor details that you wouldn&#8217;t think anyone one notice. Trust me, they will.</p>
<h2>What Are Your Tumblr Design Tips?</h2>
<p>After reading through this article, you should have a lot of insight into what goes into the creation of a successful and attractive Tumblr theme. Following these ten tips will help you create your own themes that will race to the top of the download charts.</p>
<p>Now that you&#8217;ve read what I think, I want to hear your input. What attracts you to a Tumblr theme? Is it any of the things that I listed here or something else entirely. I want to know! </p>]]></content:encoded>
      </item>
      <item>
         <title>Adobe Muse Test Drive: Is It Worth $15 Per Month?</title>
         <link>http://designshack.net/articles/software/adobe-muse-test-drive-is-it-worth-15-per-month/</link>
         <description>Adobe has an interesting relationship with folks who design websites. Photoshop and Fireworks have you covered from a static image perspective, but tools to build live, functioning websites are another story completely. Flash is no longer the poster child of modern web technologies (quite the opposite), GoLive went the way of the dinosaurs and Dreamweaver, [...]</description>
         <guid isPermaLink="false">http://designshack.net/?p=32736</guid>
         <pubDate>Tue, 15 May 2012 08:00:02 +0000</pubDate>
         <content:encoded><![CDATA[<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/adobemuse-0.jpg" alt="screenshot" width="510"/></div>
<p>Adobe has an interesting relationship with folks who design websites. Photoshop and Fireworks have you covered from a static image perspective, but tools to build live, functioning websites are another story completely. Flash is no longer the poster child of modern web technologies (quite the opposite), GoLive went the way of the dinosaurs and Dreamweaver, though still widely used, is regarded by many to be a bloated mess.</p>
<p>One area that Adobe is intent on pursuing is web design for non-coders. They&#8217;ve made it their mission to bring the world of professional website creation to the huge market of designers who can&#8217;t write a lick of code. Thus far, they&#8217;ve largely fallen short of that goal (Project Rome anyone?). Their latest attempt, Adobe Muse, has finally exited beta and is available as a part of Adobe&#8217;s new Creative Cloud service ($50 per month) or as a stand alone product ($15 per month). Is Muse worth your time and money? Will it really allow you to create professional level websites without coding? Read on to find out.</p>
<p><span id="more-32736"></span><br />
<em>Like the article? Be sure to subscribe to our <a rel="nofollow">RSS feed</a> and follow us on <a rel="nofollow" target="_blank" href="http://twitter.com/designshack">Twitter</a> to stay up on recent content.</em></p>
<h2>A Long Time Coming</h2>
<p>I&#8217;ve written a lot about Adobe&#8217;s road to releasing Muse. In 2010, I discussed why <a rel="nofollow" target="_blank" href="http://designshack.net/articles/html/how-to-build-a-website-with-adobe-project-rome/">Project Rome</a> fell far short of anything usable for serious designers. Many of the ideas from that project made it into the Muse beta, which launched a rant from me all about <a rel="nofollow" target="_blank" href="http://designshack.net/articles/software/why-adobe-doesnt-understand-web-designers/">why adobe doesn&#8217;t understand web designers</a>. </p>
<p>Given my history on the subject, is this article even worth reading? Won&#8217;t I predictably just bash Adobe and Muse and tell you to use <a rel="nofollow" target="_blank" href="http://www.theescapers.com/flux/">Flux</a> or code by hand instead?</p>
<p>Yes and no. Do I think Adobe has found <em>the</em> solution the industry has been waiting for? Not remotely. However, Muse has a lot of merit. There&#8217;s plenty that I really like about it in addition to what I think could improve. I will say this: Adobe is closer than ever. To see why, read on.</p>
<h2>A Weak Start</h2>
<p>I downloaded my thirty day trial of Muse, launched it, chose to create a new site and found myself looking at this window. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/adobemuse-1.jpg" alt="screenshot" width="510"/></div>
<p>I was already disappointed. From step one Adobe is forcing me into a static width mindset. Print designers might find this familiar, but it blatantly disregards the current state of web design, which is rapidly traveling in the direction of fluid widths and media query driven breakpoints (responsive web design).</p>
<p>Here&#8217;s another problem that I had with this dialog: there are no units. The default page width that pops up is 960. 960 what? Pixels? Inches? Girth units? Seasoned web veterans will assume that this is a pixel based value, but this app isn&#8217;t built for seasoned web veterans, it&#8217;s built for newbies who need more information than what is offered here.</p>
<p>I was also confused about the margin and padding options presented to me. Was I setting global values for margins and padding? Why would I want to do that? When I code by hand I typically reset these values to zero, is that what I should do here? It turns out though that these values are for your main container. Again, a little more information would go a long way.</p>
<p>It&#8217;s not all bad though. I do really like that you can set up columns right off the bat. Really this just amounts to some guides being slapped on the page, but that&#8217;s a good thing. I like that setting up a grid doesn&#8217;t mean that I&#8217;m forced to stick to it in all circumstances. </p>
<h2>Meet Muse</h2>
<p>The Muse interface is just familiar enough that you&#8217;ll know how to get around if you use other Adobe products. There&#8217;s a positionable panel of tools on the right, a strip of buttons and options along the top and your main canvas in the center.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/adobemuse-2.jpg" alt="screenshot" width="510"/></div>
<p>The app was built in AIR, which annoys the crap out of me as a Mac user. The result is something that almost looks native but feels quite different than a dedicated Mac application. This leads to several frustrating quirks. For instance, the main panel looks a lot like something you&#8217;d see in Photoshop.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/adobemuse-3.jpg" alt="screenshot" width="510"/></div>
<p>Consequently, you expect it to work the same. Unfortunately, this panel can&#8217;t be anchored to the side of the screen like you&#8217;re used to, which means that it always feels in the way. You can reduce it to an icon strip, but it collapses to the left, so the default right side position becomes a poor spot.</p>
<p>No matter, you can simply move it to the right and keep it collapsed to save room. Like in Photoshop, clicking on a icon expands only that part of the panel, oh wait, no it doesn&#8217;t. Instead it expands the entire panel, which entirely defeats the purpose of the button strip.</p>
<p>Moving along, below you can see some of the options and buttons that reside along the top of the interface. There are three main view modes: plan shows you all pages in an outline, design is where you do your building and preview is where you see an in-app live web preview of your site (hit Command-Shift-E to preview in the browser).</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/adobemuse-4.jpg" alt="screenshot" width="510"/></div>
<p>Near the center of this topside panel is where you find what would normally be your floating toolbar containing the following: Selection Tool, Crop Tool, Text Tool, Zoom Tool, Hand Tool and Rectangle Tool. This is also where you apply various styles, add links, etc.  </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/adobemuse-5.jpg" alt="screenshot" width="510"/></div>
<h2>Building a Webpage</h2>
<p>From here, the workflow is fairly intuitive. If you want to place some text, you grab the text tool. If you want to draw a box, use the rectangle tool; it&#8217;s that easy. As a coder, it scares me that I can&#8217;t manually set the parameters for elements that I add, but I guess that keeps things simple. For instance, if I want to set a paragraph to 300px wide, I just have to eyeball it or use my grid. And forget the box model, you just shove things where you want them. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/adobemuse-6.jpg" alt="screenshot" width="510"/></div>
<p>One thing that Muse does pretty well is integrate with Photoshop and Fireworks. You can place a file from one of these apps, go back and make changes, and the edits will be updated automatically in Muse. </p>
<p>One of the things that I thought was a little clunky was working with the canvas. I couldn&#8217;t figure out how to simply select the background. It turns out just clicking on it does the trick, but there&#8217;s really no visual feedback to tell you that you&#8217;ve got it right. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/adobemuse-7.jpg" alt="screenshot" width="510"/></div>
<p>From here you can apply a background fill or image with all of the options that you&#8217;d expect. If you&#8217;re working with an object, you can apply gradients and shadows, define hover states, round the corners, add links to other pages, etc.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/adobemuse-8.jpg" alt="screenshot" width="510"/></div>
<h2>Muse&#8217;s Workflow: The Good And The Bad</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/adobemuse-9.jpg" alt="screenshot" width="510"/></div>
<p>There&#8217;s a lot about Muse that Adobe got right. It&#8217;s really easy to just pick up and run with. I figured out pretty much everything I needed to with no outside instruction whatsoever. I think non-coders will really appreciate it as something more powerful than the typical WYSIWYG without being as overwhelming as something like Dreamweaver.</p>
<p>At the very least, it&#8217;s a great way to mockup websites, and its price range puts it into an area that&#8217;s somewhat competitive with online wireframing services that offer a lot less.</p>
<p>Now, from a coder&#8217;s perspective, there&#8217;s a lot I would change. I know the app isn&#8217;t built for coders, and maybe it should stay that way, but that doesn&#8217;t mean it shouldn&#8217;t share the constructs used to build web pages. The metaphor here is broken. Adobe needs to stop building page layout apps with web functionality and instead build a visual front end to the coding process.</p>
<p>Working with objects should be much more closely related to working with CSS than it is here. I should be able to set my color with RGBa, define the margins and padding for a button, set a paragraph&#8217;s width to 30% of the browser window, and create a font-family, but I can&#8217;t do any of this. Adobe has chosen familiarity and pretense over web design constructs and I think they&#8217;re on the wrong side of that fence. </p>
<h2>The Code</h2>
<p>After getting to know the interface, I busted out a super simple page so that I could see what the process is like and, more importantly, take a look at the output. Here&#8217;s what I came up with (click the image to see the live demo):</p>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://designshack.net/tutorialexamples/AdobeMuse/index.html"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/adobemuse-10.jpg" alt="screenshot" width="510"/></a></div>
<p>When you check out the demo, be sure to hit View Source so you can take a look at the code that was generated. I kept the page design simple for a reason: so I could see if the resulting code was also simple. A page like this would use a minimal amount of handcoding and should be fairly easy to sort through whether you can write code or not.</p>
<p>The good news is that Muse exports HTML and CSS, so thankfully the Flash only idea died with Project Rome. Predictably, the resulting code is extremely div heavy. Using the default navigation menu, each link uses a list item and not one, but two divs. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/adobemuse-11.jpg" alt="screenshot" width="510"/></div>
<p>For the most part, the classes have straightforward names applied, but the ID names are useless and vague (example: &#8220;u154-4&#8243;). Overall though, it&#8217;s far from the worst WYSIWYG output I&#8217;ve seen. I can still easily read through it and see the structure. It&#8217;s certainly fluffed up, but only enough to make a coder roll his/her eyes instead of an abomination that will make him scold your very existence. </p>
<h2>So Is It Worth It?</h2>
<p>In the title of this article I promised to tell you whether or not Muse is worth the $15 per month. This question is difficult to answer simply because I question who the product is for. If you plan on building sites for a living, this isn&#8217;t the way to go. If you simply want to run your own little site, having a monthly fee simply to own the software isn&#8217;t exactly a thrilling prospect.</p>
<p>Bottom line: Muse is worth the money&#8230; in the short run. In the first few months, you&#8217;ll have a great piece of software with very little expense. However, using the subscription model, after two years, you&#8217;ll have paid around $360 for Muse. In my opinion, this pushes the upper limit of what the software is genuinely worth at this point. This may change as updates come, but if there&#8217;s no significant improvement, it simply doesn&#8217;t seem worth the expense in the long run when RapidWeaver is $80 and Flux is less than $150 (both Mac only options unfortunately).</p>
<h2>How Adobe Could Make It Better</h2>
<p>It&#8217;s interesting that I state that RapidWeaver might be a better way to go. With its rigid template-driven structure, RapidWeaver is far from anything that you would use to build a site from scratch. However, Rapidweaver has a rich <a rel="nofollow" target="_blank" href="http://www.realmacsoftware.com/addons/rapidweaver">third party plugin market</a> capable of pushing it to greatness far beyond the default rigidity. With <a rel="nofollow" target="_blank" href="http://yourhead.com/blocks/">Blocks</a> and <a rel="nofollow" target="_blank" href="http://yourhead.com/stacks/">Stacks</a>, Rapidweaver becomes an impressive freeform site builder. </p>
<p>This gives me an idea for how Muse could be made a lot better with very little effort. Adobe should take a page from the RapidWeaver book and open up a marketplace where users can provide plugins. This way users decide what&#8217;s missing and how it should be integrated. If I want to use Muse to build responsive web pages, I&#8217;d simply download a plugin that would add the missing functionality. Granted, I&#8217;d prefer for Adobe to just understand the web design industry and build a tool that fits the market better, but in lieu of this option I&#8217;d take a RapidWeaver-like plugin market.</p>
<h2>What Do You Think?</h2>
<p>Now that you&#8217;ve seen my take on Muse, I&#8217;d love to hear yours. Do you think Adobe has finally nailed the idea of codeless web design or are they still treading water, pushing out products that aren&#8217;t moving the industry forward?</p>
<p>More importantly, how can Adobe refocus their efforts and create a product that you&#8217;d gladly shell out $15 a month to use? </p>]]></content:encoded>
         <category>Software</category>
      </item>
      <item>
         <title>Build a Library of CSS Image Label Options</title>
         <link>http://designshack.net/articles/css/imagelabellibrary/</link>
         <description>Today I&amp;#8217;m working on another awesome free download for PixelsDaily. Here you&amp;#8217;ll be able to see my thought processes, goals and code, and later you&amp;#8217;ll be able to download the whole project to use in your own work. Basically, our goal here is to create a simple effect so that when the user hovers over [...]</description>
         <guid isPermaLink="false">http://designshack.net/?p=32653</guid>
         <pubDate>Mon, 14 May 2012 11:00:53 +0000</pubDate>
         <content:encoded><![CDATA[<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/imglabelibrary-0.jpg" alt="screenshot" width="510"/></div>
<p>Today I&#8217;m working on another awesome free download for <a rel="nofollow" target="_blank" href="http://pixelsdaily.com/">PixelsDaily</a>. Here you&#8217;ll be able to see my thought processes, goals and code, and later you&#8217;ll be able to download the whole project to use in your own work.</p>
<p>Basically, our goal here is to create a simple effect so that when the user hovers over an image, a hidden text label pops up into view. This is of course extremely easy to do so we&#8217;re going to go a step further by building a whole bunch of options for the developer to choose from. This will provide you with some good practice for how to create flexible effects that can be applied in different ways without too much code repetition.</p>
<p><span id="more-32653"></span><br />
<em>Like the article? Be sure to subscribe to our <a rel="nofollow">RSS feed</a> and follow us on <a rel="nofollow" target="_blank" href="http://twitter.com/designshack">Twitter</a> to stay up on recent content.</em></p>
<h2>Sneak Peek</h2>
<p>If you&#8217;re anxious to see the result before you go through the code, check out the demo below and hover over each image to see how it&#8217;s different. </p>
<p><strong>Demo:</strong> <a rel="nofollow" target="_blank" href="http://designshack.net/tutorialexamples/imagelabellibrary/index.html">Click Here</a> to launch.</p>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://designshack.net/tutorialexamples/imagelabellibrary/index.html"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/imglabelibrary-5.jpg" alt="screenshot" width="510"/></a></div>
<h2>The Plan</h2>
<p>Here&#8217;s what we want: a simple text label with a black background to appear over the image when the user hovers. Now, since it&#8217;s going to be animated into place, I came up with a total of ten different variations that equate to roughly the same element being used in different ways:</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/imglabelibrary-1.jpg" alt="screenshot" width="510"/></div>
<p>We have two main parameters to set here. The first is where the the label will come to rest (top, center or bottom) and the second is where it will come from (top, right, bottom, left). What we&#8217;ll want to do is provide a basic repeatable HTML structure for developers to use when adding an image, then give them some classes that can be applied to control everything about the label&#8217;s behavior. With this in mind, we can proceed to the first step.</p>
<h2>The HTML</h2>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">div</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;label top&quot;</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">p</span>&gt;</span>Persistence in Memory<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">p</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">img</span> <span style="color:#000066;">src</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;img1.jpg&quot;</span> <span style="color:#66cc66;">/</span>&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">div</span>&gt;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<p>For the HTML, we need a simple wrapper div that contains a paragraph and an image. The paragraph will serve as the hidden text label and the classes applied to the div will tell us two things: first, that we want to give this div the label treatment and second, which label treatment to give it.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/imglabelibrary-2.jpg" alt="screenshot" width="510"/></div>
<p>We could skip the generic label class, but that would mean that all of the styles associated with every label would have to be duplicated in each version of the label, which would make for a big fat mess of unnecessarily repetitious code. This way we can apply most of the styling to one single class and save the changing styles to our specific classes.</p>
<p>Now let&#8217;s expand this out so we can try the ten different effects that we&#8217;re aiming for in our final result. We&#8217;ll keep all the divs for this tutorial, but the classes should be flexible enough that you can use block level list items as well if you&#8217;re building a gallery. We really just want to make sure each image effect works in an individual setting.  </p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">div</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;label top&quot;</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">p</span>&gt;</span>Persistence in Memory<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">p</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">img</span> <span style="color:#000066;">src</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;img1.jpg&quot;</span> <span style="color:#66cc66;">/</span>&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">div</span>&gt;</span>
&nbsp;
<span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">div</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;label bottom&quot;</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">p</span>&gt;</span>The Scream<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">p</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">img</span> <span style="color:#000066;">src</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;img2.jpg&quot;</span> <span style="color:#66cc66;">/</span>&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">div</span>&gt;</span>
&nbsp;
<span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">div</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;label bottomright&quot;</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">p</span>&gt;</span>The Last Supper<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">p</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">img</span> <span style="color:#000066;">src</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;img3.jpg&quot;</span> <span style="color:#66cc66;">/</span>&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">div</span>&gt;</span>
&nbsp;
<span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">div</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;label bottomleft&quot;</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">p</span>&gt;</span>Mona Lisa<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">p</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">img</span> <span style="color:#000066;">src</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;img4.jpg&quot;</span> <span style="color:#66cc66;">/</span>&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">div</span>&gt;</span>
&nbsp;
<span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">div</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;label topleft&quot;</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">p</span>&gt;</span>Starry Night<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">p</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">img</span> <span style="color:#000066;">src</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;img5.jpg&quot;</span> <span style="color:#66cc66;">/</span>&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">div</span>&gt;</span>
&nbsp;
<span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">div</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;label topright&quot;</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">p</span>&gt;</span>Girl with a Pearl Earring<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">p</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">img</span> <span style="color:#000066;">src</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;img6.jpg&quot;</span> <span style="color:#66cc66;">/</span>&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">div</span>&gt;</span>
&nbsp;
<span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">div</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;label centertop&quot;</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">p</span>&gt;</span>Whistler's Mother<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">p</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">img</span> <span style="color:#000066;">src</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;img7.jpg&quot;</span> <span style="color:#66cc66;">/</span>&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">div</span>&gt;</span>
&nbsp;
<span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">div</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;label centerbottom&quot;</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">p</span>&gt;</span>The Kiss<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">p</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">img</span> <span style="color:#000066;">src</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;img8.jpg&quot;</span> <span style="color:#66cc66;">/</span>&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">div</span>&gt;</span>
&nbsp;
<span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">div</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;label centerleft&quot;</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">p</span>&gt;</span>American Gothic<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">p</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">img</span> <span style="color:#000066;">src</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;img9.jpg&quot;</span> <span style="color:#66cc66;">/</span>&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">div</span>&gt;</span>
&nbsp;
<span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">div</span> <span style="color:#000066;">class</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;label centerleft&quot;</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">p</span>&gt;</span>Water Lilies<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">p</span>&gt;</span>
  <span style="color:#009900;">&lt;<span style="color:#000000;font-weight:bold;">img</span> <span style="color:#000066;">src</span><span style="color:#66cc66;">=</span><span style="color:#ff0000;">&quot;img10.jpg&quot;</span> <span style="color:#66cc66;">/</span>&gt;</span>
<span style="color:#009900;">&lt;<span style="color:#66cc66;">/</span><span style="color:#000000;font-weight:bold;">div</span>&gt;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<h2>Starter CSS</h2>
<p>Now that we&#8217;ve got a good idea of what our HTML structure will look like, it&#8217;s time to jump over to our CSS. To start off, toss in a lazy man&#8217;s reset (or something more robust if you prefer) and a <a rel="nofollow" target="_blank" href="http://subtlepatterns.com/?p=904">background pattern</a>.</p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color:#00AA00;">*</span> <span style="color:#00AA00;">&#123;</span>
   <span style="color:#000000;font-weight:bold;">margin</span><span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">0</span><span style="color:#00AA00;">;</span>
   <span style="color:#000000;font-weight:bold;">padding</span><span style="color:#00AA00;">:</span> <span style="color:#cc66cc;">0</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
body <span style="color:#00AA00;">&#123;</span>
   <span style="color:#000000;font-weight:bold;">background</span><span style="color:#00AA00;">:</span> <span style="color:#cc00cc;">#f5f5f5</span> <span style="color:#993333;">url</span><span style="color:#00AA00;">&#40;</span><span style="color:#ff0000;">'wood_pattern.png'</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<p>Now it&#8217;s time to implement some generic label styles. Most of what we need to do will specifically apply to the paragraph, but there are a few things that should be done here as well. Start off with the specific styles that you need to make the layout work. since we&#8217;ll be working with images of varying sizes, I used inline-block for the display context with a top vertical alignment. I also set the overflow to hidden and the position to relative, both of which are vital for this experiment.</p>
<p>Next I threw in some optional visual styles. These are separated so that a developer who downloads these files can easily see how to customize the look and feel of the items without screwing up how they work. </p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color:#6666ff;">.label</span> <span style="color:#00AA00;">&#123;</span>
  <span style="color:#808080;font-style:italic;">/*Position*/</span>
  <span style="color:#000000;font-weight:bold;">display</span><span style="color:#00AA00;">:</span> inline-<span style="color:#993333;">block</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">vertical-align</span><span style="color:#00AA00;">:</span> <span style="color:#000000;font-weight:bold;">top</span><span style="color:#00AA00;">;</span>  
  <span style="color:#000000;font-weight:bold;">overflow</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">hidden</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">position</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">relative</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">margin</span><span style="color:#00AA00;">:</span> <span style="color:#933;">20px</span><span style="color:#00AA00;">;</span>
&nbsp;
  <span style="color:#808080;font-style:italic;">/*Skin*/</span>
  <span style="color:#000000;font-weight:bold;">border</span><span style="color:#00AA00;">:</span> <span style="color:#933;">7px</span> <span style="color:#993333;">solid</span> <span style="color:#cc00cc;">#fff</span><span style="color:#00AA00;">;</span>
  -webkit-box-shadow<span style="color:#00AA00;">:</span> <span style="color:#933;">0px</span> <span style="color:#933;">2px</span> <span style="color:#933;">4px</span> rgba<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0.5</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">,</span> <span style="color:#933;">0px</span> <span style="color:#933;">10px</span> <span style="color:#933;">7px</span> rgba<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0.2</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
     -moz-box-shadow<span style="color:#00AA00;">:</span> <span style="color:#933;">0px</span> <span style="color:#933;">2px</span> <span style="color:#933;">4px</span> rgba<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0.5</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">,</span> <span style="color:#933;">0px</span> <span style="color:#933;">10px</span> <span style="color:#933;">7px</span> rgba<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0.2</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
          box-shadow<span style="color:#00AA00;">:</span> <span style="color:#933;">0px</span> <span style="color:#933;">2px</span> <span style="color:#933;">4px</span> rgba<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0.5</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">,</span> <span style="color:#933;">0px</span> <span style="color:#933;">10px</span> <span style="color:#933;">7px</span> rgba<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0.2</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#808080;font-style:italic;">/*Extra Padding Fix*/</span>
<span style="color:#6666ff;">.label</span> img <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">display</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">block</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<p>Notice the peculiar block positioning context applied at the end here. For whatever reason, this layout was giving me an extra four pixels of padding at the bottom of each image that couldn&#8217;t be manually overridden. This fixed this problem. </p>
<h3>Status Update</h3>
<p>At this point we&#8217;re looking good. Our images are lining up nicely and have the styling that we want. The only weird part is that the text labels are all screwed up and that&#8217;s what we&#8217;re going to attack next. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/imglabelibrary-3.jpg" alt="screenshot" width="510"/></div>
<h2>Style the Labels</h2>
<p>Now it&#8217;s time to style the labels. Once again, it&#8217;s very important to figure out which styles can be reused and which need to vary. To do this, I simply ran ahead and created a bunch of different individual labels, then looked through to see where my code was redundant. </p>
<p>The realization is that each label will have to have absolute positioning (which works with the relative positioning from before), padding, a set width, transitions and visual styling. These properties will be identical, no matter what direction we&#8217;re coming from or what the final resting place of the label will be. </p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color:#6666ff;">.label</span> p <span style="color:#00AA00;">&#123;</span>
  <span style="color:#808080;font-style:italic;">/*Position*/</span>
  <span style="color:#000000;font-weight:bold;">position</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">absolute</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">padding</span><span style="color:#00AA00;">:</span> <span style="color:#933;">10px</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">width</span><span style="color:#00AA00;">:</span> <span style="color:#933;">100%</span><span style="color:#00AA00;">;</span>
&nbsp;
  <span style="color:#808080;font-style:italic;">/*Skin*/</span>
  <span style="color:#000000;font-weight:bold;">background</span><span style="color:#00AA00;">:</span> <span style="color:#cc00cc;">#000</span><span style="color:#00AA00;">;</span> <span style="color:#808080;font-style:italic;">/*fallback*/</span>
  <span style="color:#000000;font-weight:bold;">background</span><span style="color:#00AA00;">:</span> rgba<span style="color:#00AA00;">&#40;</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0</span><span style="color:#00AA00;">,</span><span style="color:#cc66cc;">0.7</span><span style="color:#00AA00;">&#41;</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">color</span><span style="color:#00AA00;">:</span> <span style="color:#cc00cc;">#fff</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">font</span><span style="color:#00AA00;">:</span> <span style="color:#993333;">bold</span> <span style="color:#993333;">italic</span> <span style="color:#933;">18px</span>/<span style="color:#cc66cc;">1.5</span> Helvtica<span style="color:#00AA00;">,</span> Verdana<span style="color:#00AA00;">,</span> <span style="color:#993333;">sans-serif</span><span style="color:#00AA00;">;</span>
&nbsp;
  <span style="color:#808080;font-style:italic;">/*Animation*/</span>
  -webkit-transition<span style="color:#00AA00;">:</span> all 0.5s ease<span style="color:#00AA00;">;</span>
     -moz-transition<span style="color:#00AA00;">:</span> all 0.5s ease<span style="color:#00AA00;">;</span>
       -o-transition<span style="color:#00AA00;">:</span> all 0.5s ease<span style="color:#00AA00;">;</span>
      -ms-transition<span style="color:#00AA00;">:</span> all 0.5s ease<span style="color:#00AA00;">;</span>
          transition<span style="color:#00AA00;">:</span> all 0.5s ease<span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<h3>Status Update</h3>
<p>As you can see in the image below, all of our labels are working now and look perfect. Notice that they&#8217;re all positioned at the top by default, keep this in mind as we move forward and shove them around.  </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/imglabelibrary-4.jpg" alt="screenshot" width="510"/></div>
<h2>Position Each Label</h2>
<p>From here, we have a lot of styling to do. Really we have a tiny bit of styling to do, but we have to do it ten different times because each label is unique. For each label, we need to position the paragraph element out of the bounds of the picture, then bring it back in on hover. </p>
<p>To begin, we want a label that will start just above an image that will fly downward on hover and rest at the top. To do this, we set the top value to -50%, which then changes to 0% on hover. Similarly, for the same effect from the bottom, we start with a bottom value of -50% and change that to 0%.</p>
<p>My method here is very specific so take note. The trickiest part of this whole idea is figuring out how to make it work on a wide range of image sizes. We don&#8217;t want the developer to have to manually enter in a size every time, it should just work when someone slaps on the required classes.</p>
<p>By utilizing the top and bottom properties the way we are, we ensure that nothing is image-size-specific. The value of 0% on the bottom property will <em>always</em> push our label down to the bottom of the image we apply it to, no matter how far that may be.</p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color:#808080;font-style:italic;">/*TOP LABEL*/</span>
.<span style="color:#000000;font-weight:bold;">top</span> p <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">top</span><span style="color:#00AA00;">:</span> <span style="color:#933;">-50%</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
.<span style="color:#000000;font-weight:bold;">top</span><span style="color:#3333ff;">:hover </span>p <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">top</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0%</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#808080;font-style:italic;">/*BOTTOM LABEL*/</span>
.<span style="color:#000000;font-weight:bold;">bottom</span> p <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">bottom</span><span style="color:#00AA00;">:</span> <span style="color:#933;">-50%</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
.<span style="color:#000000;font-weight:bold;">bottom</span><span style="color:#3333ff;">:hover </span>p <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">bottom</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0%</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<p>Next up, we need to style our labels that swing in from the sides. We can swing in from the top left, top right, bottom left and bottom right. Here are the values for these. The method is straightforward and just like the two we just went over. Each time we set the resting position just off to one side, then bring it back into view with the hover. For these, the left and right properties come into play in addition to the top and bottom properties.</p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color:#808080;font-style:italic;">/*BOTTOM LEFT LABEL*/</span>
<span style="color:#6666ff;">.bottomleft</span> p <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">bottom</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0%</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">left</span><span style="color:#00AA00;">:</span> <span style="color:#933;">-150%</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#6666ff;">.bottomleft</span><span style="color:#3333ff;">:hover </span>p <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">left</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0%</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#808080;font-style:italic;">/*BOTTOM RIGHT LABEL*/</span>
<span style="color:#6666ff;">.bottomright</span> p <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">bottom</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0%</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">left</span><span style="color:#00AA00;">:</span> <span style="color:#933;">150%</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#6666ff;">.bottomright</span><span style="color:#3333ff;">:hover </span>p <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">left</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0%</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#808080;font-style:italic;">/*TOP LEFT LABEL*/</span>
<span style="color:#6666ff;">.topleft</span> p <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">top</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0%</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">left</span><span style="color:#00AA00;">:</span> <span style="color:#933;">-150%</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#6666ff;">.topleft</span><span style="color:#3333ff;">:hover </span>p <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">left</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0%</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#808080;font-style:italic;">/*TOP RIGHT LABEL*/</span>
<span style="color:#6666ff;">.topright</span> p <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">top</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0%</span><span style="color:#00AA00;">;</span>
  <span style="color:#000000;font-weight:bold;">left</span><span style="color:#00AA00;">:</span> <span style="color:#933;">150%</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#6666ff;">.topright</span><span style="color:#3333ff;">:hover </span>p <span style="color:#00AA00;">&#123;</span>
  <span style="color:#000000;font-weight:bold;">left</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0%</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<p>To finish off, we need to code our centered labels. These are the hardest of the bunch to figure out. On hover, you want to place them fifty percent of the way down or up, minus half of the height of the label. So when we want to slide in from the top, we set the top value to 50% and apply and negative margin of 20px (half the height of our labels). Unfortunately, this does assume a single line of text and the specific font-size that we&#8217;ve set up. If either changes, then the height will be different and the item won&#8217;t be centered. The only way I know around that is to use some sort of <em>display: table</em> setup.</p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color:#808080;font-style:italic;">/*CENTER FROM TOP*/</span>
<span style="color:#6666ff;">.centertop</span> p <span style="color:#00AA00;">&#123;</span>
   <span style="color:#000000;font-weight:bold;">top</span><span style="color:#00AA00;">:</span> <span style="color:#933;">-50%</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#6666ff;">.centertop</span><span style="color:#3333ff;">:hover </span>p <span style="color:#00AA00;">&#123;</span>
   <span style="color:#000000;font-weight:bold;">top</span><span style="color:#00AA00;">:</span> <span style="color:#933;">50%</span><span style="color:#00AA00;">;</span>
   <span style="color:#000000;font-weight:bold;">margin-top</span><span style="color:#00AA00;">:</span> <span style="color:#933;">-20px</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#808080;font-style:italic;">/*CENTER FROM BOTTOM*/</span>
<span style="color:#6666ff;">.centerbottom</span> p <span style="color:#00AA00;">&#123;</span>
   <span style="color:#000000;font-weight:bold;">bottom</span><span style="color:#00AA00;">:</span> <span style="color:#933;">-50%</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#6666ff;">.centerbottom</span><span style="color:#3333ff;">:hover </span>p <span style="color:#00AA00;">&#123;</span>
   <span style="color:#000000;font-weight:bold;">bottom</span><span style="color:#00AA00;">:</span> <span style="color:#933;">50%</span><span style="color:#00AA00;">;</span>
   <span style="color:#000000;font-weight:bold;">margin-bottom</span><span style="color:#00AA00;">:</span> <span style="color:#933;">-20px</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#808080;font-style:italic;">/*CENTER FROM LEFT*/</span>
<span style="color:#6666ff;">.centerleft</span> p <span style="color:#00AA00;">&#123;</span>
   <span style="color:#000000;font-weight:bold;">top</span><span style="color:#00AA00;">:</span> <span style="color:#933;">50%</span><span style="color:#00AA00;">;</span>
   <span style="color:#000000;font-weight:bold;">left</span><span style="color:#00AA00;">:</span> <span style="color:#933;">-150%</span><span style="color:#00AA00;">;</span>
   <span style="color:#000000;font-weight:bold;">margin-top</span><span style="color:#00AA00;">:</span> <span style="color:#933;">-20px</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#6666ff;">.centerleft</span><span style="color:#3333ff;">:hover </span>p <span style="color:#00AA00;">&#123;</span>
   <span style="color:#000000;font-weight:bold;">left</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0%</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#808080;font-style:italic;">/*CENTER FROM RIGHT*/</span>
<span style="color:#6666ff;">.centerright</span> p <span style="color:#00AA00;">&#123;</span>
   <span style="color:#000000;font-weight:bold;">top</span><span style="color:#00AA00;">:</span> <span style="color:#933;">50%</span><span style="color:#00AA00;">;</span>
   <span style="color:#000000;font-weight:bold;">left</span><span style="color:#00AA00;">:</span> <span style="color:#933;">150%</span><span style="color:#00AA00;">;</span>
   <span style="color:#000000;font-weight:bold;">margin-top</span><span style="color:#00AA00;">:</span> <span style="color:#933;">-20px</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#6666ff;">.centerright</span><span style="color:#3333ff;">:hover </span>p <span style="color:#00AA00;">&#123;</span>
   <span style="color:#000000;font-weight:bold;">left</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0%</span><span style="color:#00AA00;">;</span>
<span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<h3>Optional: Going Further</h3>
<p>Now, if you&#8217;re crazy about repetition, you can go even further with making sure your code is as brief as possible. We separated out each label above for the sake of readability, but the result is a lot of values that are repeated throughout. We could go in and either manually combine selectors or use Sass @extend and come up with a much more concise result. The tradeoff here of course though is that you&#8217;re repeating your selectors because some appear in multiple places.</p>
<div style="overflow:auto;background-color:#eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">.<span style="color:#000000;font-weight:bold;">top</span><span style="color:#3333ff;">:hover </span>p<span style="color:#00AA00;">,</span> <span style="color:#6666ff;">.topleft</span> p<span style="color:#00AA00;">,</span> <span style="color:#6666ff;">.topright</span> p <span style="color:#00AA00;">&#123;</span><span style="color:#000000;font-weight:bold;">top</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0%</span><span style="color:#00AA00;">;</span><span style="color:#00AA00;">&#125;</span>
.<span style="color:#000000;font-weight:bold;">top</span> p<span style="color:#00AA00;">,</span> <span style="color:#6666ff;">.centertop</span> p <span style="color:#00AA00;">&#123;</span><span style="color:#000000;font-weight:bold;">top</span><span style="color:#00AA00;">:</span> <span style="color:#933;">-50%</span><span style="color:#00AA00;">;</span><span style="color:#00AA00;">&#125;</span>
&nbsp;
.<span style="color:#000000;font-weight:bold;">bottom</span><span style="color:#3333ff;">:hover </span>p<span style="color:#00AA00;">,</span> <span style="color:#6666ff;">.bottomleft</span> p<span style="color:#00AA00;">,</span> <span style="color:#6666ff;">.bottomright</span> p <span style="color:#00AA00;">&#123;</span><span style="color:#000000;font-weight:bold;">bottom</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0%</span><span style="color:#00AA00;">;</span><span style="color:#00AA00;">&#125;</span>
.<span style="color:#000000;font-weight:bold;">bottom</span> p<span style="color:#00AA00;">,</span> <span style="color:#6666ff;">.centerbottom</span> p <span style="color:#00AA00;">&#123;</span><span style="color:#000000;font-weight:bold;">bottom</span><span style="color:#00AA00;">:</span> <span style="color:#933;">-50%</span><span style="color:#00AA00;">;</span><span style="color:#00AA00;">&#125;</span>
<span style="color:#6666ff;">.bottomleft</span><span style="color:#3333ff;">:hover </span>p<span style="color:#00AA00;">,</span> <span style="color:#6666ff;">.bottomright</span><span style="color:#3333ff;">:hover </span>p<span style="color:#00AA00;">,</span> <span style="color:#6666ff;">.topleft</span><span style="color:#3333ff;">:hover </span>p<span style="color:#00AA00;">,</span> <span style="color:#6666ff;">.topright</span><span style="color:#3333ff;">:hover </span>p<span style="color:#00AA00;">,</span> <span style="color:#6666ff;">.centerleft</span><span style="color:#3333ff;">:hover </span>p<span style="color:#00AA00;">,</span> <span style="color:#6666ff;">.centerright</span><span style="color:#3333ff;">:hover </span>p <span style="color:#00AA00;">&#123;</span><span style="color:#000000;font-weight:bold;">left</span><span style="color:#00AA00;">:</span> <span style="color:#933;">0%</span><span style="color:#00AA00;">;</span><span style="color:#00AA00;">&#125;</span>
<span style="color:#6666ff;">.bottomleft</span> p<span style="color:#00AA00;">,</span> <span style="color:#6666ff;">.topleft</span> p<span style="color:#00AA00;">,</span> <span style="color:#6666ff;">.centerleft</span> p<span style="color:#00AA00;">,</span> <span style="color:#6666ff;">.centerleft</span> p <span style="color:#00AA00;">&#123;</span><span style="color:#000000;font-weight:bold;">left</span><span style="color:#00AA00;">:</span> <span style="color:#933;">-150%</span><span style="color:#00AA00;">;</span><span style="color:#00AA00;">&#125;</span>
<span style="color:#6666ff;">.bottomright</span> p<span style="color:#00AA00;">,</span> <span style="color:#6666ff;">.topright</span> p<span style="color:#00AA00;">,</span> <span style="color:#6666ff;">.centerright</span> p <span style="color:#00AA00;">&#123;</span><span style="color:#000000;font-weight:bold;">left</span><span style="color:#00AA00;">:</span> <span style="color:#933;">150%</span><span style="color:#00AA00;">;</span><span style="color:#00AA00;">&#125;</span>
&nbsp;
<span style="color:#6666ff;">.centerbottom</span><span style="color:#3333ff;">:hover </span>p <span style="color:#00AA00;">&#123;</span><span style="color:#000000;font-weight:bold;">bottom</span><span style="color:#00AA00;">:</span> <span style="color:#933;">50%</span><span style="color:#00AA00;">;</span><span style="color:#00AA00;">&#125;</span>
<span style="color:#6666ff;">.centertop</span><span style="color:#3333ff;">:hover </span>p<span style="color:#00AA00;">,</span> <span style="color:#6666ff;">.centerleft</span> p<span style="color:#00AA00;">,</span> <span style="color:#6666ff;">.centerright</span> p <span style="color:#00AA00;">&#123;</span><span style="color:#000000;font-weight:bold;">top</span><span style="color:#00AA00;">:</span> <span style="color:#933;">50%</span><span style="color:#00AA00;">;</span><span style="color:#00AA00;">&#125;</span>
<span style="color:#6666ff;">.centertop</span><span style="color:#3333ff;">:hover </span>p<span style="color:#00AA00;">,</span> <span style="color:#6666ff;">.centerleft</span> p<span style="color:#00AA00;">,</span> <span style="color:#6666ff;">.centerright</span> p <span style="color:#00AA00;">&#123;</span><span style="color:#000000;font-weight:bold;">margin-top</span><span style="color:#00AA00;">:</span> <span style="color:#933;">-20px</span><span style="color:#00AA00;">;</span><span style="color:#00AA00;">&#125;</span>
<span style="color:#6666ff;">.centerbottom</span><span style="color:#3333ff;">:hover </span>p <span style="color:#00AA00;">&#123;</span><span style="color:#000000;font-weight:bold;">margin-bottom</span><span style="color:#00AA00;">:</span> <span style="color:#933;">-20px</span><span style="color:#00AA00;">;</span><span style="color:#00AA00;">&#125;</span></pre></div></div>

</div>
<p>&lt;/ br&gt;</p>
<h2>See It In Action</h2>
<p>We&#8217;re all finished! Be sure to check out the live demo below and hover over each image to see the different effect. </p>
<p><strong>Demo:</strong> <a rel="nofollow" target="_blank" href="http://designshack.net/tutorialexamples/imagelabellibrary/index.html">Click Here</a> to launch.</p>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://designshack.net/tutorialexamples/imagelabellibrary/index.html"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/imglabelibrary-5.jpg" alt="screenshot" width="510"/></a></div>
<h2>Conclusion</h2>
<p>This project forced us into a lot of good thinking. We had to consider several times how to keep our code brief and free of repetition. We also consistently asked what was best given that we want others to be able to download and change our code with very little trouble. Sometimes when we saw a way to make our code more concise, it came at the price of readability and ease of use, which isn&#8217;t the best method for a free download.</p>
<p>Feel free to grab this code and use it however you like. Also keep an eye out for the download sometime in the coming weeks on <a rel="nofollow" target="_blank" href="http://pixelsdaily.com/">PixelsDaily</a>.</p>]]></content:encoded>
         <category>CSS</category>
      </item>
      <item>
         <title>Web Design Critique #80: The New Responsive WebAppers Site</title>
         <link>http://designshack.net/articles/critique-articles/web-design-critique-80-the-new-responsive-webappers-site/</link>
         <description>It&amp;#8217;s time for another awesome web design critique, where we take a look at a real website and analyze the design. We&amp;#8217;ll point out both the areas that are done well in addition to those that could use some work. Finally, we&amp;#8217;ll finish by asking you to provide your own feedback. Today&amp;#8217;s site is WebAppers, [...]</description>
         <guid isPermaLink="false">http://designshack.net/?p=32702</guid>
         <pubDate>Sat, 12 May 2012 05:00:53 +0000</pubDate>
         <content:encoded><![CDATA[<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/webappercritique-2.jpg" alt="screenshot" width="510"/></div>
<p>It&#8217;s time for another awesome web design critique, where we take a look at a real website and analyze the design. We&#8217;ll point out both the areas that are done well in addition to those that could use some work. Finally, we&#8217;ll finish by asking you to provide your own feedback. </p>
<p>Today&#8217;s site is <a rel="nofollow" target="_blank" href="http://www.webappers.com/">WebAppers</a>, a great place to find open source web resources. Let&#8217;s jump in and see what we think!</p>
<p><span id="more-32702"></span></p>
<p class="critique">If you&#8217;d like to submit your website to be featured in a future Design Critique, it just takes a few minutes. We charge $49 for critiquing your design &#8211; considerably less than you&#8217;d pay for a consultant to take a look at your site! You can <a rel="nofollow" target="_blank" href="http://designshack.net/advice">find out more here</a>.</p>
<h2>About WebAppers</h2>
<p>&#8220;WebAppers is a blog dedicated to share top quality open source resources for web developers and web designers daily. As a web designer, you’ll find some of the best free icons, stock photos, brushes, fonts and design inspirations. As a web developer, you’ll also find some of the best Javascript and Ajax components like modal windows, menus, galleries, tooltips, charts, calendars plugins and a lot more.&#8221;</p>
<p>Here is a screenshot of the homepage:</p>
<div class="tutorialimage"><a rel="nofollow" target="_blank" href="http://www.webappers.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/DSCRT-80-1.jpg" alt="web design critique" width="510"/></a></div>
<p><br />
<noscript><a rel="nofollow" target="_blank" href="http://polldaddy.com/poll/6219324/">How would you rate the design of WebAppers?</a></noscript></p>
<h2>First Impression</h2>
<p>If you&#8217;re wondering whether a Design Shack critique is worth it, you need look no further than the repeat customers. WebAppers was actually the customer for our <a rel="nofollow" target="_blank" href="http://designshack.net/articles/critique-articles/web-design-critique-14-webappers/">14th web design critique</a> and they&#8217;ve come back to have us take a look at their brand new, completely redesigned responsive site.</p>
<p>My first thoughts for the new design are very positive. This is no small update, they&#8217;ve taken the site in a completely new visual direction and I really think it&#8217;s better for it. The old site had a cobbled together sort of look, like various non-matching resources were thrown together. The new design, by contrast, is very clean and professional and comes off as a completely custom piece of work. And it&#8217;s responsive to boot!</p>
<p>We&#8217;re still very early in the responsive evolution of the web so my hat goes off to anyone who&#8217;s actually taking the initiative to remove RWD from the comfortable area of theory and put it into real world practice. </p>
<p>Let&#8217;s dig deeper into the site&#8217;s design and see what is working well and what could stand to be improved.</p>
<h2>New Logo</h2>
<p>The old WebAppers logo had this sort of 80s rocker appeal. There was a cat of some sort, some lighting bolt shapes; it was quirky but fun. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/DSCRT-80-3.jpg" alt="screenshot" width="510"/></div>
<p>I always found the logo to be a little confusing though. I could never quite tell if the lightning shapes were meant to be just that or if they were perhaps a lion&#8217;s mane. And what did any of that have to do with open source web resources anyway?</p>
<p>The new logo takes a simpler, text-based approach. I actually love the visual of the page curl &#8220;W&#8221;, the center of which also serves as an &#8220;A&#8221;. It&#8217;s just a flat out cool idea that was pulled off quite successfully.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/DSCRT-80-2.jpg" alt="screenshot" width="510"/></div>
<p>I also like that the logo clearly states what the site is all about. As soon as I load the home page, my eyes drift to the logo and I know what the page is offering me. This is extremely important and it&#8217;s all too often in these critiques that I&#8217;m telling a designer the opposite (that it&#8217;s difficult to see what their site is all about).</p>
<h2>Layout</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/DSCRT-80-5.jpg" alt="screenshot" width="510"/></div>
<p>As I mentioned above, the new layout is responsive, and by that I mean that it uses media queries to reflow the layout at a number of preset breakpoints. To be &#8220;fully responsive&#8221; some say that a site must also be built on a fluid grid like the one seen on <a rel="nofollow" target="_blank" href="http://www.smashingmagazine.com/">Smashing Magazine</a>, a project which no doubt inspired this one in some way.</p>
<p>WebAppers doesn&#8217;t reflow itself to every minute change in the browser width (at least until the smallest iteration), and to be honest, as I play around with it, I think that&#8217;s fine. It&#8217;s still a remarkably flexible design that adapts well to all kinds of different screen sizes, which is a lot more than most websites can claim.</p>
<p>In the wide version, there are four primary columns. From left to right they are the navigation, primary content, secondary content sidebar and advertising. The two sidebars have been designed to look almost like drawers that slide out of the main content, a perfect metaphor considering that they collapse as the width narrows. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/DSCRT-80-4.jpg" alt="screenshot" width="510"/></div>
<p>As we narrow the window down, we drop the advertising column on the far right. The content doesn&#8217;t merely disappear at this point though, instead the ads appear above the right sidebar, pushing that content downward. This is an elegant solution that looks great and still maintains most of the original content. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/DSCRT-80-6.jpg" alt="screenshot" width="510"/></div>
<p>There&#8217;s a subtle jump after this that narrows the main content column slightly. The container becomes narrower, the text size decreases and the images reduce their width. If we narrow the window even further we get the most significant layout shift:</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/DSCRT-80-7.jpg" alt="screenshot" width="510"/></div>
<p>Here we can see that the third column has completely dropped away and any content that was inside has become hidden. This means that the ads have disappeared completely (Smashing Magazine does the same thing) and the sidebar containing the popular content and search field is gone as well.</p>
<p>My only real problem here is that from this point on the site doesn&#8217;t appear to be searchable. I&#8217;m all for shifting design as the screen size changes but functionality is a touchier subject and reductions must be approached with caution. Searching seems like a fairly primary feature and I&#8217;d likely be frustrated that I can&#8217;t perform this task on my phone or tablet. </p>
<p>Eventually, the site breaks down to a single column layout with the navigation now appearing in a simple native dropdown menu, which typically work well on both mobile and desktop devices. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/DSCRT-80-8.jpg" alt="screenshot" width="510"/></div>
<p>Overall, I think the layout works really well, and with the exception of the search functionality, I&#8217;m not sure I would change much about it.</p>
<p>Looking behind the scenes we can see that this project was helped along by Twitter Bootstrap, which is nice because the page doesn&#8217;t look like your typical copy/paste Bootstrap project at all and proves that you can use that toolkit under the hood without sacrificing custom design. </p>
<h2>Aesthetics</h2>
<p>Now that we&#8217;ve discussed how the structure or bones of the site work, let&#8217;s take a look at the icing on top. The site takes on a largely gray color scheme with subtle pops of color here and there. It makes heavy use of attractive, minimal icons and of course Helvetica as its primary and nearly exclusive typeface. </p>
<p>My least favorite aspect of this entire site is the lack of contrast. Everything on the page has a sort of monotonous feel with nothing really standing out. I can see how the muted look is meant to be easy on the eyes, but it&#8217;s bland enough that it almost feels a bit straining. </p>
<p>The solution for this, as far as I&#8217;m concerned is so easy that it only involves replacing a single file: the background texture. I grabbed a dark texture from <a rel="nofollow" target="_blank" href="http://subtlepatterns.com/?p=1045">Subtle Patterns</a> and gave it a test run on the WebAppers site with great results.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/DSCRT-80-9.jpg" alt="screenshot" width="510"/></div>
<p>The dark background adds some much needed contrast to the site and really highlights the main content by pushing it to the forefront of your attention. It&#8217;s amazing how much of a difference a little tweak can make!</p>
<p>One other small thing that bugs me slightly is the shadow effect on the article titles, seen in the screenshot below:</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/DSCRT-80-10.jpg" alt="screenshot" width="510"/></div>
<p>One one hand, I think it&#8217;s a cool effect. On the other, I think it makes the text considerably more difficult to read. Perhaps if the shadow&#8217;s opacity were simply reduced it would be less distracting. </p>
<h2>Summary</h2>
<p>I think the WebAppers redesign is definitely a success. The site is more beautiful than ever and has taken a nice jump towards being device agnostic. It&#8217;s easy to use, the branding is more logical and the content presentation is really nice.</p>
<p>My one big concern is the lack of visual contrast, a concern which completely vanishes with the inclusion of a darker background pattern. I&#8217;m also skeptical of the decision to drop the search functionality on the narrower versions of the layout. I don&#8217;t think visiting the site on my iPhone should necessarily mean that I lost the ability to search.</p>
<p>Other than these issues though, it&#8217;s a great site. Be sure to stop by and give it a test drive. I think you&#8217;re going to like what you see. </p>
<h2>Your Turn!</h2>
<p>Now that you&#8217;ve read my comments, pitch in and help out by giving the designer some further advice. Let us know what you think is great about the design and what you think could be stronger. As always, we ask that you also be respectful of the site’s designer and offer clear constructive advice void of any harsh insults.</p>]]></content:encoded>
      </item>
   </channel>
</rss><!-- fe13.pipes.sp1.yahoo.com compressed/chunked Wed May 30 20:03:49 UTC 2012 -->

