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

<channel>
	<title>Design Shack &#187; Joshua Johnson</title>
	<atom:link href="http://designshack.net/author/joshuajohnson/feed" rel="self" type="application/rss+xml" />
	<link>http://designshack.net</link>
	<description>Inspiration, CSS Gallery &#38; Community News</description>
	<lastBuildDate>Thu, 09 Feb 2012 06:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Effortlessly Showcase Your Mockups to Clients With QwikVu</title>
		<link>http://designshack.net/articles/graphics/effortlessly-showcase-your-mockups-to-clients-with-qwikvu/</link>
		<comments>http://designshack.net/articles/graphics/effortlessly-showcase-your-mockups-to-clients-with-qwikvu/#comments</comments>
		<pubDate>Thu, 09 Feb 2012 06:00:00 +0000</pubDate>
		<dc:creator>Joshua Johnson</dc:creator>
				<category><![CDATA[Graphics]]></category>

		<guid isPermaLink="false">http://designshack.net/?p=29305</guid>
		<description><![CDATA[If you&#8217;re a front end designer, presenting clients with mockups can be tricky. Emailing files can be cumbersome and lead to unwanted questions about how to view the image properly, and many image sharing services aren&#8217;t ideal for viewing full-size website mockups in their proper context. Today we&#8217;re going to take a look at QwikVu, [...]]]></description>
			<content:encoded><![CDATA[<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/qwikvu-0.jpg" alt="screenshot" width="510"/></div>
<p>If you&#8217;re a front end designer, presenting clients with mockups can be tricky. Emailing files can be cumbersome and lead to unwanted questions about how to view the image properly, and many image sharing services aren&#8217;t ideal for viewing full-size website mockups in their proper context. </p>
<p>Today we&#8217;re going to take a look at <a href="http://qwik.vu/index.php">QwikVu</a>, a web app that&#8217;s specifically built for designers who want to share web design mockups with clients. Is it the tool you&#8217;ve been looking for to make client presentations easier? Read on to find out.</p>
<p><span id="more-29305"></span><br />
<em>Like the article? Be sure to subscribe to our <a href="feed://feeds.feedburner.com/designshack">RSS feed</a> and follow us on <a href="http://twitter.com/designshack">Twitter</a> to stay up on recent content.</em></p>
<h2>Meet QwikVu</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/qwikvu-1.jpg" alt="screenshot" width="510"/></div>
<p>The <a href="http://qwik.vu/index.php">QwikVu homepage</a> above sums up the service in a nutshell. Here you can sign up to try the service free for 30 days. This is a great way to kick the tires and test it out with a few clients to gauge its effectiveness.</p>
<p>Sign up for the service is quick and painless, you just need a name, email address and password and you&#8217;re up and running. Let&#8217;s take a look at what happens after you&#8217;ve signed up for an account and log on for the first time.</p>
<p>We&#8217;ll be going through the Pro plan today but there&#8217;s also a basic free service that allows you to upload and share individual images. Obviously, some of the more advanced features such as checking in to see if a client has viewed the mockup are reserved for the Pro service. </p>
<h2>Setting Up a Gallery</h2>
<p>When you sign into QwikVu, you&#8217;re greeted with a simple dashboard. Here you can view your client list, adjust your account information and access your galleries. I haven&#8217;t set any galleries up yet so there&#8217;s a brief message inviting me to do so. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/qwikvu-2.jpg" alt="screenshot" width="510"/></div>
<p>Like pretty much everything in QwikVu, setting up a new gallery is a really simple task that will only take you a few seconds. There&#8217;s a lovely form that walks you through the process, asking for basic information like your client details and the title of the gallery.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/qwikvu-3.jpg" alt="screenshot" width="510"/></div>
<p>As you can see, there are some really great advanced features here as well. You can choose a custom URL for the gallery, password protect it, assign a custom background color and choose how the images are aligned in the browser window.</p>
<h3>Adding Images</h3>
<p>Once you&#8217;ve set up a gallery, it&#8217;s time to add in some images. You can toss them in one at a time or grab them all in one upload. Once you&#8217;re finished uploading, the screen below allows you to rearrange, preview and edit each image.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/qwikvu-4.jpg" alt="screenshot" width="510"/></div>
<h2>Sharing a Gallery With a Client</h2>
<p>Once you&#8217;re ready to share a gallery, click the &#8220;Finished&#8221; button in the screen above to go back to the gallery view. Here you&#8217;ll see a list of all of the galleries that you&#8217;ve created. On the right side of this list, there&#8217;s a strip of buttons and information. You can check to see if the client has viewed the gallery, see it for yourself, edit the images, etc.</p>
<p>The button we&#8217;re looking for right now is the &#8220;share&#8221; command, represented by a little envelope icon. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/qwikvu-5.jpg" alt="screenshot" width="510"/></div>
<p>Clicking this image will bring up what is essentially an email window. Most of the contents is filled in for you automatically but you can customize all of it to your liking.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/qwikvu-6.jpg" alt="screenshot" width="510"/></div>
<p>Once you&#8217;re finished, click the &#8220;Share&#8221; button and the email will be sent off to your client. Your work is done, now all you have to do is wait for the feedback!</p>
<h2>Client Reviews</h2>
<p>Once you&#8217;ve sent out the invite, the client will receive a simple, text-only email that contains your custom message along with a link to view the gallery. You don&#8217;t have to worry about whether or not they know how to properly view the file, it&#8217;s a fool-proof process where a single click gets them what they want to see.</p>
<p>The invite link opens up the gallery in a browser. Your settings before have defined the display behavior here. For instance, my image is shown centered on a pure white background. It looks and feels just like a website: I can scroll up and down and the image stays centered as I resize my browser window. You can see my example gallery <a href="http://qwik.vu/web-design-mockup">here</a>.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/qwikvu-7.jpg" alt="screenshot" width="510"/></div>
<p>To make sure there&#8217;s no confusion with your clients, there&#8217;s a little information box that pops up when you click on the image that informs you about the nature of the mockup. You are told that the image merely represents a design so the buttons and links will not function. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/qwikvu-10.jpg" alt="screenshot" width="510"/></div>
<p>The bar that you see at the bottom allows you to scroll through the images in the gallery, share it with someone else, and download the files.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/qwikvu-8.jpg" alt="screenshot" width="510"/></div>
<p>You can also view the images in a thumbnail strip for easy navigation. Just click the little grid on the left side of the toolbar and you&#8217;ll get something like the window below. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/qwikvu-9.jpg" alt="screenshot" width="510"/></div>
<h3>Viewing On The Go</h3>
<p>Odds are your client is going to receive that email and want to check it right away. If he/she is out of the office and on a mobile device, the viewing experience is optimized and shown in an online image viewer with a quick message to explain that it&#8217;s a non-functioning mockup.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/qwikvu-11.jpg" alt="screenshot" width="510"/></div>
<p>The above image shows what the gallery looks like on my iPad. You can swipe back and forth between the pictures or view an automatic slideshow.</p>
<h2>Worth a Look?</h2>
<p>When the good folks at QwikVu asked us to take a look at their service, we were happy to oblige. It&#8217;s a great app that serves a clear purpose and works like a dream. The interface is quite attractive, the UX flow is so simple that anyone can manage it and everything works exactly as advertised.</p>
<p>QwikVu really is a great way to show off your flat mockups to clients. I love having the ability to display work centered in the browser at full size, just like I want it to be. Your clients will definitely appreciate the privacy side, password protected mockups are sure to give them a warm fuzzy feeling knowing that their secrets are safe from prying eyes. </p>
<h3>Pricing</h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/qwikvu-12.jpg" alt="screenshot" width="510"/></div>
<p>QwikVu is $9.99 per month or $99 for a year. To be honest, this is where things get a bit rocky for me. It&#8217;s a great app, but a hundred bucks a year for what amounts to slightly modified image hosting is going to be hard for a lot of web designers to justify, especially when they likely already have personal web hosting where they can upload their images.</p>
<p>Fortunately, there is a free component so if you do in fact get some great functionality for nothing. However, I would recommend augmenting the $9.99 plan with some awesome additional features such as the ability to define portions of the uploaded images as clickable links to make the mockups functioning wireframes. </p>
<p>Further, I think with a system like this you simply have to have means for client feedback (another great option that could be only on the premium plan). When a client views a mockup, it would be great if there were some sort of sticky notes feature that allowed for specific portions of the mockup to be targeted and discussed. I know the point here is to keep it simple and fight feature bloat, but simple and direct change requests could be implemented without adding too much complexity. There&#8217;s even an <a href="http://qwik.vu/example">example page</a> that unintentionally showcases how this system might look!</p>
<h2>Conclusion</h2>
<p>If you&#8217;re currently on the lookout for a better way to show off your non-functioning mockups to clients, QwikVu is a great solution. The result is far better than emailing a JPG, you really feel like you&#8217;re looking at the beginnings of a website in your browser. I highly recommend that you stop by <a href="http://qwik.vu/index.php">the site</a> and give the free trial a test run.</p>
<p>Have you tried QwikVu or any other service? Let us know your thoughts in the comment area below. </p>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/graphics/effortlessly-showcase-your-mockups-to-clients-with-qwikvu/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Three Super Easy Ways to Pull Off a Masonry Layout</title>
		<link>http://designshack.net/articles/css/masonry/</link>
		<comments>http://designshack.net/articles/css/masonry/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 06:00:30 +0000</pubDate>
		<dc:creator>Joshua Johnson</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[masonry]]></category>

		<guid isPermaLink="false">http://designshack.net/?p=29284</guid>
		<description><![CDATA[Masonry style layouts push the boundaries of creative layout techniques. I personally love how capable they prove to be at maximizing the efficiency of galleries containing items with varying heights. Every bit of screen space is used and the result can be downright mesmerizing. Today we&#8217;re going to dive into the concept, ideas and popular [...]]]></description>
			<content:encoded><![CDATA[<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/masonry-layout-0.jpg" alt="screenshot" width="510"/></div>
<p>Masonry style layouts push the boundaries of creative layout techniques. I personally love how capable they prove to be at maximizing the efficiency of galleries containing  items with varying heights. Every bit of screen space is used and the result can be downright mesmerizing.</p>
<p>Today we&#8217;re going to dive into the concept, ideas and popular techniques that are currently prevalent in masonry style layouts. We&#8217;ll learn three different methods for pulling off a masonry layout, discuss the ins and outs of each and make sure that the result is beautifully responsive and reflows based on browser width. </p>
<p><span id="more-29284"></span><br />
<em>Like the article? Be sure to subscribe to our <a href="feed://feeds.feedburner.com/designshack">RSS feed</a> and follow us on <a href="http://twitter.com/designshack">Twitter</a> to stay up on recent content.</em></p>
<h2>What Is a Masonry Layout?</h2>
<p>When you float objects in CSS, the browser arranges elements first horizontally then vertically. When we fill a container with a bunch of equally sized objects and float them left, we get a nice grid of images.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/masonry-layout-2.jpg" alt="screenshot" width="510"/></div>
<p>However, if the objects have variable heights, the results are much more difficult to predict. Instead of a nice tight grid, we get something that tends to be fairly scattered. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/masonry-layout-1.jpg" alt="screenshot" width="510"/></div>
<p>The obvious quandary here is how to pull off a nice tight grid that with items that have variable heights. It&#8217;s a pretty interesting topic and various developers have come up with several ways to go about it. Let&#8217;s take a look at three of the current best solutions. </p>
<p>To go one step further, we&#8217;re going to make sure that all three solutions are responsive, meaning the grid will reflow as the window size changes. </p>
<h2>jQuery Masonry</h2>
<div class="tutorialimage"><a href="http://masonry.desandro.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/masonry-layout-6.jpg" alt="screenshot" width="510"/></a></div>
<p><a href="http://masonry.desandro.com/index.html">jQuery Masonry</a> is the most popular solution to pull off this type of layout. It utilizes some pretty fancy JavaScript to reflow a series of divs. </p>
<p>Putting Masonry into practice is pretty easy, all you need is a container that holds a series of divs that you want to arrange masonry style. You can place anything you want inside the divs, in this case I threw in some placeholder images.</p>
<p>Once you have that in order, toss in jQuery and jQuery Masonry. Then you need to create a simple function that identifies your container and targets the class that we used for our Masonry images divs. Here&#8217;s a basic example:</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;">id</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;masonryImage&quot;</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;http://designshack.co.uk/wp-content/uploads/http://lorempixum.com/200/200/food/1&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&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;masonryImage&quot;</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;http://designshack.co.uk/wp-content/uploads/http://lorempixum.com/200/150/food/10&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&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;masonryImage&quot;</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;http://designshack.co.uk/wp-content/uploads/http://lorempixum.com/200/250/food/3&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&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;
	. . .
&nbsp;
<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;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;jquery-1.7.1.min.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;jquery.masonry.min.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
  $(function(){
&nbsp;
    var $container = $('#container');
&nbsp;
    $container.imagesLoaded( function(){
      $container.masonry({
        itemSelector : '.masonryImage'
      });
    });
&nbsp;
  });
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></div></div>

</div>
<p></ br></p>
<h3>CSS</h3>
<p>As long as we have a width set on our container div, the code above performs the magic we need it to and reflows the elements. If you set the div width to a percent, jQuery Masonry even automatically reflows the items as the page resizes.</p>
<p>Even though this is the case, things can get messy if you want to keep your container centered. I found it easier to apply a static width to my container, then use media queries to reflow the columns as the page size decreases past the container size. </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: #cc00cc;">#container</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1200px</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: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*Media Queries*/</span>
<span style="color: #a1a100;">@media only screen and (max-width : 1199px),</span>
only screen and <span style="color: #00AA00;">&#40;</span>max-device-<span style="color: #000000; font-weight: bold;">width</span> <span style="color: #00AA00;">:</span> <span style="color: #933;">1199px</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #cc00cc;">#container</span> <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1000px</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #a1a100;">@media only screen and (max-width : 999px),</span>
only screen and <span style="color: #00AA00;">&#40;</span>max-device-<span style="color: #000000; font-weight: bold;">width</span> <span style="color: #00AA00;">:</span> <span style="color: #933;">999px</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #cc00cc;">#container</span> <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">800px</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #a1a100;">@media only screen and (max-width : 799px),</span>
only screen and <span style="color: #00AA00;">&#40;</span>max-device-<span style="color: #000000; font-weight: bold;">width</span> <span style="color: #00AA00;">:</span> <span style="color: #933;">799px</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #cc00cc;">#container</span> <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">600px</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #a1a100;">@media only screen and (max-width : 599px),</span>
only screen and <span style="color: #00AA00;">&#40;</span>max-device-<span style="color: #000000; font-weight: bold;">width</span> <span style="color: #00AA00;">:</span> <span style="color: #933;">599px</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #cc00cc;">#container</span> <span style="color: #00AA00;">&#123;</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: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #a1a100;">@media only screen and (max-width : 399px),</span>
only screen and <span style="color: #00AA00;">&#40;</span>max-device-<span style="color: #000000; font-weight: bold;">width</span> <span style="color: #00AA00;">:</span> <span style="color: #933;">399px</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #cc00cc;">#container</span> <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">200px</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<h3>See It In Action</h3>
<p>This gives us a nice tight image gallery that perfectly responds to various browser window sizes. I&#8217;ve taken all the spacing out to illustrate just how tight you can get your images, but feel free to build in some margins so your images are spaced out a bit more. </p>
<p><strong>Demo:</strong> <a href="http://designshack.net/tutorialexamples/masonry/demos/masonry.html">Click here</a> to launch demo</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/masonry-layout-3.jpg" alt="screenshot" width="510"/></div>
<h2>Wookmark</h2>
<div class="tutorialimage"><a href="http://www.wookmark.com/jquery-plugin"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/masonry-layout-7.jpg" alt="screenshot" width="510"/></a></div>
<p>Another popular JavaScript solution for achieving the same type of layout is <a href="http://www.wookmark.com/jquery-plugin">Wookmark.js</a>, which is the driving plugin behind the Pinterest-like <a href="http://www.wookmark.com/">Wookmark.com</a>.</p>
<p>Wookmark.js is in my opinion a little trickier to implement than jQuery Masonry because of the lack of documentation, but it&#8217;s still pretty basic stuff. All we need to do to start is toss a bunch of images into an unordered list. The catch with this plugin is that we have to declare inline height values for each of the images.</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;">ul</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;myContent&quot;</span>&gt;</span> 			
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;height: 206px;&quot;</span>&gt;&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;http://designshack.co.uk/wp-content/uploads/http://lorempixum.com/200/206/animals/1&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #66cc66;">/</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;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;height: 256px;&quot;</span>&gt;&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;http://designshack.co.uk/wp-content/uploads/http://lorempixum.com/200/256/animals/2&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #66cc66;">/</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;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;height: 216px;&quot;</span>&gt;&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;http://designshack.co.uk/wp-content/uploads/http://lorempixum.com/200/216/animals/3&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #66cc66;">/</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;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;height: 276px;&quot;</span>&gt;&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;http://designshack.co.uk/wp-content/uploads/http://lorempixum.com/200/276/animals/4&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #66cc66;">/</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></ br></p>
<p>Once you&#8217;ve got that set up, then you insert the JavaScript at the bottom of the body just like last time. Insert both jQuery and Wookmark.js, then set up the simple function below, which targets the list items in our #myContent unordered list.</p>
<p>I tossed in another simple function here which essentially reloads the script as the window changes size. This will ensure that the columns automatically reflow and provide that responsive functionality. This time around we&#8217;ll ditch the media queries and let the JavaScript handle all of the layout.</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;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;jquery-1.7.1.min.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;jquery.wookmark.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
&nbsp;
   <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
		$('#myContent li').wookmark({offset: 2});
&nbsp;
		window.onresize = function(event) {
		    $('#myContent li').wookmark({offset: 2});
		}
   <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></div></div>

</div>
<p></ br></p>
<h3>CSS</h3>
<p>The CSS for this version is super minimal. All we need to do is set our ul width with a percentage and use position:relative. Then we set a specific width for each list item. That&#8217;s it!</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: #cc00cc;">#myContent</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">80%</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: #cc00cc;">#myContent</span> li <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">200px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<h3>See It In Action</h3>
<p>Just like last time, the result is a tight grid of images. However, even though spacing options are adjustable with Wookmark.js, I couldn&#8217;t get it to work at zero so we have a little bit of spacing in between the images. </p>
<p><strong>Demo:</strong> <a href="http://designshack.net/tutorialexamples/masonry/demos/wookmark.html">Click here</a> to launch demo</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/masonry-layout-4.jpg" alt="screenshot" width="510"/></div>
<h2>Pure CSS</h2>
<p>The JavaScript solutions are probably the safest and most widely compatible ways to go about a masonry layout, but the CSS nerd in me knew there had to be a way to pull it off without JavaScript.</p>
<p>It turns out, it&#8217;s actually pretty easy using some fancy CSS3. This technique was pioneered by <a href="http://sickdesigner.com/index.php/2011/html-css/masonry-css-getting-awesome-with-css3/">Radu Chelariu at SickDesigner</a> and though it&#8217;s definitely not as powerful, flexible, or cross-browser-compatible as the previous options, it&#8217;s still extremely impressive given that it&#8217;s all CSS.</p>
<p>To start off, let&#8217;s use the same unordered list that we did last time (no inline styles necessary), thrown into a container div. </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;">id</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;">ul</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;myContent&quot;</span>&gt;</span> 			
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&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;http://designshack.co.uk/wp-content/uploads/http://lorempixum.com/200/206/nature/1&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #66cc66;">/</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>&gt;&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;http://designshack.co.uk/wp-content/uploads/http://lorempixum.com/200/256/nature/2&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #66cc66;">/</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>&gt;&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;http://designshack.co.uk/wp-content/uploads/http://lorempixum.com/200/216/nature/3&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #66cc66;">/</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>&gt;&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;http://designshack.co.uk/wp-content/uploads/http://lorempixum.com/200/276/nature/4&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #66cc66;">/</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> 
<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></ br></p>
<h3>CSS</h3>
<p>Here&#8217;s where the voodoo happens. To start, apply a width to the container and center it. Then use the new CSS columns functionality to lay out the content into six columns with zero gap. Finally, target the images directly and set the display to inline-block with a width of 100%. Inline-block allows us to flow elements inline without floats while maintaining block level functionality. </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: #cc00cc;">#container</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1200px</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: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#myContent</span> <span style="color: #00AA00;">&#123;</span>
	-moz-column-count<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">6</span><span style="color: #00AA00;">;</span>
	-moz-column-gap<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	-webkit-column-count<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">6</span><span style="color: #00AA00;">;</span>
	-webkit-column-gap<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	column-count<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">6</span><span style="color: #00AA00;">;</span>
	column-gap<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1200px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#myContent</span> img<span style="color: #00AA00;">&#123;</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;">margin-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</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>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<p>That&#8217;s all we need for the masonry layout, but we still have the responsive bit to go. We&#8217;ll basically use the same trick that we used for the first layout, only this time we&#8217;ll change the column count and container width when the window size gets too narrow. </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;">@media only screen and (max-width : 1199px),</span>
only screen and <span style="color: #00AA00;">&#40;</span>max-device-<span style="color: #000000; font-weight: bold;">width</span> <span style="color: #00AA00;">:</span> <span style="color: #933;">1199px</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #cc00cc;">#myContent</span> <span style="color: #00AA00;">&#123;</span>
		-moz-column-count<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">5</span><span style="color: #00AA00;">;</span>
		-moz-column-gap<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
		-webkit-column-count<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">5</span><span style="color: #00AA00;">;</span>
		-webkit-column-gap<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
		column-count<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">5</span><span style="color: #00AA00;">;</span>
		column-gap<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1000px</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #cc00cc;">#container</span> <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1000px</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #a1a100;">@media only screen and (max-width : 999px),</span>
only screen and <span style="color: #00AA00;">&#40;</span>max-device-<span style="color: #000000; font-weight: bold;">width</span> <span style="color: #00AA00;">:</span> <span style="color: #933;">999px</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #cc00cc;">#myContent</span> <span style="color: #00AA00;">&#123;</span>
		-moz-column-count<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">4</span><span style="color: #00AA00;">;</span>
		-moz-column-gap<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
		-webkit-column-count<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">4</span><span style="color: #00AA00;">;</span>
		-webkit-column-gap<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
		column-count<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">4</span><span style="color: #00AA00;">;</span>
		column-gap<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">800px</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #cc00cc;">#container</span> <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">800px</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #a1a100;">@media only screen and (max-width : 799px),</span>
only screen and <span style="color: #00AA00;">&#40;</span>max-device-<span style="color: #000000; font-weight: bold;">width</span> <span style="color: #00AA00;">:</span> <span style="color: #933;">799px</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #cc00cc;">#myContent</span> <span style="color: #00AA00;">&#123;</span>
		-moz-column-count<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">3</span><span style="color: #00AA00;">;</span>
		-moz-column-gap<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
		-webkit-column-count<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">3</span><span style="color: #00AA00;">;</span>
		-webkit-column-gap<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
		column-count<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">34</span><span style="color: #00AA00;">;</span>
		column-gap<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">600px</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #cc00cc;">#container</span> <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">600px</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #a1a100;">@media only screen and (max-width : 599px),</span>
only screen and <span style="color: #00AA00;">&#40;</span>max-device-<span style="color: #000000; font-weight: bold;">width</span> <span style="color: #00AA00;">:</span> <span style="color: #933;">599px</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #cc00cc;">#myContent</span> <span style="color: #00AA00;">&#123;</span>
		-moz-column-count<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">2</span><span style="color: #00AA00;">;</span>
		-moz-column-gap<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
		-webkit-column-count<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">2</span><span style="color: #00AA00;">;</span>
		-webkit-column-gap<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
		column-count<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">2</span><span style="color: #00AA00;">;</span>
		column-gap<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</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: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #cc00cc;">#container</span> <span style="color: #00AA00;">&#123;</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: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<h3>Compatibility</h3>
<p>The big problem here is that IE doesn&#8217;t have support for CSS columns until IE10. This means that you&#8217;ll have to use jQuery Masonry as a backup for IE users if you want to implement this technique in a real world scenario. </p>
<h3>See It In Action</h3>
<p>Here&#8217;s our third and final masonry layout demo. At a glance, the effect is exactly like we saw with jQuery Masonry. Not bad for plain old CSS!</p>
<p><strong>Demo:</strong> <a href="http://designshack.net/tutorialexamples/masonry/demos/css.html">Click here</a> to launch demo</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/masonry-layout-5.jpg" alt="screenshot" width="510"/></div>
<h2>Conclusion</h2>
<p>In a <a href="http://designshack.net/articles/business-articles/addictive-ux-why-pinterest-is-so-dang-amazing/">recent article on Pinterest</a>, I discussed just how powerful masonry layouts can be from a UX perspective, especially when combined with infinite scrolling.</p>
<p>You can definitely expect this budding trend to increase in popularity and before you know it you&#8217;ll have clients asking for a layout like the one they see on Pinterest. When this happens, you&#8217;ll now be prepared with not one but three possible solutions!</p>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/css/masonry/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Convert a Pricing Table PSD to HTML and CSS</title>
		<link>http://designshack.net/articles/css/csspricingtables/</link>
		<comments>http://designshack.net/articles/css/csspricingtables/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 06:00:37 +0000</pubDate>
		<dc:creator>Joshua Johnson</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[pricing table]]></category>

		<guid isPermaLink="false">http://designshack.net/?p=29263</guid>
		<description><![CDATA[Today we&#8217;re going to grab some PSD pricing tables from Design Curate and try to convert them to pure CSS so you can easily drop them into your site. It&#8217;ll be a super basic but fun exercise in bringing a static design to the web and you&#8217;ll learn plenty of fun stuff along the way [...]]]></description>
			<content:encoded><![CDATA[<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/css-pricingtables-0.jpg" alt="screenshot" width="510"/></div>
<p>Today we&#8217;re going to grab some PSD pricing tables from <a href="http://designcurate.com/resource/pricing-tables">Design Curate</a> and try to convert them to pure CSS so you can easily drop them into your site. </p>
<p>It&#8217;ll be a super basic but fun exercise in bringing a static design to the web and you&#8217;ll learn plenty of fun stuff along the way such as how to style hr tags a create a superscript effect.</p>
<p><span id="more-29263"></span><br />
<em>Like the article? Be sure to subscribe to our <a href="feed://feeds.feedburner.com/designshack">RSS feed</a> and follow us on <a href="http://twitter.com/designshack">Twitter</a> to stay up on recent content.</em></p>
<h2>Original Design</h2>
<p>The design of our pricing tables is super minimal. They&#8217;re basically just a rounded corner rectangle with some text and buttons. Download the original PSD <a href="http://designcurate.com/resource/pricing-tables">here</a> for a closer look (we&#8217;re scrapping the Best Value banner).</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/css-pricingtables-1.jpg" alt="screenshot" width="510"/></div>
<p>As you can see, the primary task here will merely be shuffling elements into place. The top bar may seem like it&#8217;ll be tricky, but in reality it&#8217;s a cinch. More interesting from my perspective is how to style that thin dividing line and pulling off a superscript in the text. </p>
<p>Also of interest is the fact that the center pricing table is a little larger than the others and overlaps them. This could mean styling two unique versions of the table, but we&#8217;ll use a nice little trick that takes all the effort out of this. Let&#8217;s jump in and get started.</p>
<h2>Basic Shape</h2>
<p>To begin, we&#8217;ll focus on creating one pricing table. Once we have that one built, we can expand it into three fairly easily. Our first step is to create the basic shape of a single table: a vertical rectangle with rounded corners.</p>
<p>We&#8217;ll start with a div that will hold all the code for one pricing table. Assign the class of &#8220;pricingtable&#8221; so that we can easily reuse this element again later. </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;pricingtable&quot;</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></ br></p>
<p>Now let&#8217;s add some style. Our pricing tables will be white so I set a gray background color to help them stand out. Then I applied some sizing to our class, rounded the corners and added a shadow.</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>
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;">#ededed</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.pricingtable</span> <span style="color: #00AA00;">&#123;</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;">450px</span><span style="color: #00AA00;">;</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;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">50px</span><span style="color: #00AA00;">;</span>
&nbsp;
  -webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
     -moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
          border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
  -webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">9px</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;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">9px</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;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">9px</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></ br></p>
<h3>Progress Update</h3>
<p>This step should give you a simple white box. Make sure that your dimensions are correct and that your shadow and rounded corners are functioning properly. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/css-pricingtables-2.jpg" alt="screenshot" width="510"/></div>
<h2>Top Bar</h2>
<p>Now that we&#8217;ve got our basic shape in place, we&#8217;ll start at the top and work our way down. The first thing that we need is obviously that colored bar at the top that holds the name for each of our pricing plans: Basic, Pro and Premium. To pull this off, create another div with the class of &#8220;top&#8221;. Don&#8217;t worry, we&#8217;re not going div crazy, this will be the last one that we need for our base pricing table template.</p>
<p>Inside the div, place an h2 (we&#8217;ll use the h1 later) with the name of the pricing table. We could simply use this h2 without the div to create the top bar, but structuring it this way makes it easier to add a sub tag or other content here later. </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;pricingtable&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;top&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>Basic<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: #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></ br></p>
<p>Turning that div into our top bar is pretty simple. To start, we give it a width of 250px, a height of 50px and sample the PSD to get a background color of #2F2E35. Then we apply the same border-radius that we used before (10px), only this time we apply it to only the top two corners, leaving the bottom corners square. </p>
<p>Next it&#8217;s time to target the h2 and give it some styling. I simply changed the color to white, aligned the text to the center and used some fancy font shorthand to set the weight, size, line-height and font-family for our headline. </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: #00AA00;">&#123;</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;">50px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#2F2E35</span><span style="color: #00AA00;">;</span>
  -webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span> <span style="color: #933;">10px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
     -moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span> <span style="color: #933;">10px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
          border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span> <span style="color: #933;">10px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
.<span style="color: #000000; font-weight: bold;">top</span> h2 <span style="color: #00AA00;">&#123;</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;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</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;">30px</span>/<span style="color: #933;">50px</span> Helvetica<span style="color: #00AA00;">,</span> Verdana<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></ br></p>
<h3>Progress Update</h3>
<p>Our plain white box is already starting to look like the pricing table we&#8217;re going for. Now we just fill in the center contents and we&#8217;ll be ready to go.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/css-pricingtables-3.jpg" alt="screenshot" width="510"/></div>
<h2>Features</h2>
<p>Moving down the table, next we find a list of features. Right away that sentence should give you a hint as to how we can mark this section up: with a list. The order isn&#8217;t anything specific here so we&#8217;ll use an unordered list.</p>
<p>Notice that in our original design, the first word of each feature is bolded. We&#8217;ll toss in some strong tags to help us pull this off in our design. </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;pricingtable&quot;</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;top&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>Basic<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: #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;">ul</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>Full<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;</span> Email Support<span style="color: #009900;">&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>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>25GB<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;</span> of Storage<span style="color: #009900;">&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>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>5<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;</span> Domains<span style="color: #009900;">&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>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>10<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;</span> Email Addresses<span style="color: #009900;">&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>
&nbsp;
<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></ br></p>
<p>Styling up this list is quite easy. To start, we want to ditch the bullet points, so set the list-style-type to &#8220;none&#8221;. After that, I use the same font shorthand as above but this time with a different size and line-height.</p>
<p>Notice that the line-height is set without a unit of measure (2, not 2px). This is a simple multiplier that takes the font-size into account (18px * 2 = 36px line-height). You can read more about this technique <a href="http://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/">here</a>.</p>
<p>To finish off this block of styles, target those strong tags and be sure that they&#8217;re set to bold. </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;">.pricingtable</span> ul <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">list-style-type</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</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;">2</span> Helvetica<span style="color: #00AA00;">,</span> Verdana<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</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: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">45px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.pricingtable</span> ul strong <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<h3>Progress Update</h3>
<p>Our feature list is looking perfect! Those bolder styles really help you focus on the important pieces of information. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/css-pricingtables-4.jpg" alt="screenshot" width="510"/></div>
<h2>Dividing Line</h2>
<p>In the original design, there&#8217;s a subtle line that separates the feature list from the price. This can be accomplished with a simple horizontal rule tag:</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;pricingtable&quot;</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;top&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>Basic<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: #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;">ul</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>Full<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;</span> Email Support<span style="color: #009900;">&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>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>25GB<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;</span> of Storage<span style="color: #009900;">&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>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>5<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;</span> Domains<span style="color: #009900;">&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>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>10<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;</span> Email Addresses<span style="color: #009900;">&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>
&nbsp;
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">hr</span> <span style="color: #66cc66;">/</span>&gt;</span>
&nbsp;
<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></ br></p>
<p>The default styling for the horizontal line is <em>close</em> to what we want, but not quite there. For instance, notice that it stretches all the way across the pricing table. We actually want it narrower and centered.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/css-pricingtables-5.jpg" alt="screenshot" width="510"/></div>
<p>Styling an hr can be tricky and frustrating if you don&#8217;t know what you&#8217;re doing. You&#8217;d think that all we would have to do is set the width and color and we&#8217;d be good to go, but that&#8217;s not the case.</p>
<p>By default, certain browsers apply some weird styles that you have to clear. To be sure we get the look we want, we have to clear the borders, declare both a height and width, and set a background color. Then we center it using basic math: if our table is 250px wide and our line is 190px, that leaves 60px of width left. Using margins, we cut that value in half and assign thirty pixels of space to the left side of the line.</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;">.pricingtable</span> hr <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#BCBEC0</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#BCBEC0</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">190px</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: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">30px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<h3>Progress Update</h3>
<p>With that bit of styling, our little line is looking exactly like we want it to. Feel free to experiment with your hr to see what sort of fancy styles you can make. CSS-Tricks has some <a href="http://css-tricks.com/simple-styles-for-horizontal-rules/">great examples</a> for inspiration.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/css-pricingtables-6.jpg" alt="screenshot" width="510"/></div>
<h2>Price</h2>
<p>Next up is the price tag. This comes in two parts, the big price and the small text underneath that says &#8220;per month.&#8221; The tricky part is that, in the original design, the dollar sign is superscript. </p>
<p>I wanted to be semantic about this so I went ahead and used the &#8220;sup&#8221; tag. Some sources seem to think that this is a deprecated tag, but as far as I can tell, that&#8217;s not the case. Both sub and sup appear to be valid in HTML5 and have plenty of browser support across the board. I&#8217;m open to opposing arguments here, so let me know in the comments if you disagree.</p>
<p>Another potential point for a huge semantic argument here is my use of h1. Some would no doubt reserve h1 for the plan title at the top, but the price point here seemed to be the most important piece of information (importance trumps order), so I thought it was best to utilize it here. Once again, feel free to disagree and go your own way. </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;pricingtable&quot;</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;top&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>Basic<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: #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;">ul</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>Full<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;</span> Email Support<span style="color: #009900;">&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>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>25GB<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;</span> of Storage<span style="color: #009900;">&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>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>5<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;</span> Domains<span style="color: #009900;">&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>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>10<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;</span> Email Addresses<span style="color: #009900;">&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>
&nbsp;
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">hr</span> <span style="color: #66cc66;">/</span>&gt;</span>
&nbsp;
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">sup</span>&gt;</span>$<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">sup</span>&gt;</span>25<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>per month<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
&nbsp;
<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></ br></p>
<p>Now for our CSS we have three different things to target: the h1, the h1 sup and the paragraph. There&#8217;s nothing fancy here, just some more font-sizing and a little bit of margins to scoot things into place. Notice that all we need to do for the sup tag is reduce the font size. </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;">.pricingtable</span> h1 <span style="color: #00AA00;">&#123;</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: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span> <span style="color: #933;">88px</span>/<span style="color: #cc66cc;">1</span> Helvetica<span style="color: #00AA00;">,</span> Verdana<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</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: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.pricingtable</span> h1 sup <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">45px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.pricingtable</span> p <span style="color: #00AA00;">&#123;</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: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">500</span> <span style="color: #933;">14px</span>/<span style="color: #cc66cc;">1</span> Helvetica<span style="color: #00AA00;">,</span> Verdana<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;">#BCBEC0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<h3>Progress Update</h3>
<p>Our pricing table is nearly complete! Thus far we&#8217;ve conquered the four most difficult pieces of the puzzle, all that&#8217;s left is to create a button at the bottom. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/css-pricingtables-7.jpg" alt="screenshot" width="510"/></div>
<h2>The Button</h2>
<p>To finish off our pricing table, let&#8217;s put a sign up button at the bottom. To accomplish this, just throw an anchor tag into your HTML. This will finish up our reusable pricingtable div.</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;pricingtable&quot;</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;top&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>Basic<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: #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;">ul</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>Full<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;</span> Email Support<span style="color: #009900;">&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>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>25GB<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;</span> of Storage<span style="color: #009900;">&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>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>5<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;</span> Domains<span style="color: #009900;">&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>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>10<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;</span> Email Addresses<span style="color: #009900;">&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>
&nbsp;
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">hr</span> <span style="color: #66cc66;">/</span>&gt;</span>
&nbsp;
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">sup</span>&gt;</span>$<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">sup</span>&gt;</span>25<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>per month<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
&nbsp;
  <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;</span>Sign Up<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
&nbsp;
<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></ br></p>
<p>To turn this simple text link into a button, set the display to block and define a width and height. Also be sure to fix the default link styling by setting the color and text-decoration. I transformed the text into uppercase as well to match the original design. Finally, apply the same border-radius as before.</p>
<p>To finish off the button, you can use a solid color to keep things simple, but I opted for a basic gradient that gets lighter when you hover over it. It&#8217;s a big, scary chunk of CSS but don&#8217;t worry, it&#8217;s all fairly basic. Use a free tool like <a href="http://www.colorzilla.com/gradient-editor/">this one</a> to save you some trouble if you&#8217;re creating your own gradient.</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;">.pricingtable</span> a <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: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">40px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">150px</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;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">25px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">50px</span><span style="color: #00AA00;">;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</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: #000000; font-weight: bold;">text-transform</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">uppercase</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">500</span> <span style="color: #933;">16px</span>/<span style="color: #933;">40px</span> Helvetica<span style="color: #00AA00;">,</span> Verdana<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
&nbsp;
  -webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
     -moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
          border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
&nbsp;
  <span style="color: #808080; font-style: italic;">/*Gradient*/</span>
  <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#9dcc55</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Old browsers */</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;">#9dcc55</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#96c23d</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;">#9dcc55</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;">#96c23d</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;">#9dcc55</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#96c23d</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;">#9dcc55</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#96c23d</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;">#9dcc55</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#96c23d</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;">#9dcc55</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#96c23d</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;">'#9dcc55'</span><span style="color: #00AA00;">,</span> endColorstr<span style="color: #00AA00;">=</span><span style="color: #ff0000;">'#96c23d'</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>
&nbsp;
<span style="color: #6666ff;">.pricingtable</span> a<span style="color: #3333ff;">:hover </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;">#b2e560</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Old browsers */</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;">#b2e560</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#96c23d</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;">#b2e560</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;">#96c23d</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;">#b2e560</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#96c23d</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;">#b2e560</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#96c23d</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;">#b2e560</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#96c23d</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;">#b2e560</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#96c23d</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;">'#b2e560'</span><span style="color: #00AA00;">,</span> endColorstr<span style="color: #00AA00;">=</span><span style="color: #ff0000;">'#96c23d'</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>
&nbsp;
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<h3>Progress Update</h3>
<p>With that, our first pricing table is complete! If we wanted to go further, we could grab a slab serif web font to make it look just like the PSD, but I like the Helvetica just fine here. Now we have to take this one item and turn it into three!</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/css-pricingtables-8.jpg" alt="screenshot" width="510"/></div>
<h2>Making Three Tables</h2>
<p>To expand this into three unique tables, copy and paste the HTML that you just created so that you have three pricingtable divs and place them all inside of a container div. Then customize the text on each so that the features and price point are correct. Finally, add a &#8220;featured&#8221; class to the second table. We&#8217;ll us this to pull off the enlarged effect. </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;">id</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;pricingtable&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;top&quot;</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>Basic<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: #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;">ul</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>Full<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;</span> Email Support<span style="color: #009900;">&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>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>25GB<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;</span> of Storage<span style="color: #009900;">&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>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>5<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;</span> Domains<span style="color: #009900;">&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>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>10<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;</span> Email Addresses<span style="color: #009900;">&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>
&nbsp;
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">hr</span> <span style="color: #66cc66;">/</span>&gt;</span>
&nbsp;
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">sup</span>&gt;</span>$<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">sup</span>&gt;</span>25<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>per month<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
&nbsp;
      <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;</span>Sign Up<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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;pricingtable featured&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;top&quot;</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>Pro<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: #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;">ul</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>Full<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;</span> Email Support<span style="color: #009900;">&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>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>50GB<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;</span> of Storage<span style="color: #009900;">&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>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>10<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;</span> Domains<span style="color: #009900;">&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>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>20<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;</span> Email Addresses<span style="color: #009900;">&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>
&nbsp;
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">hr</span> <span style="color: #66cc66;">/</span>&gt;</span>
&nbsp;
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">sup</span>&gt;</span>$<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">sup</span>&gt;</span>49<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>per month<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
&nbsp;
      <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;</span>Sign Up<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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;pricingtable&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;top&quot;</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>Premium<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: #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;">ul</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>Full<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;</span> Email Support<span style="color: #009900;">&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>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>Unlimited<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;</span> Storage<span style="color: #009900;">&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>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>Unlimited<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;</span> Domains<span style="color: #009900;">&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>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>50<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;</span> Email Addresses<span style="color: #009900;">&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>
&nbsp;
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">hr</span> <span style="color: #66cc66;">/</span>&gt;</span>
&nbsp;
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">sup</span>&gt;</span>$<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">sup</span>&gt;</span>79<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>per month<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
&nbsp;
      <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;</span>Sign Up<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

</div>
<p></ br></p>
<p>To make the pricing tables appear next to each other, go back to your pricingtable class and float it left. Also apply a width of 780px to your container and center it on the page with auto left and right margins. </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: #cc00cc;">#container</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">780px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100px</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.pricingtable</span> <span style="color: #00AA00;">&#123;</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;">450px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">white</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
&nbsp;
  -webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
     -moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
          border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
  -webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">9px</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;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">9px</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;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">9px</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></ br></p>
<p>Now we have three pricing tables in a row, which is exactly what we want. However, remember that the center one should be larger than the other two, this is not yet the case.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/css-pricingtables-9.jpg" alt="screenshot" width="510"/></div>
<p>Instead of manually going through and adjusting each little set of dimensions throughout the center pricing table, we can target the unique class that we gave it and apply a CSS transformation to enlarge it. Since all of our content is pure code (no images), the scaled up version should look just fine.</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;">.featured</span> <span style="color: #00AA00;">&#123;</span>
	-webkit-transform<span style="color: #00AA00;">:</span> scale<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">1.2</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">1.2</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-moz-transform<span style="color: #00AA00;">:</span> scale<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">1.2</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">1.2</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-o-transform<span style="color: #00AA00;">:</span> scale<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">1.2</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">1.2</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-ms-transform<span style="color: #00AA00;">:</span> scale<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">1.2</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">1.2</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	transform<span style="color: #00AA00;">:</span> scale<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">1.2</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">1.2</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<h2>All Finished!</h2>
<p>With that, our CSS pricing tables are complete. The last transformation gave us exactly the effect that we wanted with the center table larger and floating over the other two. Check out the live demo versions below.</p>
<p><strong>Demo:</strong> <a href="http://designshack.net/tutorialexamples/pricingtables/index.html">Click here</a> to launch demo<br />
<strong>Code:</strong> See and tweak the source code at <a href="http://dabblet.com/gist/1753915">Dabblet</a></p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/css-pricingtables-10.jpg" alt="screenshot" width="510"/></div>
<h2>Conclusion</h2>
<p>I hope you enjoyed building these pricing tables and will get some good use out of them. Use them however you wish and be sure to download the PSD and vector versions from <a href="http://designcurate.com/resource/pricing-tables">Design Curate</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/css/csspricingtables/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Code a Useful Expanding Vertical Navigation Menu</title>
		<link>http://designshack.net/articles/css/verticalaccordionav/</link>
		<comments>http://designshack.net/articles/css/verticalaccordionav/#comments</comments>
		<pubDate>Mon, 06 Feb 2012 06:00:44 +0000</pubDate>
		<dc:creator>Joshua Johnson</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[vertical]]></category>

		<guid isPermaLink="false">http://designshack.net/?p=29230</guid>
		<description><![CDATA[Today we have yet another awesome step-by-step CSS project for you! This time around we&#8217;re going to build a super useful expanding vertical navigation menu. It&#8217;s a great way to hide a lot of links in a fairly small space and the animations will add a nice touch to your site. Even if you&#8217;re a [...]]]></description>
			<content:encoded><![CDATA[<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/cssvertmenu-0.jpg" alt="screenshot" width="510"/></div>
<p>Today we have yet another awesome step-by-step CSS project for you! This time around we&#8217;re going to build a super useful expanding vertical navigation menu. It&#8217;s a great way to hide a lot of links in a fairly small space and the animations will add a nice touch to your site.  </p>
<p>Even if you&#8217;re a complete beginner, you should be able to pull this off. I&#8217;ll guide you along every step of the way and explain how each chunk of code works so you can implement these same techniques in future projects and deepen your understanding of CSS. Let&#8217;s get started!</p>
<p><span id="more-29230"></span><br />
<em>Like the article? Be sure to subscribe to our <a href="feed://feeds.feedburner.com/designshack">RSS feed</a> and follow us on <a href="http://twitter.com/designshack">Twitter</a> to stay up on recent content.</em></p>
<h2>The Concept</h2>
<p>Before we start coding, it&#8217;s always helpful to lay out the rough concept of what you want to achieve so you can wrap your brain around what&#8217;s going to be involved. The item we&#8217;re building today is a vertical navigation menu that&#8217;s in a sort of modified accordion format (get a sneak peek of the finished product <a href="http://designshack.net/tutorialexamples/verticalnav/index.html">here</a>).</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/cssvertmenu-1.jpg" alt="screenshot" width="510"/></div>
<p>As you can see, the sections on the bottom are closed by default and slide open when you over over them. However, to add some nice variation we&#8217;ll also include a section that stays open all of the time. In the main section that is always open we&#8217;ll include a brief welcome message and in the sections that slide open will be sub-sections of navigation links. </p>
<p>Now that we have a good idea of where we&#8217;re going, let&#8217;s start outlining the structure in our HTML.</p>
<h2>The HTML</h2>
<p>The first thing we&#8217;re going to do is toss in some nice HTML5 to wrap the menu in. The new nav element provides a beautifully semantic container for our menu.</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;nav&gt;</span>
  <span style="color: #808080; font-style: italic;">&lt;!-- all nav code here --&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>nav&gt;</span></pre></div></div>

</div>
<p></ br></p>
<p>Now let&#8217;s think about how our menu is going to be structured. We&#8217;re not simply going to have a list of links, each bar represents a link with an additional area below it. We&#8217;ll wrap these up in a div. Then within each div we&#8217;ll need a main link (the colored bar) and a list of sub-links (the white area). Assuming that this item will be thrown into a site that already has some default styling, let&#8217;s arbitrarily settle on h4 for the main link and a simple unordered list for the rest.</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;nav&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;menu-item&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h4</span>&gt;&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;</span>Portfolio<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h4</span>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- colored bar --&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- expanding white area --&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&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;</span>Web<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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>&gt;&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;</span>Print<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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>&gt;&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;</span>Other<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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>
  <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>nav&gt;</span></pre></div></div>

</div>
<p></ br></p>
<p>We can copy, paste and modify this section of code to make up the various pieces of our navigation menu. Here we have a Portfolio, About, and Contact section, each with three sub-links. Each section is given the same class (menu-item) so we can style them in one go. </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;nav&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;menu-item&quot;</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h4</span>&gt;&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;</span>Portfolio<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h4</span>&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>&gt;&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;</span>Web<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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>&gt;&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;</span>Print<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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>&gt;&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;</span>Other<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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>
    <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;menu-item&quot;</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h4</span>&gt;&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;</span>About<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h4</span>&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>&gt;&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;</span>History<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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>&gt;&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;</span>Meet The Owners<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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>&gt;&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;</span>Awards<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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>
    <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;menu-item&quot;</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h4</span>&gt;&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;</span>Contact<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h4</span>&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>&gt;&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;</span>Phone<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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>&gt;&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;</span>Email<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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>&gt;&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;</span>Location<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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>
    <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>nav&gt;</span></pre></div></div>

</div>
<p></ br></p>
<p>I wanted to focus on those areas first because they&#8217;re all the same, but remember that the top section is actually different, both in functionality and content. Instead of holding an unordered list, it will hold a paragraph. We&#8217;ll also add in a unique class to make it that much easier to target in our CSS.</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;nav&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;menu-item alpha&quot;</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h4</span>&gt;&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;</span>Home<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h4</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Lorem ipsum dolor sit...<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;menu-item&quot;</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h4</span>&gt;&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;</span>Portfolio<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h4</span>&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>&gt;&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;</span>Web<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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>&gt;&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;</span>Print<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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>&gt;&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;</span>Other<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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>
    <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;menu-item&quot;</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h4</span>&gt;&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;</span>About<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h4</span>&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>&gt;&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;</span>History<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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>&gt;&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;</span>Meet The Owners<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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>&gt;&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;</span>Awards<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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>
    <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;menu-item&quot;</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h4</span>&gt;&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;</span>Contact<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h4</span>&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>&gt;&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;</span>Phone<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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>&gt;&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;</span>Email<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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>&gt;&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;</span>Location<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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>
    <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>nav&gt;</span></pre></div></div>

</div>
<p></ br></p>
<p>With that, we&#8217;re already finished with the HTML. Though it&#8217;s not styled at all, the live preview perfectly showcases the hierarchy of our navigation menu. Here you can clearly see our menu beginning to take form.  </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/cssvertmenu-2.jpg" alt="screenshot" width="510"/></div>
<h2>Base Styles</h2>
<p>To start off our menu styling, we need to establish a few basics. First, we&#8217;ll clear the default margins and padding. We&#8217;ll be squishing the divs right up next to each other so any default browser spacing will ruin the layout.</p>
<p>Next, we&#8217;ll apply a simple color to the background so the white portions of our menu will stand out. Then we&#8217;ll toss in some basic font styles and add a slight shadow to the menu. Note that the margin set in the nav block centers the menu on the page, this is for display purposes only and should be removed when you want to nudge the menu into place.</p>
<p>Finally, we&#8217;ll add some dimensions and background color to the nav and menu-item selectors. Here&#8217;s the resulting code:</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: #933;">0px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</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;">#e5e5e7</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
nav <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Helvetica<span style="color: #00AA00;">,</span> Arial<span style="color: #00AA00;">,</span> <span style="color: #ff0000;">&quot;Lucida Grande&quot;</span><span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1.5</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: #808080; font-style: italic;">/*for display only*/</span>
  <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">200px</span><span style="color: #00AA00;">;</span>
  -webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">2px</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.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;">2px</span> <span style="color: #933;">2px</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.2</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
          box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">2px</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.2</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.menu-item</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;">200px</span><span style="color: #00AA00;">;</span> 
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<p>A this point, the preview is looking like we&#8217;ve done more harm than good, but fear not, it&#8217;ll start looking spiffy in no time.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/cssvertmenu-3.jpg" alt="screenshot" width="510"/></div>
<h2>Header Styles</h2>
<p>Now it&#8217;s time to style our h4 tags and turn them into the horizontal bars that we saw in our mockup. To do this, we just need a little padding and a background color. While we&#8217;re here we can begin to style the typography as well. We&#8217;re inheriting the font-family we set up before so we don&#8217;t need to re-type that. Instead we just need to set a size and weight. </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;">/*Menu Header Styles*/</span>
<span style="color: #6666ff;">.menu-item</span> h4 <span style="color: #00AA00;">&#123;</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-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">500</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">7px</span> <span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#a90329</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<p>As you can see in the image below, our link styles are still overriding some of the type styles we set here so we&#8217;ll need to go in and fix those next. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/cssvertmenu-4.jpg" alt="screenshot" width="510"/></div>
<h3>Header Links</h3>
<p>Obviously, the blue link is no good so we need to change that to white. We also want to ditch any text decoration (the underline). Now, we could stop here but the default behavior would be that only the text is clickable and not the whole bar, which is not ideal. To make the entire bar a link, we set the display property to block and the width to the full menu size (200px).</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;">.menu-item</span> h4 a <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">white</span><span style="color: #00AA00;">;</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: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">200px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<p>Now our colored bar is looking much better. Here&#8217;s the preview:</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/cssvertmenu-5.jpg" alt="screenshot" width="510"/></div>
<h3>Making It Pretty</h3>
<p>If you want to stick with something simple, you can skip this step, but I&#8217;m going to trudge on and add a few more visual tweaks. Go back and modify that header style block to include a gradient and some very subtle borders. You likely won&#8217;t even be able to spot the borders until the menu is closed, but combined with the gradients they&#8217;ll really help differentiate each section so they don&#8217;t all look like one big block. </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;">/*Menu Header Styles*/</span>
<span style="color: #6666ff;">.menu-item</span> h4 <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</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: #000000; font-weight: bold;">border-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">255</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: #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-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">500</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">7px</span> <span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
&nbsp;
  <span style="color: #808080; font-style: italic;">/*Gradient*/</span>
  <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#a90329</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Old browsers */</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;">#a90329</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#8f0222</span> <span style="color: #933;">44%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#6d0019</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;">#a90329</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> color-stop<span style="color: #00AA00;">&#40;</span><span style="color: #933;">44%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#8f0222</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;">#6d0019</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;">#a90329</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#8f0222</span> <span style="color: #933;">44%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#6d0019</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;">#a90329</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#8f0222</span> <span style="color: #933;">44%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#6d0019</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;">#a90329</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#8f0222</span> <span style="color: #933;">44%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#6d0019</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;">#a90329</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#8f0222</span> <span style="color: #933;">44%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#6d0019</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;">'#a90329'</span><span style="color: #00AA00;">,</span> endColorstr<span style="color: #00AA00;">=</span><span style="color: #ff0000;">'#6d0019'</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></ br></p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/cssvertmenu-6.jpg" alt="screenshot" width="510"/></div>
<h3>Hover Styles</h3>
<p>Next we&#8217;re going to add a subtle hover style to the bar links. All we&#8217;re going to do is tweak the colors on the gradient a little so they get brighter when you hover.</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;">.menu-item</span> h4<span style="color: #3333ff;">:hover </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;">#cc002c</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Old browsers */</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;">#cc002c</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#6d0019</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;">#cc002c</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;">#6d0019</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;">#cc002c</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#6d0019</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;">#cc002c</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#6d0019</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;">#cc002c</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#6d0019</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;">#cc002c</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#6d0019</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;">'#cc002c'</span><span style="color: #00AA00;">,</span> endColorstr<span style="color: #00AA00;">=</span><span style="color: #ff0000;">'#6d0019'</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></ br></p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/cssvertmenu-7.jpg" alt="screenshot" width="510"/></div>
<h2>Paragraph Styles</h2>
<p>Remember that the first item in our menu holds a paragraph and not an unordered list, so next we&#8217;ll attack this to get it looking nice. The lists will take a sizable chunk of code but the paragraph hardly requires anything. Just define the size and color, then toss in some padding. </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;">/*First Item Styles*/</span>
<span style="color: #6666ff;">.alpha</span> p <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">13px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">8px</span> <span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#aaa</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<p>The top section is now looking great! Both the header bar and the paragraph are exactly where we need them to be.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/cssvertmenu-8.jpg" alt="screenshot" width="510"/></div>
<h2>Unordered List Styles</h2>
<p>There&#8217;s a ton of stuff that we need to do to get these lists straightened out. Let&#8217;s switch things up a bit and look at the code first, then I&#8217;ll walk you through it.</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;">/*ul Styles*/</span>
<span style="color: #6666ff;">.menu-item</span> ul <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-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">13px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">30px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">list-style-type</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</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;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.menu-item</span> ul a <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#aaa</span><span style="color: #00AA00;">;</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: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">200px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*li Styles*/</span>
<span style="color: #6666ff;">.menu-item</span> li <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#eee</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.menu-item</span> li<span style="color: #3333ff;">:hover </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;">#eee</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<p>As you can see, the first block targets the unordered list as a whole unit. Here I set some basic sizing and font styles and removed the bullet point by setting list-style-type to none. </p>
<p>Next I targeted the links specifically. I moved them over, removed the underlines, set the color and performed the same display:block trick that we saw before to make the clickable area larger. </p>
<p>To finish things off, I applied a few custom styles to the list items themselves. The bottom border creates a separation between each item and the hover style changes the background. Here&#8217;s the result of our labor, our menu is almost finished!</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/cssvertmenu-9.jpg" alt="screenshot" width="510"/></div>
<h2>Collapse And Animate</h2>
<p>Up to this point, we&#8217;ve kept our menu opened up so that we could see it while we style the elements within. Now that we know that all of our visual styles are exactly like we want them, it&#8217;s time to collapse each section and then set them up to pop open on hover.</p>
<p>By default, browsers will set the height of those unordered lists to auto, meaning they&#8217;ll be just tall enough to hold all of the content within. To collapse the menu sections so that only the bars show, we can target those unordered lists and set the height to 0. Notice that we&#8217;re leaving the paragraph alone, this will ensure that our top section is always open.</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;">/*ul Styles*/</span>
<span style="color: #6666ff;">.menu-item</span> ul <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-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">13px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</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;">0px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*Collapses the menu*/</span>
  <span style="color: #000000; font-weight: bold;">list-style-type</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</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;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<p>Now our menu is much shorter and doesn&#8217;t eat up so much space. You can also finally see the benefit of those gradients and borders that we implemented before. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/cssvertmenu-10.jpg" alt="screenshot" width="510"/></div>
<h3>Animating the Transition</h3>
<p>Next we&#8217;ll want to open these menus back up on hover, but before we do that, let&#8217;s set up an animation so the transition is nice and gradual. Make sure you insert the various browser extensions and target the height 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: #808080; font-style: italic;">/*ul Styles*/</span>
<span style="color: #6666ff;">.menu-item</span> ul <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-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">13px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</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;">0px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">list-style-type</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</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;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
&nbsp;
  <span style="color: #808080; font-style: italic;">/*Animation*/</span>
  -webkit-transition<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">height</span> 1s ease<span style="color: #00AA00;">;</span>
     -moz-transition<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">height</span> 1s ease<span style="color: #00AA00;">;</span>
       -o-transition<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">height</span> 1s ease<span style="color: #00AA00;">;</span>
      -ms-transition<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">height</span> 1s ease<span style="color: #00AA00;">;</span>
          transition<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">height</span> 1s ease<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<h3>Expanding on Hover</h3>
<p>All that&#8217;s left to do now is make it so that when you hover, the ul expands. This is tricky though so be careful. Your instinct may be to do something like &#8220;ul:hover&#8221; but that&#8217;s not what we want. Instead, we want to make it so that you can hover anywhere in that menu item, either in the bar or the unordered list. However, the item that we want expanded is still only the ul. Here&#8217;s what our selector looks like:</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;">.menu-item</span><span style="color: #3333ff;">:hover </span>ul <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">93px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<p>Sometimes reading a selector backwards is helpful when trying to figure out what it does. This tells our browser to set a height of 93px to our unordered lists when a .menu-item is hovered over.  </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/cssvertmenu-11.jpg" alt="screenshot" width="510"/></div>
<p>One important thing to note here is that we can&#8217;t just set the height to auto because for some reason this  disables the animation. If you don&#8217;t want the animation, a height of auto is much more flexible and allows you to vary the number of sub-menu items. If you want to do this with the animation, you&#8217;ll have to target the height for each individually. </p>
<h2>See It In Action</h2>
<p>Our menu is now complete. Be sure to kick the tires in the demo to see how it all works. I&#8217;ll also throw in a link to the completed code so you can have a look at it all together.</p>
<p><strong>Demo:</strong> <a href="http://designshack.net/tutorialexamples/verticalnav/index.html">Launch Demo</a><br />
<strong>See the Code:</strong> Check out the HTML and CSS on <a href="http://tinkerbin.com/DDeWwqTq">Tinkerbin</a></p>
<h2>Conclusion</h2>
<p>I hope you enjoyed this walkthrough of building an animated vertical navigation menu. In implementation, it&#8217;s very similar to the <a href="http://designshack.net/articles/css/downloadbutton/">animated download buttons</a> that we built the other day so you should really be getting the hang of hiding and showing content using pure CSS. </p>
<p>Look out for an even better version of this menu to pop up on our brand new sister site, <a href="http://designcurate.com/">Design Curate</a>. You&#8217;ll find a ton of great freebies there that you can download and implement in your projects today. </p>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/css/verticalaccordionav/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Weekly Freebies: 30 Amazing Free Fonts From Behance</title>
		<link>http://designshack.net/articles/freebies/freebehancefonts/</link>
		<comments>http://designshack.net/articles/freebies/freebehancefonts/#comments</comments>
		<pubDate>Sat, 04 Feb 2012 06:00:15 +0000</pubDate>
		<dc:creator>Joshua Johnson</dc:creator>
				<category><![CDATA[Freebies]]></category>
		<category><![CDATA[behance]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[free]]></category>

		<guid isPermaLink="false">http://designshack.net/?p=29191</guid>
		<description><![CDATA[Welcome to another installment of our weekly collection of awesome design freebies from around the web. This time we have a real treat: thirty gorgeous free fonts from Behance. There&#8217;s a ton of great work on that site and if you know where to look you can score some spectacular finds. Peruse the options below [...]]]></description>
			<content:encoded><![CDATA[<p>Welcome to another installment of our weekly collection of awesome design freebies from around the web. This time we have a real treat: thirty gorgeous free fonts from Behance. There&#8217;s a ton of great work on that site and if you know where to look you can score some spectacular finds.</p>
<p>Peruse the options below and download your favorites, then feel free to leave a comment to let us know what you think. </p>
<p><span id="more-29191"></span><br />
<em>Like the article? Be sure to subscribe to our <a href="feed://feeds.feedburner.com/designshack">RSS feed</a> and follow us on <a href="http://twitter.com/designshack">Twitter</a> to stay up on recent content.</em></p>
<h3><a href="http://www.behance.net/gallery/Poly-a-free-web-font/2890189">Poly – free web font</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-behancefonts-1.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.behance.net/gallery/Accenta-Free-Display-Typeface/2624657">Accent™ Free Display Typeface</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-behancefonts-2.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.behance.net/gallery/Otama-ep-Typeface/1100475">Otama e.p. Typeface</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-behancefonts-3.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.behance.net/gallery/Mosaic-Leaf-Free-Font/2473533">Mosaic Leaf Free Font</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-behancefonts-4.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.behance.net/gallery/Bigmouth-Font/867288">Bigmouth Font</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-behancefonts-5.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.behance.net/gallery/Bispo-free-font/3024777">Bispo free font</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-behancefonts-6.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.behance.net/gallery/Sketchetik-(FREE)/389966">Sketchetik (FREE)</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-behancefonts-7.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.behance.net/gallery/Infinity/1126535">Infinity</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-behancefonts-8.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.behance.net/gallery/Kilogram/414472">Kilogram</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-behancefonts-9.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.behance.net/gallery/Origram-Free-Font/2818175">Origram Free Font</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-behancefonts-10.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.behance.net/gallery/Adamas-Regular-Free-font/2849429">Adamas Regular &#8211; Free font</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-behancefonts-11.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.behance.net/gallery/PLSTK-Free-Font/3010257">PLSTK &#8211; Free Font</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-behancefonts-12.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.behance.net/gallery/Manteka/2846011">Manteka</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-behancefonts-13.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.behance.net/gallery/Lorena-aFree-Font/2576379">Lorena —Free Font</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-behancefonts-14.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.behance.net/gallery/MOLESK-font-(free)/2380302">MOLESK font (free)</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-behancefonts-15.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.behance.net/gallery/Five-Minutes-Free-Font/890532">Five Minutes / Free Font</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-behancefonts-16.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.behance.net/gallery/GlideA-Font/239625">Glide® Font</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-behancefonts-17.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.behance.net/gallery/Deibi-v10-free-font/346023">Deibi v1.0 &#8211; free font</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-behancefonts-18.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.behance.net/gallery/Novecento-font-family-32-styles-12-Opentype-features/2193487">Novecento font family: 32 styles, 12 Opentype features</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-behancefonts-19.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.behance.net/gallery/GRN-Burgy-Free-Download/2353042">GRN Burgy [Free Download]</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-behancefonts-20.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.behance.net/gallery/CODE-free-font/530336">CODE free font</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-behancefonts-21.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.behance.net/gallery/TETRAA-FREE-FONT/2119948">Tetra</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-behancefonts-22.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.behance.net/gallery/Free-font-VALa/242370">Free font VAL™</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-behancefonts-23.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.behance.net/gallery/Hexa-(free-font)/2759421">Hexa (free font)</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-behancefonts-24.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.behance.net/gallery/Urbe-a-Free-Typeface/2817471">Urbe – Free Typeface</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-behancefonts-25.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.behance.net/gallery/Tall-Boy/2378028">Tall Boy</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-behancefonts-26.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.behance.net/gallery/Construthinvism-Free-Font/2436695">Construthinvism &#8211; Free Font</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-behancefonts-27.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.behance.net/gallery/Typeface-Adec20-(free)/2075950">Typeface Adec2.0 (free)</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-behancefonts-28.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.behance.net/gallery/Absinthe-Free-Font/1394611">Absinthe &#8211; Free Font</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-behancefonts-29.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.behance.net/gallery/Dekar-free-font/546027">Dekar free font</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-behancefonts-30.jpg" alt="screenshot" width="510"/></div>
<h2>Love it? Share It!</h2>
<p>If you enjoyed this week’s collection of freebies, share the love and send out a link on your favorite sites. Here’s a convenient snippet for you to copy and paste as you please!</p>
<p><strong>30 Amazing Free Fonts from Behance:</strong> <a href="http://goo.gl/ox9dI">http://goo.gl/ox9dI</a></p>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/freebies/freebehancefonts/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>5 Online Playgrounds for HTML, CSS and JavaScript Compared</title>
		<link>http://designshack.net/articles/css/5-online-playgrounds-for-html-css-and-javascript-compared/</link>
		<comments>http://designshack.net/articles/css/5-online-playgrounds-for-html-css-and-javascript-compared/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 06:00:45 +0000</pubDate>
		<dc:creator>Joshua Johnson</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://designshack.net/?p=29124</guid>
		<description><![CDATA[Local coding environments are great, but it&#8217;s often the case that I don&#8217;t want to crack open Espresso and spend a few minutes setting up to code when all I really want is to test out an idea or work on a bug. Also, sharing options for most local coding apps are limited and typically [...]]]></description>
			<content:encoded><![CDATA[<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/fiddlers-14.jpg" alt="screenshot" width="510"/></div>
<p>Local coding environments are great, but it&#8217;s often the case that I don&#8217;t want to crack open Espresso and spend a few minutes setting up to code when all I really want is to test out an idea or work on a bug. Also, sharing options for most local coding apps are limited and typically require integrating an outside app like Dropbox.</p>
<p>Online playgrounds or sandboxes such as jsFiddle solve this problem by providing you with an instantly ready coding environment for you to begin experimenting in as soon as the page loads. These tools let you combine CSS, HTML and often even JavaScript to create and share coding examples. I&#8217;m completely addicted to these things and have extensively tested every one I can get my hands on. Today I&#8217;ll go over my five favorites and discuss not only why what I like about each option, but also where they fall short. </p>
<p><span id="more-29124"></span><br />
<em>Like the article? Be sure to subscribe to our <a href="feed://feeds.feedburner.com/designshack">RSS feed</a> and follow us on <a href="http://twitter.com/designshack">Twitter</a> to stay up on recent content.</em></p>
<h2><a href="http://cssdesk.com/">CSSDesk</a></h2>
<div class="tutorialimage"><a href="http://cssdesk.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/fiddlers-2.jpg" alt="screenshot" width="510"/></a></div>
<p>I&#8217;ll start with CSSDesk because it&#8217;s one of the oldest on this list. It&#8217;s been around for years now as a quiet and obscure little tool that is extremely helpful for playing with basic web code. CSSDesk is a very simple tool that focuses purely on HTML and CSS. </p>
<h3>What I Like About CSSDesk</h3>
<p>There are a lot of things that I just love about CSS Desk. There are three main sections: HTML, CSS and live preview, the sizes of which can all be easily tweaked with a click and drag. I like that you can easily see everything you need in one simple view. There&#8217;s no effort or setup here, just load the page and start creating.</p>
<p>There&#8217;s also basic syntax highlighting just like all of the other tools on this list. However, one fairly unique feature that you don&#8217;t often see in these types of tools is line numbers. It&#8217;s such a simple addition but I tend to like line numbers so I really appreciate the inclusion.  </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/fiddlers-7.jpg" alt="screenshot" width="510"/></div>
<p>The toolbar features are pretty cool as well, providing some options that you simply don&#8217;t find other places. In addition to the standard sharing feature, you also have the option to download what you just built. Further, there&#8217;s a set of default tiling background textures that are applied if you don&#8217;t manually override them. These are fun if you&#8217;re just building a button or widget of some kind and want something other than the typical plain white background.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/fiddlers-6.jpg" alt="screenshot" width="510"/></div>
<h3>What I Don&#8217;t Like About CSSDesk</h3>
<p>Honestly, there&#8217;s not much to dislike about this one. Sure, it&#8217;s simple and doesn&#8217;t have some of the fancy features the other options have, but that&#8217;s also what makes it great. I hardly ever use this one anymore but every time I do it&#8217;s so nice I think I should stop by more often.</p>
<p>The biggest downside for hardcore coders is the lack of JavaScript support. If this is a deal breaker for you, try checking out one of the other options.</p>
<h2><a href="http://jsbin.com/">JS Bin</a></h2>
<div class="tutorialimage"><a href="http://jsbin.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/fiddlers-1.jpg" alt="screenshot" width="510"/></a></div>
<p>JS Bin is another popular place to tinker around with your code. The design of this app is quite minimal and really allows you to focus on the code. By default, the page only shows the HTML and live preview panes, but you can easily add JavaScript to that as well. </p>
<h3>What I Like About JS Bin</h3>
<p>There are quite a few nice features on JS Bin. The first thing that I found myself appreciating is the fact that refreshing the page doesn&#8217;t kill your work. The preview updates automatically but for those rare times when you do need a manual refresh, it&#8217;s nice that your first instinct (Command-R) doesn&#8217;t result in the accidental loss of an hour&#8217;s worth of tinkering.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/fiddlers-8.jpg" alt="screenshot" width="510"/></div>
<p>As with CSSDesk, you save, share and download your work. The place where this obviously pulls ahead though is the JavaScript implementation. You can obviously enter your own JS but as a bonus you can choose to include popular libraries like jQuery. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/fiddlers-9.jpg" alt="screenshot" width="510"/></div>
<p>Another cool feature is the ability to control which panes you see by manipulating the URL. For instance, &#8220;http://jsbin.com/#javascript,html,live&#8221; will get you all three panes while &#8220;http://jsbin.com/#html,live&#8221; will just get you two.</p>
<h3>What I Don&#8217;t Like About JS Bin</h3>
<p>To be honest, JS Bin is my least favorite option on this list. It&#8217;s not bad, but it definitely lacks the charm of the others. One thing that always gets me is that there&#8217;s no dedicated place for CSS, forcing you to embed it into your HTML. This works just fine, but it&#8217;s not as nice as the intentional separation seen in the other options.</p>
<h2><a href="http://jsfiddle.net/">jsFiddle</a></h2>
<div class="tutorialimage"><a href="http://jsfiddle.net/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/fiddlers-3.jpg" alt="screenshot" width="510"/></a></div>
<p>jsFiddle has completely taken off in the past few months to a year and is probably the most popular option on this list at the moment. And for good reason, this is one amazing app. Let&#8217;s face it, once you dig into jsFiddle, you may never look at any of the other options again. </p>
<h3>What I Like About jsFiddle</h3>
<p>There are a ton of great things to cover in my list of reasons why you should use jsFiddle. First up is the layout. There are four panels (HTML, CSS, JavaScript and preview) so you can see everything you need to at once and resize each area on the fly. The layout system here feels really flexible and is actually sort of fun to play with.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/fiddlers-10.jpg" alt="screenshot" width="510"/></div>
<p>While we&#8217;re discussing panels, you can customize the CSS and JavaScript panels to utilize your favorite third party tools. You&#8217;ll find support for the Sass SCSS syntax and CoffeeScript. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/fiddlers-11.jpg" alt="screenshot" width="510"/></div>
<p>jsFiddle lets you create a login and view a dashboard of your past saved work. There are a ton of menu options and tools once you&#8217;ve saved a fiddle, my favorites are the ability to quickly create a fork and the option to automatically tidy up your messy code structure.   </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/fiddlers-12.jpg" alt="screenshot" width="510"/></div>
<p>In addition to the panel customization options, the sidebar has a bunch of other great features as well. For instance, you can quickly add both any major libraries that you want to include (jQuery, MooTools, etc.) and your own JavaScript/CSS resources. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/fiddlers-13.jpg" alt="screenshot" width="510"/></div>
<p>One last amazing jsFiddle option that I only just discovered the other day: you can embed fiddles into a webpage. This option is found under the share menu and is a great alternative to other code embedding services.</p>
<h3>What I Don&#8217;t Like About jsFiddle</h3>
<p>My main beef with jsFiddle is the lack of an auto update option for the preview. Once you&#8217;ve used all the other options on this list and experienced the joys of auto update, it&#8217;s hard to put up with manual refreshes every few seconds in jsFiddle.</p>
<p>As far as other features go, it&#8217;s the best on the list but that one annoyance often drives me elsewhere if I just want to bust out a quick test. Keyboard shortcuts help, but they&#8217;re still not as nice as something automatic. </p>
<h2><a href="http://dabblet.com/">Dabblet</a></h2>
<div class="tutorialimage"><a href="http://dabblet.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/fiddlers-4.jpg" alt="screenshot" width="510"/></a></div>
<p>Dabblet is a fairly new kid on the block in this genre. Like CSSDesk, it focuses on only HTML and CSS with no JavaScript. However, don&#8217;t count it out because it brings some serious innovation to the table that you won&#8217;t find in any other editor. </p>
<h3>What I Like About Dabblet</h3>
<p>By default, Dabblet is split into three tabs: CSS &#038; Result, HTML &#038; Result and Result. This provides flexibility and focus while allowing you to always keep an eye on the result.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/fiddlers-15.jpg" alt="screenshot" width="510"/></div>
<p>You can change things up with the controls shown below. The split can be vertical, horizontal or taken out completely. There&#8217;s also an interesting &#8220;behind code&#8221; mode where your result is simply the background for the coding area. Notice there&#8217;s also a message about using prefix-free. I use Dabblet all the time and never noticed this until just now! This means that you don&#8217;t have to use crazy vendor prefixes and can code the simple defaults, the hidden JavaScript will make sure your browsers interprets it correctly. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/fiddlers-14.jpg" alt="screenshot" width="510"/></div>
<p>Dabblet has some great saving options as well such as &#8220;save anonymously.&#8221; It also links to your GitHub account, which coding nerds like will love. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/fiddlers-16.jpg" alt="screenshot" width="510"/></div>
<p>My favorite Dabblet feature is the super slick hover effect integration in the CSS. They&#8217;re easier to show that describe. Here two few examples:</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/fiddlers-17.jpg" alt="screenshot" width="510"/></div>
<p>As you can see, hovering over certain bits of CSS brings up these little tooltips that are really great. You can get previews for fonts, colors, sizes, and even images.</p>
<h3>What I Don&#8217;t Like About Dabblet</h3>
<p>Dabblet is a bit quirky from a visual perspective, you either love it or hate it. I personally really enjoy using it but really wish that I had more control over the panel size. Having an auto 50/50 split is great, but I should be able to manually adjust that however I choose. </p>
<p>As far as I know, there&#8217;s also no way to view your HTML and CSS at the same time, which is a little annoying if you&#8217;re used to options like jsFiddle where you can keep an eye on everything at once. </p>
<h2><a href="http://tinkerbin.com/">Tinkerbin</a></h2>
<div class="tutorialimage"><a href="http://tinkerbin.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/fiddlers-5.jpg" alt="screenshot" width="510"/></a></div>
<p>Tinkerbin is the closest alternative to jsFiddle that I&#8217;ve found. Though it doesn&#8217;t have all of the fancy features found in jsFiddle, it has a few tricks of its own that are really nice.</p>
<h3>What I Like About Tinkerbin</h3>
<p>The default panel layout on Tinkerbin is probably my favorite on this entire list. It&#8217;s a very logical layout that puts the code on the left and a nice big auto-updating preview on the right. The HTML, CSS and JavaScript sections are all stacked on top of each other, with optional tabs that allow you to focus on just one of these. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/fiddlers-18.jpg" alt="screenshot" width="510"/></div>
<p>Further, Tinkerbin supports even more alternate syntax options than jsFiddle. You can choose HTML or HAML; CSS, SCSS (with Compass), the old SASS syntax or LESS; and JavaScript or CoffeeScript. Needless to say, if you dig preprocessors, this is the option for you.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/fiddlers-19.jpg" alt="screenshot" width="510"/></div>
<p>Tinkerbin is the only option that allows you to swap out your preview for a nice, extensive &#8220;View Source&#8221; window.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/fiddlers-20.jpg" alt="screenshot" width="510"/></div>
<h3>What I Don&#8217;t Like About Tinkerbin</h3>
<p>Even more so than Dabblet, the Tinkerbin layout is completely rigid. Sure, I like the default setup the best, but sometimes I want to make that preview wider and I simply don&#8217;t have the option here.</p>
<p>Further, the saving options aren&#8217;t the best. There&#8217;s no account setup, dashboard, GitHub integration, etc. You simply save your experiments to a shortened URL. </p>
<h2>Conclusion</h2>
<p>By now I&#8217;m sure you can see the benefits of having a few of these sites bookmarked. I encourage you to experiment as often as possible with new ideas to keep yourself fresh and these services provide an awesome way to do it.</p>
<p>I hope this review has served as a helpful look into the details of each of these solutions. You should now know not only what makes each option unique but also where each falls short. This will help you make an informed decision about which one or two to primarily focus on.</p>
<p>I personally bounce back and forth with all of them fairly regularly but lately I&#8217;ve been hanging out mostly in jsFiddle, Dabblet and Tinkerbin. Which of these is your favorite and why?</p>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/css/5-online-playgrounds-for-html-css-and-javascript-compared/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>10 Awful Client Cliches That Make Every Designer Cringe</title>
		<link>http://designshack.net/articles/business-articles/10-awful-client-cliches-that-make-every-designer-cringe/</link>
		<comments>http://designshack.net/articles/business-articles/10-awful-client-cliches-that-make-every-designer-cringe/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 06:00:18 +0000</pubDate>
		<dc:creator>Joshua Johnson</dc:creator>
				<category><![CDATA[Business]]></category>

		<guid isPermaLink="false">http://designshack.net/?p=29065</guid>
		<description><![CDATA[This is the third part in our series all about making fun of design related clichés that drive us all crazy. We&#8217;ve already picked on designers plenty with 5 Former Design Trends That Aren’t Cool Anymore and 5 Cliché Logo Design Trends to Avoid, now it&#8217;s time to turn around and give some attention to [...]]]></description>
			<content:encoded><![CDATA[<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/clientcliches-0.jpg" alt="screenshot" width="510"/></div>
<p>This is the third part in our series all about making fun of design related clichés that drive us all crazy. We&#8217;ve already picked on designers plenty with <a href="http://designshack.net/articles/graphics/5-former-design-trends-that-arent-cool-anymore-so-stop-using-them/">5 Former Design Trends That Aren’t Cool Anymore</a> and <a href="http://designshack.net/articles/graphics/5-cliche-logo-design-trends-to-avoid/">5 Cliché Logo Design Trends to Avoid</a>, now it&#8217;s time to turn around and give some attention to all the crazy things that clients say to their designers.</p>
<p>We put out the word on Twitter and asked for some of the worst things that you hear again and again from clients. The following are some of our favorites. </p>
<p><span id="more-29065"></span><br />
<em>Like the article? Be sure to subscribe to our <a href="feed://feeds.feedburner.com/designshack">RSS feed</a> and follow us on <a href="http://twitter.com/designshack">Twitter</a> to stay up on recent content.</em></p>
<h2>Make It Pop</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/clientcliches-1.jpg" alt="screenshot" width="510"/></div>
<p>&#8220;Make it pop&#8221; has to be the most cliché overused line in design history. I&#8217;m not sure who decided that this is the best way to request more emphasis on a given element, but somehow it made its way into the official client handbook. </p>
<p>I swear, some people are convinced that there is a big fat &#8220;POP&#8221; button in Photoshop just waiting to be pressed. &#8220;You mean you didn&#8217;t press the pop button? Back to your lab minion!&#8221; </p>
<p>One of the biggest problems with this phrase is how most clients want the &#8220;pop&#8221; to be executed: via a burst, crazy ugly colors or some stock photo that has zero relevance to the communication in question. If you absolutely must tell your designer that you want something to pop, at least consider letting him/her decide how that goal should be accomplished.  </p>
<h2>Let Your Creative Juices Flow</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/clientcliches-2.jpg" alt="screenshot" width="510"/></div>
<p>Seriously, can you think of a more ridiculous thing to say to a designer? I submit that there isn&#8217;t one. What are these juices and why are they so&#8230; juicy? It&#8217;s as if we expect designers to begin secreting some strange, fruity liquid that upon application turns boring old Helvetica into something more exciting like Comic Sans. &#8220;Go go gadget creative juices!&#8221;</p>
<p>I&#8217;d even go a step further and say that discussing someone&#8217;s juices sounds more like sexual harassment than creative feedback. Say this a few times to your designer and the only thing that will be flowing is the copious amounts of alcohol he or she has to consume to forget that you ever uttered such an abomination. </p>
<h2>Feel Free to Just Be Creative</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/clientcliches-3.jpg" alt="screenshot" width="510"/></div>
<p>Designers love it when you tell them to be creative, seriously, do it every chance you get. While you&#8217;re at it, the next time you get in a cab, tell the driver to feel free to just&#8230; drive. </p>
<p>The assumption here is that you have to give a designer permission to do something creative. Isn&#8217;t that what you hired them for? If you neglected to provide this nugget of wisdom would the designer cease all creative juice secretion and provide you with a Word Document set in Times New Roman?</p>
<h2>Take It To The Next Level</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/clientcliches-4.jpg" alt="screenshot" width="510"/></div>
<p>Feedback like this is as much the fault of designers as it is clients. Too many designers become so emotionally connected to their work that they simply can&#8217;t handle criticism without feeling like they&#8217;re undergoing a personal attack. As a result, clients have had to resort to &#8220;nicer&#8221; ways to tell us that our work sucks. &#8220;This is great, but let&#8217;s take it to the next level.&#8221; Translation: &#8220;I don&#8217;t like it.&#8221;</p>
<p>&#8220;Take it to the next level&#8221; is an empty phrase to designers (plus, it sounds like you&#8217;re asking to move in). They&#8217;ve given you their best guess at what you want, now it&#8217;s time to say exactly what&#8217;s not working and why so you can avoid thirty rounds of guessing game artwork changes. Give open, honest and <em>professional</em> feedback that cuts to the heart of the issue. If your designer can&#8217;t take it, then it might be time for a new one. </p>
<h2>This Project Will Get You Great Exposure</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/clientcliches-5.jpg" alt="screenshot" width="510"/></div>
<p>There&#8217;s nothing better than a client trying to convince you to take a low or even nonexistent rate because the project will surely earn you some great exposure or provide an awesome portfolio piece. While you&#8217;re at it, the next time you go into a restaurant, ask the chef to make you some free food in exchange for you telling all three of your close friends that it was delicious.</p>
<p>There are in fact some projects that are worth it solely for the exposure they provide. The best part is though that those types of clients always have a nice big budget!</p>
<h2>This Project Will Lead to Paid Work</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/clientcliches-6.jpg" alt="screenshot" width="510"/></div>
<p>Once again, I beg you to go and try this with any other product or service. Perhaps I&#8217;ll walk into the Apple Store and ask for a free iPad with the guarantee that if I like it, I&#8217;ll actually purchase some Apple products in the future. Somehow I don&#8217;t think the folks at the Genius Bar will go for it. </p>
<p>For some reason designers exude some sort of &#8220;sucker&#8221; hormone that attracts penniless zombies looking for a free meal. The reality here is basically the same as the last time, if you don&#8217;t have any money, you can&#8217;t hire a professional. It&#8217;s simply a matter of respect. If you really stop and think about it you&#8217;ll no doubt realize that designers are real people trying to pay their mortgages and put food on the table for their families. Empty client promises don&#8217;t buy Happy Meals. </p>
<h2>I&#8217;ll Send You a Fax</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/clientcliches-7.jpg" alt="screenshot" width="510"/></div>
<p>Sorry McFly, I don&#8217;t know what time warp you just stepped out of but turn down the Walkman and look around. No one uses a fax machine anymore. In fact, if you&#8217;re working with a freelance designer, there&#8217;s a good chance that they don&#8217;t even have a working phone line in their house.</p>
<p>Email is fast, instant and free. If you need to send signed documents, use a scanner or <a href="http://www.tuaw.com/2011/08/10/mac-101-capture-your-signature-using-os-x-lions-preview-app/">your computer&#8217;s camera</a>. If you refuse to purchase a scanner, then you&#8217;ll completely understand when all of the designers that you approach refuse to purchase a fax machine.</p>
<h2>We Want It To Look Exactly Like This Website</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/clientcliches-8.jpg" alt="screenshot" width="510"/></div>
<p>It&#8217;s amazing how poorly this knowledge is disseminated in the general public, but designers aren&#8217;t actually supposed to just rip off the work of others. It seems simple enough right? You only have to take the color scheme, layout, buttons and graphics from this website, we can put our own logo on it and it&#8217;ll be different!</p>
<p>As <a href="http://venturebeat.com/2012/01/28/cant-look-away/">Curebit just found out</a> after stealing the Highrise site from 37signals, this strategy doesn&#8217;t work out so well in the long run and can lead to some massive PR headaches. </p>
<h2>Make The Logo Bigger</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/clientcliches-9.jpg" alt="screenshot" width="510"/></div>
<p>This one is so popular that it has spurred countless Internet memes, from <a href="http://www.makemylogobiggercream.com/">Make My Logo Bigger Cream</a> to the <a href="http://www.youtube.com/watch?v=5AxwaszFbDw">Make the Logo Bigger Song</a>.</p>
<p>I&#8217;m not going to tell you that there is never a case when your logo needs to be bigger, because such instances do exist, just know that if you request it, your snarky designer is likely to send you back one of the links above. </p>
<h2>It Won&#8217;t Take Long</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/clientcliches-10.jpg" alt="screenshot" width="510"/></div>
<p>For some reason, non-designers often imagine that they are qualified to make accurate time estimates for how long a design project will take. Experienced designers long ago learned to ignore any late night client phone calls because they inevitably lead to a request for a quick fix to a website or brochure. Five hours and nine phone calls later as the sun is rising the &#8220;quick fix&#8221; is finally wrapped up in time to start a new day of work.</p>
<p>Even worse than the quick changes to existing projects are the judgements received when a designer tells a potential client just how many hours of work to expect on a project. &#8220;It&#8217;s just a logo! You&#8217;re a professional, I don&#8217;t see why this should take you more than an hour.&#8221; Some clients are convinced that logos just pop out of Adobe Illustrator if you know the right keyboard shortcuts. </p>
<h2>What Do Your Clients Say?</h2>
<p>It&#8217;s always fun to gather around the metaphorical water cooler and jest about the lighter side of our profession. Join in the fun and leave a comment below with some of your client horror stories. Have you heard any of the phrases above lately? What other client clichés can you think of?</p>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/business-articles/10-awful-client-cliches-that-make-every-designer-cringe/feed/</wfw:commentRss>
		<slash:comments>48</slash:comments>
		</item>
		<item>
		<title>Why Almost Is a Dirty Word in Design</title>
		<link>http://designshack.net/articles/graphics/why-almost-is-a-dirty-word-in-design/</link>
		<comments>http://designshack.net/articles/graphics/why-almost-is-a-dirty-word-in-design/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 06:00:53 +0000</pubDate>
		<dc:creator>Joshua Johnson</dc:creator>
				<category><![CDATA[Graphics]]></category>

		<guid isPermaLink="false">http://designshack.net/?p=29024</guid>
		<description><![CDATA[Almost. It seems innocent enough right? Surely there&#8217;s no evil lurking in those six letters. You might even see this as a positive word. However, as a designer, you should always be on guard when this word can describe certain aspects of your work. Read on to see why &#8220;almost&#8221; can be a dirty word [...]]]></description>
			<content:encoded><![CDATA[<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/dirtyalmost-0.jpg" alt="screenshot" width="510"/></div>
<p>Almost. It seems innocent enough right? Surely there&#8217;s no evil lurking in those six letters. You might even see this as a positive word. However, as a designer, you should always be on guard when this word can describe certain aspects of your work.</p>
<p>Read on to see why &#8220;almost&#8221; can be a dirty word and how it just might be bringing down the quality of your work. We&#8217;ll also take a look at two underlying foundations of good design that provide ready solutions to solve your &#8220;almost&#8221; design woes. </p>
<p><span id="more-29024"></span><br />
<em>Like the article? Be sure to subscribe to our <a href="feed://feeds.feedburner.com/designshack">RSS feed</a> and follow us on <a href="http://twitter.com/designshack">Twitter</a> to stay up on recent content.</em></p>
<h2>Secrets Hidden in Plain Sight</h2>
<p>Design is an interesting topic. It&#8217;s something that, by definition, has to be innate and intuitive to a certain degree. Effective design is pleasing and logical to the beholder, so in theory, designing for mass appeal should be something that almost anyone can do because it leverages our common ideas towards aesthetics and information organization.</p>
<div class="pullquote-r">
&#8220;Lots of people know good design when they see it, but they lack the fundamental design education to point out exactly what separates the good from the bad.&#8221;
</div>
<p></ br></p>
<p>The fascinating thing is, finding and identifying those commonalities is a lot more difficult than you&#8217;d think. Lots of people know good design when they see it, but they lack the fundamental design education to point out exactly what separates the good from the bad, or even more to replicate the good design practices in their own work. </p>
<p>This type of information, the simple bits of knowledge that are hidden in plain sight, is my absolute favorite topic to explore. This discussion will cover just such a concept. One so simple that absolutely anyone can understand it, yet so secret that I see countless people, from laymen to professional designers, completely miss the mark with this principle on a daily basis. </p>
<h2>Almost The Same Is Awkwardly Different</h2>
<p>Enough suspense, why in the world, you ask, is &#8220;almost&#8221; a dirty word in design? It seems harmless enough right? Instead of <em>telling</em> you why it&#8217;s dangerous, let me <em>show</em> you. </p>
<h3>Alignment &#038; Size</h3>
<p>The inspiration for this piece was a website that I was recently asked to critique. The design featured an image with a button below it that looked something like the one shown below:</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/dirtyalmost-1.jpg" alt="screenshot" width="510"/></div>
<p>When I look at this example, I immediately see a case where &#8220;almost&#8221; is wreaking havoc on the quality of a design. This is more clearly illustrated if we add in some guides:</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/dirtyalmost-2.jpg" alt="screenshot" width="510"/></div>
<p>As you can now clearly see, the button is &#8220;almost&#8221; the same size as the image, but not quite. This causes some conceptual dissonance and can even be a distraction:</p>
<p><em>&#8220;Did the designer intentionally make the two objects different sizes? It&#8217;s difficult to tell. Maybe this is a mistake! Surely the two are meant be the same size.&#8221;</em></p>
<p>Your user has now been thrown off course and instead of focusing on your content is now wondering whether or not you screwed up. Now, some might disagree and say that the above example is an alignment issue and not a size issue, the button should simply be aligned to the center:</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/dirtyalmost-3.jpg" alt="screenshot" width="510"/></div>
<p>Admittedly, this helps. When size discrepancies are present between two simple objects, a center alignment can prove useful. However, I still see the same problem. The two objects are too close in size.</p>
<p>The key to solving this problem is to ask yourself why you made the two objects a different size to begin with. If it&#8217;s an accident, then you&#8217;re simply being sloppy with your dimensions. However, if it&#8217;s an intentional decision meant to add differentiation, then attack this goal with new fervor and actually make the two objects look different:</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/dirtyalmost-6.jpg" alt="screenshot" width="510"/></div>
<p>There&#8217;s no doubt when I see this example that the button is actually supposed to be smaller than the image. Similarly, if you don&#8217;t really have a need for the difference, then just make the two objects the same width:</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/dirtyalmost-4.jpg" alt="screenshot" width="510"/></div>
<p>My point is, it&#8217;s up to you to decide whether or not the objects merit differentiation. Just make sure that if they do, you don&#8217;t wuss out and make them <em>slightly</em> different. Go big!</p>
<h3>Typography</h3>
<p>There are several places where this principle proves true in typography. The first that comes to mind is once again a size issue. The most common place that I see this arise is when a headline and paragraph look something like this:</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/dirtyalmost-7.jpg" alt="screenshot" width="510"/></div>
<p>Here again we run into the trouble that &#8220;almost&#8221; brings us. The body copy is &#8220;almost&#8221; the same size as the headline. Sure, you can tell that they&#8217;re different but it&#8217;s not something strong enough to really help present a clear informational hierarchy. When we drop &#8220;almost&#8221; and go big, the result is much better:</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/dirtyalmost-8.jpg" alt="screenshot" width="510"/></div>
<p>This image illustrates that there are other factors to consider as well, such as boldness. Consider the following example, which compares a minor difference with a major one:</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/dirtyalmost-9.jpg" alt="screenshot" width="510"/></div>
<p>Notice how the word &#8220;Big&#8221; is bolded in the first example, but the result is still so subtle that it&#8217;s ineffective. &#8220;Big&#8221; is <em>almost</em> the same as the rest of the sentence. By now we know that if this statement can be said, we need to be a little more extreme. In the second example, I made the typeface even bolder, then use all caps on the word and enlarged the font. </p>
<p>The same goes for the style of typefaces that you select. In this next example, I&#8217;ve implemented two different typefaces in an attempt to add some variation to my headline: Garamond and Trajan.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/dirtyalmost-11.jpg" alt="screenshot" width="510"/></div>
<p>As you can see, these typefaces are so similar that they&#8217;re difficult to differentiate between. Do you think a non-designer will spot the difference between the two? I made the example and I can barely spot it!</p>
<p>This example is probably a little extreme, I&#8217;m sure you wouldn&#8217;t choose two fonts this similar. However, it drives home a point that is constantly missed by real world designers. Make sure your typefaces are never &#8220;almost&#8221; the same. Try varying the serif choice, boldness, etc. Take something simple and mix it with something more complex. The result is much more aesthetically pleasing:</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/dirtyalmost-10.jpg" alt="screenshot" width="510"/></div>
<h2>The Underlying Principles</h2>
<p>I could go on and on, but I&#8217;m sure you get the point. You can apply this idea to any area of design you choose. The basic idea is that &#8220;almost&#8221; is dangerous. Any time you find yourself approaching &#8220;almost,&#8221; just remember that it typically leads to average results. No designer should want to produce average work!</p>
<p>By now, faithful Design Shack readers have realized that I&#8217;ve tricked you into reading yet another post on contrast. Yep, this whole concept can be boiled down to that one magical word. Contrast is one of the main pillars of good design and learning to wield it properly will make you an infinitely better Designer.</p>
<p>The information here simply frames the idea of contrast in a different way that might or might not make the topic clearer for you: Different is good, almost different is bad. </p>
<div class="pullquote-r">
&#8220;When contrast doesn&#8217;t seem appropriate, repetition is your best bet.&#8221;
</div>
<p></ br></p>
<p>This goes even deeper than that as well. Notice that the first example with the button presented an alternative that suggested making the two objects exactly the same width. This is of course the principal of repetition. When contrast doesn&#8217;t seem appropriate, repetition is your best bet. </p>
<h2>Conclusion: Be Careful with Almost</h2>
<p>Keep in mind that there are in fact plenty of legitimate uses for close similarities in design. For instance, subtle variations of a color can provide a nice and simple color scheme. However, even in this scenario you don&#8217;t want the two to be so close that no one can tell them apart.</p>
<p>The message here is not to completely avoid the &#8220;almost syndrome&#8221; all the time but merely to take caution when designing anything that approaches it and to ask yourself whether the result you&#8217;re going for can be better achieved with contrast or repetition. </p>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/graphics/why-almost-is-a-dirty-word-in-design/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Code an Awesome Animated Download Button With CSS3</title>
		<link>http://designshack.net/articles/css/downloadbutton/</link>
		<comments>http://designshack.net/articles/css/downloadbutton/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 06:00:43 +0000</pubDate>
		<dc:creator>Joshua Johnson</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[download]]></category>

		<guid isPermaLink="false">http://designshack.net/?p=28910</guid>
		<description><![CDATA[Follow along as we create a simple and fun download button using some fancy CSS3. Our button will use lots of fun goodies including border-radius, box-shadow, linear-gradients, z-index and transitions to achieve a unique double sliding drawer effect on hover. As we go, I&#8217;ll discuss why some techniques that you might think to use should [...]]]></description>
			<content:encoded><![CDATA[<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/anim-download-0.jpg" alt="screenshot" width="510"/></div>
<p>Follow along as we create a simple and fun download button using some fancy CSS3. Our button will use lots of fun goodies including border-radius, box-shadow, linear-gradients, z-index and transitions to achieve a unique double sliding drawer effect on hover. </p>
<p>As we go, I&#8217;ll discuss why some techniques that you might think to use should be avoided. Transitions are tricky to work with and are quite prone to refuse to work with certain properties. Read on to find out more. </p>
<p><span id="more-28910"></span><br />
<em>Like the article? Be sure to subscribe to our <a href="feed://feeds.feedburner.com/designshack">RSS feed</a> and follow us on <a href="http://twitter.com/designshack">Twitter</a> to stay up on recent content.</em></p>
<h2>The Concept</h2>
<p>Loosely based on <a href="http://dribbble.com/shots/339317-Krazy-Download-Buttons-V2-1">this idea</a>, I wanted to create a download button with a cool sliding drawer effect where originally hidden information pops out when the user begins a hover event. To put my own spin on it, I decided to double the effect and create a drawer on both the top and bottom of the button (<a href="http://designshack.net/tutorialexamples/animatedDownload/index.html">click here</a> for a sneak peek of the finished result).</p>
<p>Here&#8217;s how it will work: using a combination of HTML and CSS, we&#8217;ll create three separate pieces. These include the main button and two smaller info panels. The smaller panels will initially hide under the larger button, then when the user hovers, one will slide upward and the other downward. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/anim-download-1.jpg" alt="screenshot" width="510"/></div>
<p>As you can see, this will be a pretty easy project that is perfect for beginners that are looking to up their CSS skills. Especially worth learning is how we&#8217;ll utilize absolute positioning and stacking via z-index. </p>
<h2>What Won&#8217;t Work</h2>
<p>As I planned out this project, I came up with a couple of ways to make my concept work. Given that I&#8217;ve been on a <a href="http://designshack.net/articles/css/the-lowdown-on-before-and-after-in-css/">pseudo element</a> kick lately, the way that I chose to structure the project initially was through the use of :before and :after. </p>
<p>With these pseudo elements, we can code only the download button in our HTML and then add in the wings using pure CSS. It seems like an optimal solution and indeed it worked great&#8230; until I tried to animate the transition. No matter what I tried, I simply couldn&#8217;t get the transition to work.</p>
<p>After a little research I discovered that that only Firefox supports CSS transitions on pseudo elements. This is a real bummer that really limits the fun we can have with :before and :after, but on the upside I learned a valuable lesson that will save me a lot of time and trouble in the future.</p>
<p>In tutorials like this one you don&#8217;t often get to hear about where the author failed, but I think it&#8217;s important to communicate these failures so you can learn from them as I have. Now the next time you want to animate a pseudo element you&#8217;ll remember that it won&#8217;t work in most browsers!</p>
<p>Failures aside, let&#8217;s jump into a method that <em>will</em> work.</p>
<h2>The Button</h2>
<p>To begin, we&#8217;ll create and style our button. Once we have this in place, it&#8217;ll be easier to form the other elements. All we need in the HTML department is a single div containing a link. We could simply use the link for the button but we&#8217;ll need to group multiple objects together so a div is necessary.</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;button&quot;</span>&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;</span>Download<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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></ br></p>
<h3>Button Shape &#038; Size</h3>
<p>The HTML above should simply provide you with a plain text link. We&#8217;re going to transform this into a button with a set background shape and size. To do this, we start with some dimensions, add some color and set the display value to block.</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;">.button</span> a <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: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">50px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">200px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#00b7ea</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<p>Here&#8217;s a look at what your button should look like after this step. It doesn&#8217;t look like much yet, but it&#8217;ll be a fancy looking button before you know it.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/anim-download-2.jpg" alt="screenshot" width="510"/></div>
<h3>Type Styles</h3>
<p>The first ugly thing about the button above that we&#8217;ll need to fix is the type, it&#8217;s currently a mess. Fortunately, this is easy to address. All we need to do is set the color to white, declare a font, and center it.</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;">.button</span> a <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: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">50px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">200px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#00b7ea</span><span style="color: #00AA00;">;</span>
&nbsp;
  <span style="color: #808080; font-style: italic;">/*TYPE*/</span>
  <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">white</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span> <span style="color: #933;">17px</span>/<span style="color: #933;">50px</span> Helvetica<span style="color: #00AA00;">,</span> Verdana<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-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</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: #000000; font-weight: bold;">text-transform</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">uppercase</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<p>There are a couple of interesting things to note here. First, notice that I&#8217;m using the &#8220;font&#8221; shorthand rather than running through reach font property individually. This is a great way to save space and keep your type styles nice and succinct. The order here is as follows:</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/anim-download-3.jpg" alt="screenshot" width="510"/></div>
<p>Here&#8217;s another nifty trick: I set the line-height to 50px to center it vertically in the button. Also notice that I removed the text underline and transformed the type to be uppercase. Why didn&#8217;t I just type it out in all caps in HTML? Because this is really a style choice and could change with a future redesign. </p>
<p>Now our button is looking much better!</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/anim-download-4.jpg" alt="screenshot" width="510"/></div>
<h3>CSS3 Magic</h3>
<p>At this point our button is still looking a little plain. If you&#8217;re cool with the minimal look, you can skip ahead. Otherwise, let&#8217;s make it a little more interesting. The first thing we&#8217;ll do is round off the corners. Make sure you add all three browser prefixes:</p>
<div style="overflow: auto; background-color: #eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">-webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
   -moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
        border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span></pre></div></div>

</div>
<p></ br></p>
<p>Next up, we&#8217;ll toss in a box-shadow. Once again, we&#8217;ll need three versions to cover the various browsers. The shorthand value order here is horizontal offset, vertical offset, blur and color.</p>
<div style="overflow: auto; background-color: #eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">8px</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;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">8px</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;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">8px</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></pre></div></div>

</div>
<p></ br></p>
<p>Finally, we&#8217;ll toss in a gradient. Unfortunately, this requires a whole mess of code. The way gradients work recently change so not only do we need multiple prefixes, we also need multiple syntaxes to make sure we support everything. I&#8217;m going to be honest, I rarely code this stuff by hand. Instead, I use the <a href="http://www.colorzilla.com/gradient-editor/">Ultimate Gradient Generator</a> and paste in the generated code. Here&#8217;s the result:</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;">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;">#00b7ea</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#009ec3</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;">#00b7ea</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;">#009ec3</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;">#00b7ea</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#009ec3</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;">#00b7ea</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#009ec3</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;">#00b7ea</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#009ec3</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;">#00b7ea</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#009ec3</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;">'#00b7ea'</span><span style="color: #00AA00;">,</span> endColorstr<span style="color: #00AA00;">=</span><span style="color: #ff0000;">'#009ec3'</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></pre></div></div>

</div>
<p></ br></p>
<p>Now our button is completely styled and looking fine. Here&#8217;s the result:</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/anim-download-5.jpg" alt="screenshot" width="510"/></div>
<h2>Adding The Drawers</h2>
<p>Now that our primary button is done, it&#8217;s time to add the little drawers that will slide out from the top and bottom (perhaps &#8220;wings&#8221; is the appropriate term). To do this, we&#8217;ll start by adding a little bit to our HTML:</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;button&quot;</span>&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;</span>Download<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;top&quot;</span>&gt;</span>click to begin<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;">p</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;bottom&quot;</span>&gt;</span>1.2MB .zip<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></ br></p>
<p>As you can see, I basically tossed in two paragraphs, each with a unique class that makes them easy to target (you could use some pseudo selectors instead if you really want to get fancy).</p>
<h3>Default Paragraph Styling</h3>
<p>Now jump over to your CSS and we&#8217;ll style the paragraphs. To start, we want to focus on the styles that both paragraphs will share. Styling both at once where possible helps keep our code clean and less redundant. Here&#8217;s a big chunk of code to think over:</p>
<div style="overflow: auto; background-color: #eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">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;">#222</span><span style="color: #00AA00;">;</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: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">40px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">180px</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: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
&nbsp;
  <span style="color: #808080; font-style: italic;">/*TYPE*/</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: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span> <span style="color: #933;">12px</span>/<span style="color: #933;">45px</span> Helvetica<span style="color: #00AA00;">,</span> Verdana<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>
&nbsp;
  <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;">z-index</span><span style="color: #00AA00;">:</span> -<span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
&nbsp;
  <span style="color: #808080; font-style: italic;">/*CSS3*/</span>
  -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;
  -webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">8px</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;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">8px</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;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">8px</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></pre></div></div>

</div>
<p></ br></p>
<p>Now, this is a lot to throw at you all at once so I&#8217;ll walk through it step by step. The first thing we do is give the paragraphs shape, color and type styles exactly like we did on the button. The main difference is that these are smaller and use some margins to push them into place. </p>
<p>Next are the positioning styles. These are very important so be sure you understand them clearly. In order to make the wings appear behind the button, we need to apply z-index, which affects the stacking order of the elements. Think of this as a &#8220;send to back&#8221; sort of command. To make this work, we need to apply absolute positioning.</p>
<p>Finally, we added the same border-radius and gradient styles that we did before. I&#8217;ve kept these separated from the previous styles to keep things simple and clear, but to make things DRYer, you would probably want to rewrite your shared CSS3 styles to something like this:</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;">.button</span> a<span style="color: #00AA00;">,</span> p <span style="color: #00AA00;">&#123;</span>
  -webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
     -moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
          border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
&nbsp;
  -webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">8px</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;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">8px</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;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">8px</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></pre></div></div>

</div>
<p></ br></p>
<p>Basically, any time you find yourself repeating or pasting styles multiple times, you&#8217;re making your code unnecessarily complex and should attempt to simplify. </p>
<p>At the end of this step, you&#8217;ll strangely see no change in your preview from last time. This is because we&#8217;ve hidden these elements behind the button. They&#8217;re there, you just can&#8217;t see them yet!</p>
<h3>Hover and Active Styles</h3>
<p>What we want to do next is take the wings that we just created and move them outward when the user hovers over the button. To accomplish this, we simply need to adjust the margins on each paragraph. Here we target each of the classes that we created, then move the .top one up and the .bottom one down. The .top class also required a slight line-height adjustment to look right. </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;">.button</span><span style="color: #3333ff;">:hover </span>.<span style="color: #000000; font-weight: bold;">top</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-80px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">35px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.button</span><span style="color: #3333ff;">:hover </span>.<span style="color: #000000; font-weight: bold;">bottom</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-10px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<p>While we&#8217;re here, we might as well throw some active styles on as well. These will take effect during a mouse down event.</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;">/*Adjust Gradient*/</span>
<span style="color: #6666ff;">.button</span> a<span style="color: #3333ff;">:active </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;">#00b7ea</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Old browsers */</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;">#00b7ea</span> <span style="color: #933;">36%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#009ec3</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;">36%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#00b7ea</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;">#009ec3</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;">#00b7ea</span> <span style="color: #933;">36%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#009ec3</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;">#00b7ea</span> <span style="color: #933;">36%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#009ec3</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;">#00b7ea</span> <span style="color: #933;">36%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#009ec3</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;">#00b7ea</span> <span style="color: #933;">36%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#009ec3</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;">'#00b7ea'</span><span style="color: #00AA00;">,</span> endColorstr<span style="color: #00AA00;">=</span><span style="color: #ff0000;">'#009ec3'</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>
&nbsp;
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*Pulls in Wings*/</span>
<span style="color: #6666ff;">.button</span><span style="color: #3333ff;">:active </span>.<span style="color: #000000; font-weight: bold;">bottom</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-20px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.button</span><span style="color: #3333ff;">:active </span>.<span style="color: #000000; font-weight: bold;">top</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-70px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<p>As you can see, what I&#8217;ve done here is adjust the gradient so that the top color stretches a little farther, then I brought the wings back in a little bit so that there&#8217;s a contracting effect when you click. </p>
<p>Now our button is looking awesome. All three of our states are working. When you&#8217;re not hovering, it looks like a plain old button. When you are hovering, the wings or drawers pop out. When you click, the wings come in a little and the gradient changes ever so slightly. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/anim-download-6.jpg" alt="screenshot" width="510"/></div>
<h2>Final Step: Add The Transition</h2>
<p>At this point, everything appears to be working just fine. The only problem is that the hover effect takes place instantly and of course we&#8217;d like it to be a little more gradual. To accomplish this, go back to your paragraph block and add in a basic 0.5 second transition using all of the required prefixes.</p>
<div style="overflow: auto; background-color: #eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">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;">#222</span><span style="color: #00AA00;">;</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: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">40px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">180px</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: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
&nbsp;
  <span style="color: #808080; font-style: italic;">/*TYPE*/</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: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span> <span style="color: #933;">12px</span>/<span style="color: #933;">45px</span> Helvetica<span style="color: #00AA00;">,</span> Verdana<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>
&nbsp;
  <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;">z-index</span><span style="color: #00AA00;">:</span> -<span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
&nbsp;
  <span style="color: #808080; font-style: italic;">/*CSS3*/</span>
  -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;
  -webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">8px</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;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">8px</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;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">8px</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>
&nbsp;
  -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></ br></p>
<p>With this addition, the button will transition very nicely between the three different states.</p>
<h2>See It In Action</h2>
<p>We&#8217;re all finished! You should now have an awesome animated CSS download button that is sure to impress. Check out the live demo below or <a href="http://tinkerbin.com/QfFHOSIL">check out the code on Tinkerbin</a>.</p>
<p><strong>Demo:</strong> <a href="http://designshack.net/tutorialexamples/animatedDownload/index.html">Click Here to Launch</a></p>
<div class="tutorialimage"><a href="http://designshack.net/tutorialexamples/animatedDownload/index.html"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/anim-download-6.jpg" alt="screenshot" width="510"/></a></div>
<p>Want an even better version of the button with six different versions to choose from? Check out the awesome free download at our new sister site <a href="http://designcurate.com/resource/animated-download-button">Design Curate</a>.</p>
<h2>Conclusion</h2>
<p>Thanks for reading and following along. If you made it all the way through, pat yourself on the back for a job well done. </p>
<p>I hope you learned a thing or two about z-index or cool CSS3 tricks. If not, at least you got an awesome button out of the deal! Leave a comment below and let us know if you enjoyed the tutorial.</p>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/css/downloadbutton/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Web Design Critique #75: Income Diary</title>
		<link>http://designshack.net/articles/critique-articles/web-design-critique-75-income-diary/</link>
		<comments>http://designshack.net/articles/critique-articles/web-design-critique-75-income-diary/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 06:00:37 +0000</pubDate>
		<dc:creator>Joshua Johnson</dc:creator>
				<category><![CDATA[Critique]]></category>

		<guid isPermaLink="false">http://designshack.net/?p=28987</guid>
		<description><![CDATA[Every week we take a look at a new 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. Today&#8217;s site is Income Diary, a blog that offers simple, practical [...]]]></description>
			<content:encoded><![CDATA[<div class="tutorialimage"><a href="http://www.incomediary.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/DSCRT-75-0.jpg" alt="web design critique" width="510"/></a></div>
<p>Every week we take a look at a new 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 href="http://www.incomediary.com/">Income Diary</a>, a blog that offers simple, practical advice for how to earn money online. Let&#8217;s jump in and see what we think!</p>
<p><span id="more-28987"></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 href="http://designshack.net/advice">find out more here</a>.</p>
<h2>About Income Diary</h2>
<p><em>&#8220;I launched IncomeDiary back in 2009 after a conference I attended in Washington DC in March that year. Before this, I had been running websites successfully for around 4 years and one of the major things I took away from meeting like minded entrepreneurs was, you got to give back! This is what this website is all about, educating and helping internet entrepreneurs, no matter what level they are.&#8221;</em></p>
<p>Here is a screenshot of the homepage:</p>
<div class="tutorialimage"><a href="http://www.incomediary.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/DSCRT-75-1.jpg" alt="web design critique" width="510"/></a></div>
<h2>First Impression</h2>
<p>Income diary isn&#8217;t breaking any barriers in blog design. It&#8217;s a very straightforward design that utilizes a layout seen on a million other blogs around the web. Is this a negative thing? Not in the least. In the same way that newspapers eventually all fell into a similar and predictable format, it&#8217;s perfectly natural that blogs would land on a few standard layouts that work well.</p>
<p>The benefit is that new visitors are immediately comfortable with the format and know how to get around from the second the site loads. Innovative layouts are great too, but there&#8217;s a common misconception in design that something that isn&#8217;t innovative isn&#8217;t good, and that&#8217;s simply not a true statement. </p>
<p>That being said, there are a lot of solid design choices made on this site. Aesthetically, it doesn&#8217;t blow me away, but it is fairly attractive and functionally solid. The primary question that I always ask for any design critique is, &#8220;Does the design accomplish its purpose?&#8221; In this case, think the answer is yes if the purpose is to successfully educate people on how to make money online. Let&#8217;s explore why this is true.  </p>
<h2>Color Scheme</h2>
<p>If you&#8217;re familiar with our design critiques, you should already know what I&#8217;m going to say about this color scheme. It uses the simple color scheme trick that you almost can&#8217;t go wrong with:</p>
<div class="tutorialimage"><a href="http://www.incomediary.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/DSCRT-75-7.jpg" alt="web design critique" width="510"/></a></div>
<p>First, the designer chose a main color, in this case green. Green is a solid choice, not because of anything aesthetic but because of the psychological correlation that we inevitably make: green = money. This site is about making money so there&#8217;s no color more appropriate!</p>
<p>Next up, a few different shades of this color were chosen. This provides a decent way to have subtle variation throughout the design: gradients, different header bars, etc. Finally, one color was chosen that complements but stands out from the main color. This technique provides an incredibly safe route to choose a color scheme that is neither monotonous nor overly busy. </p>
<h2>Logo</h2>
<div class="tutorialimage"><a href="http://www.incomediary.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/DSCRT-75-2.jpg" alt="web design critique" width="510"/></a></div>
<p>Like everything else, the logo takes a very safe and predictable route. This is something important that is worth discussing. Is this a boring, generic logo? Yep. Is it better than a non-designer attempting to create a complex logo? Absolutely. The bottom line is that not everyone who creates a website is a professional designer. If this is the case with you, don&#8217;t feel bad about typing out your website name in a simple manner and calling it a day. One day when you have the budget (though arguably this site should right?), you can hire a professional to create a unique identity for you.</p>
<p>One thing that I think this site needs to rework is the tagline on the logo. It&#8217;s simply too thin and tiny and doesn&#8217;t read well. A simple solution might just be to increase the size of this line so that it has the same horizontal width as the line above it. </p>
<h2>Navigation</h2>
<p>The navigation area is a classic CSS nav format with big blocks defining each link. One thing that I&#8217;m constantly criticizing designers for in these critiques is link hover effects that are so subtle that you can barely tell that one exists, especially if you happen to be a color blind user. Fortunately, that&#8217;s not the case here. </p>
<div class="tutorialimage"><a href="http://www.incomediary.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/DSCRT-75-3.jpg" alt="web design critique" width="510"/></a></div>
<p>As you can see, the difference between the hover and non-hover states is quite dramatic and can clearly be seen by all users. This may seem small, but small mistakes can ruin a design so it&#8217;s important to get this stuff right. </p>
<h2>Information Hierarchy</h2>
<p>Creating a solid informational hierarchy cuts to the very core of what your goals are in a web design. If you write down all the things that you want to accomplish with a web design, this should always be near the top of the list. </p>
<p>One of the most solid aspects of this design is how all of the information on the page is structured. For instance, notice that the most recent post in the home feed is given more visual importance than the other posts in the form of a larger preview image.</p>
<div class="tutorialimage"><a href="http://www.incomediary.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/DSCRT-75-4.jpg" alt="web design critique" width="510"/></a></div>
<p>We use this same trick on the Design Shack homepage to an even greater degree. It&#8217;s a bit subtle on Income diary and I would even suggest that the designer find an additional way to make it stand out even more (different background color, larger headline, etc.).</p>
<p>There&#8217;s yet another level of differentiation as well. As you scroll down the post list, there&#8217;s a section with a few products that you can purchase. This is where that other color comes in that we discussed before:</p>
<div class="tutorialimage"><a href="http://www.incomediary.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/DSCRT-75-5.jpg" alt="web design critique" width="510"/></a></div>
<p>This content is thrown into a nice minimal box with solid text and image layout and plenty of whitespace. It&#8217;s a great way to set this content apart from the main feed. </p>
<p>Now, though I like the design of this little box area, I&#8217;m a perfectionist so there&#8217;s one thing that drives me crazy:</p>
<div class="tutorialimage"><a href="http://www.incomediary.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/DSCRT-75-8.jpg" alt="web design critique" width="510"/></a></div>
<p>The button below the product preview is <em>almost</em> the same width as the image above it, but not quite. It&#8217;s literally a manner of a few pixels but I can&#8217;t help but be distracted by it. Either make it the same width or make it much narrower, anything else looks like a mistake. </p>
<h2>Footer</h2>
<p>We&#8217;ll end this critique off with a quick look at the footer, simply because I like the way it looks. I love how the content breaks the footer line, the transition from gray to white when you hover over a link, the clean, minimal presentation of the social icons, and the oh so subtle hint of texture behind the logo. In my opinion, this is the best looking part of the site. A strange conclusion to be sure, but I&#8217;m just a big fan anyone that doesn&#8217;t slack off and toss on an ugly footer as the last step of a design. </p>
<div class="tutorialimage"><a href="http://www.incomediary.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/DSCRT-75-6.jpg" alt="web design critique" width="510"/></a></div>
<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>
<p><script type="text/javascript" charset="utf-8" src="http://static.polldaddy.com/p/5883474.js"></script><br />
<noscript><a href="http://polldaddy.com/poll/5883474/">How would you rate the design of Income Diary?</a></noscript></p>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/critique-articles/web-design-critique-75-income-diary/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Weekly Freebies: 15 Free Business Card Templates That Don&#8217;t Suck</title>
		<link>http://designshack.net/articles/freebies/freebusinesscards/</link>
		<comments>http://designshack.net/articles/freebies/freebusinesscards/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 15:13:12 +0000</pubDate>
		<dc:creator>Joshua Johnson</dc:creator>
				<category><![CDATA[Freebies]]></category>
		<category><![CDATA[business]]></category>
		<category><![CDATA[business card]]></category>
		<category><![CDATA[card]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://designshack.net/?p=28939</guid>
		<description><![CDATA[Business cards are an awesome creative outlet where designers tend to push themselves to come up with unique and interesting solutions. If you&#8217;re a newbie to business card design though it can be difficult to break out of the cliché unoriginal layouts that will no doubt pop into your head. This post of over 15 [...]]]></description>
			<content:encoded><![CDATA[<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-freecardtemps-14.jpg" alt="screenshot" width="510"/></div>
<p>Business cards are an awesome creative outlet where designers tend to push themselves to come up with unique and interesting solutions. If you&#8217;re a newbie to business card design though it can be difficult to break out of the cliché unoriginal layouts that will no doubt pop into your head. This post of over 15 free layered business card templates should help you out.</p>
<p>As a bonus, we&#8217;ve included not only layered business card templates, but a few editable 3D mockup files as well so that once you start creating your own awesome designs, you can show them off in style. </p>
<p><span id="more-28939"></span><br />
<em>Like the article? Be sure to subscribe to our <a href="feed://feeds.feedburner.com/designshack">RSS feed</a> and follow us on <a href="http://twitter.com/designshack">Twitter</a> to stay up on recent content.</em></p>
<h2>Templates</h2>
<h3><a href="http://www.pixeden.com/business-cards-templates/creative-business-card-vol-3">Creative Business Card Vol 3</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-freecardtemps-10.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://hertzz.deviantart.com/art/Seextwood-business-card-156388339">Seextwood business card by hertzz</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-freecardtemps-7.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://elemisfreebies.com/02/03/page-curl-business-card/">Page Curl Business Card</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-freecardtemps-13.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.pixeden.com/business-cards-templates/industrial-business-card-vol-1">Industrial Business Card Vol 1</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-freecardtemps-15.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.dezineguide.com/freebie/download-free-modern-business-card-ii/">Free Modern Business Card II</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-freecardtemps-1.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://An1ken.deviantart.com/art/Business-Card-Template-2-113326808?q=boost%3Apopular%20business%20card%20free&#038;qo=4">Business Card Template 2 by An1ken</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-freecardtemps-2.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://robbythedesigner.deviantart.com/art/Free-Business-Card-PSD-159938574?q=boost%3Apopular%20business%20card%20free&#038;qo=6">Free Business Card PSD by robbythedesigner</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-freecardtemps-4.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.dezineguide.com/freebie/download-free-modern-business-card/">Free Modern Business Card I</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-freecardtemps-5.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://hertzz.deviantart.com/art/Technix-business-card-156746511?q=boost%3Apopular%20business%20card%20free&#038;qo=14">Technix business card by hertzz</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-freecardtemps-6.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://anderworks.deviantart.com/art/Free-Bokeh-Card-Freebie-205360282?q=boost%3Apopular%20business%20card%20free&#038;qo=37">Bokeh Card by anderworks</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-freecardtemps-8.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://elemisfreebies.com/03/01/business-card-2/">Business Card</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-freecardtemps-9.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://robbythedesigner.deviantart.com/art/Che-Guevara-Business-Card-FREE-144108145?q=boost%3Apopular%20business%20card%20free&#038;qo=74">Che Guevara Business Card by robbythedesigner</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-freecardtemps-11.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.pixeden.com/business-cards-templates/corporate-business-card-vol-2">Corporate Business Card Vol 2</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-freecardtemps-16.jpg" alt="screenshot" width="510"/></div>
<h2>3D Mockups</h2>
<h3><a href="http://www.pixeden.com/psd-mock-up-templates/psd-business-card-mock-up-vol-1">Psd Business Card Mock-Up Vol 1</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-freecardtemps-14.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://artbees.net/free-letterpress-business-card-mockup/">Free letterpress business card mockup</a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-freecardtemps-12.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://artbees.net/free-business-card-mock-up/">Free Business Card Mock Up </a></h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-freecardtemps-3.jpg" alt="screenshot" width="510"/></div>
<h2>Love it? Share It!</h2>
<p>If you enjoyed this week’s collection of freebies, share the love and send out a link on your favorite sites. Here’s a convenient snippet for you to copy and paste as you please!</p>
<p><strong>15 Free Business Card Templates That Don&#8217;t Suck:</strong> <a href="http://goo.gl/blBga">http://goo.gl/blBga</a></p>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/freebies/freebusinesscards/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Addictive UX: Why Pinterest Is So Dang Amazing</title>
		<link>http://designshack.net/articles/business-articles/addictive-ux-why-pinterest-is-so-dang-amazing/</link>
		<comments>http://designshack.net/articles/business-articles/addictive-ux-why-pinterest-is-so-dang-amazing/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 17:24:30 +0000</pubDate>
		<dc:creator>Joshua Johnson</dc:creator>
				<category><![CDATA[Business]]></category>

		<guid isPermaLink="false">http://designshack.net/?p=28855</guid>
		<description><![CDATA[Today we&#8217;re going to examine a very specific example of good design and discuss what makes it so successful. Along the way we&#8217;ll discover the importance of good design and how to structure experiences that turn users into addicts. We&#8217;ll hone our sights in on Pinterest and perform a seriously in-depth analysis to see why [...]]]></description>
			<content:encoded><![CDATA[<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/pinterest-0.jpg" alt="screenshot" width="510"/></div>
<p>Today we&#8217;re going to examine a very specific example of good design and discuss what makes it so successful. Along the way we&#8217;ll discover the importance of good design and how to structure  experiences that turn users into addicts. </p>
<p>We&#8217;ll hone our sights in on <a href="http://pinterest.com/">Pinterest</a> and perform a seriously in-depth analysis to see why this seemingly generic idea seems to stand so far out from the competition. The ultimate conclusions will equip you to design experiences that your users will absolute love. </p>
<p><span id="more-28855"></span><br />
<em>Like the article? Be sure to subscribe to our <a href="feed://feeds.feedburner.com/designshack">RSS feed</a> and follow us on <a href="http://twitter.com/designshack">Twitter</a> to stay up on recent content.</em></p>
<h2>A Lame Idea</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/pinterest-12.jpg" alt="screenshot" width="510"/></div>
<p>Imagine that I came to you in 2010 with what I thought was a brilliant idea. I was confident that I could make it work and needed only some investors to help get things off the ground.</p>
<p>Being the cautious spender that you are, you ask about my idea. What is it? How does it work? My answer: a social bookmarking site. I&#8217;m going to create a website where people can sign up and save links. Cue patronizing letdown. You would no doubt inform me that this idea is anything but unique and is sure to flop. How could I possibly take on Delicious and the other bookmarking giants?</p>
<p>I&#8217;ve got a big idea though: I&#8217;m going to use images. Users will be able to grab any image from any webpage, save it to their account and share it with others. </p>
<p>Once again, in your best slightly derogatory tone you would inform me to do a Google search for &#8220;image bookmarking&#8221; and take note of the countless sites such as FFFFOUND! and Ember that already populate this market. You might even direct my attention to a list of <a href="http://designinstruct.com/articles/resources/10-image-bookmarking-sites-for-visual-inspiration/">10 popular image bookmarking services</a>, published in 2010, as further proof that my idea was completely unoriginal.</p>
<div class="tutorialimage"><a href="http://designinstruct.com/articles/resources/10-image-bookmarking-sites-for-visual-inspiration/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/pinterest-1.jpg" alt="screenshot" width="510"/></a></div>
<h2>The Not So Lame Success Story</h2>
<p>At its core, Pinterest is nearly identical to the concept of the sites in the list above: a simple visual bookmarking service with a strong emphasis on sharing. I can&#8217;t help but look at the climate of competition under which Pinterest was born and marvel at how it came to stand out as a clear leader in the category.</p>
<div class="tutorialimage"><a href="http://pinterest.com/about/press/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/pinterest-2.jpg" alt="screenshot" width="510"/></a></div>
<p>So why has Pinterest caught fire lately? If it&#8217;s one of countless image bookmarking services, how in the world did it draw over 1.5 million users during a &#8220;private&#8221; beta? How could it possibly be snagging tens of millions of page views per week and have an estimated company worth of around $200 million? </p>
<h2>Why Did It Work?</h2>
<p>The secret to Pinterest&#8217;s success is incredibly important. In a time where social media is a multibillion dollar industry, a truly successful formula is the holy grail.</p>
<p>There are no doubt several pieces to the Pinterest success puzzle but the one we&#8217;re going to focus on today is design. How did Pinterest not only set itself apart with design, but actually surpass what everyone else was doing and create something that engaged users on an entirely new level?</p>
<h2>Solving Layout With Diverse Image Sizes</h2>
<div class="tutorialimage"><a href="http://pinterest.com/designshack/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/pinterest-6.jpg" alt="screenshot" width="510"/></a></div>
<p>One of the primary aspects that set Pinterest apart from other social image bookmarking services is that they completely rethought how the images should be presented to the user.</p>
<p>The goal is a simple one, you ideally want your users to be able to browse through hundreds or even thousands of images with relative ease. If this action requires too much effort on the user&#8217;s part, you lose their interest. If it&#8217;s effortless, you keep their attention focused on the content. </p>
<p>One important step in this battle was &#8220;masonry&#8221; style layout, a fairly recent trend in web development named after the <a href="http://masonry.desandro.com/">jQuery Masonry</a> plugin. Pinterest uses its own scripts for this, but the concept is the same. </p>
<div class="tutorialimage"><a href="http://masonry.desandro.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/pinterest-3.jpg" alt="screenshot" width="510"/></a></div>
<p>Basically, masonry style layout creates the most efficient utilization of space possible given varying image heights. It overcomes past layout hurdles and takes vertical height into account when laying out the images, thereby creating a super tight, puzzle piece flow of images on the page. </p>
<p>Pinterest wasn&#8217;t the only image bookmarking service to try this layout though. Competitors such as <a href="http://www.imgspark.com/image/popular/all/today/">Image Spark</a> had also integrated masonry layouts. Obviously, there has to be more to this puzzle. </p>
<div class="tutorialimage"><a href="http://www.imgspark.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/pinterest-4.jpg" alt="screenshot" width="510"/></a></div>
<h2>The Pagination Conundrum</h2>
<p>In addition to maximizing layout efficiency without sacrificing image quality from uniform cropping, the Pinterest team was able to identify another underlying problem with existing image gallery formats: pagination is a pain.</p>
<p>Websites <strong>love</strong> pagination because it increases their page views (more views = more money), but as a user it sucks: scroll down, click the &#8220;next&#8221; button, wait for new page to load, scroll down and click the button again&#8230; then at some point you realize you want to go back and find a specific image or page and you&#8217;re left hitting that back button a million times until you find it. </p>
<div class="tutorialimage"><a href="http://www.imgspark.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/pinterest-5.jpg" alt="screenshot" width="510"/></a></div>
<p>To solve this problem, the Pinterest team looked to infinite scrolling, a neat little trick that automatically loads more content as the user hits this bottom of the page, thus allowing for a fairly uninterrupted browsing process. </p>
<p>Way back in 2008, Paul Irish was creating and distributing <a href="http://www.infinite-scroll.com/">infinite scroll plugins</a>. The advice on that site says to use infinite scrolling when:</p>
<ul>
<li>Retaining the user is important and clicking “Next Page” is a usability barrier.</li>
<li>The full content available is too large to show on initial load.</li>
<li>The content is available in paged chunks: search results, blog posts, product listings and portfolio features.</li>
</ul>
<p>This perfectly describes the circumstances of a social image bookmarking service, making Pinterest prime territory to implement this technique.  </p>
<h2>Masonry + Infinite Scrolling = Magic</h2>
<p>Masonry style layout and infinite scrolling have melded into a single idea in our head, but they started as two separate technologies. Putting them together, it turns out, creates a truly addicting experience.</p>
<p>If you doubt this for a second, stop by Pinterest and start scrolling. What follows is some strange form of time travel where you stop by the site for a quick peek and out of no where a solid hour has gone by. In this time you forget about user interfaces and controls, you simply absorb the content as thousands of beautiful pictures slide by, controlled by a single flick of your finger. </p>
<p>It&#8217;s a truly engaging experience that simply blows away many past user interaction models. It&#8217;s interesting to note that the Facebook News Feed, the epitome of website addiction, uses infinite scrolling. Further, the new Timeline pages now combine this technique with a two column masonry style layout. It&#8217;s catching on folks, expect to see a lot more of these two techniques in the next year.   </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/pinterest-7.jpg" alt="screenshot" width="510"/></div>
<h2>Unbeatable Content</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/pinterest-8.jpg" alt="screenshot" width="510"/></div>
<p>Fancy interaction models don&#8217;t mean a thing unless you have the content to back them up. In order for Pinterest to really take off, two conditions had to be met: the content had to be great, and there had to be a ton of it.</p>
<p>These two goals are actually conflicting. The best way to get lots of content is to open your site to the public, which is also the best way to ensure that your site is full of crap. </p>
<p>Pinterest chose to stay in private beta for quite an extended period of time, carefully controlling invites. I honestly have no idea how they pulled it off, but the core group of early adopter pinners really set the stage for Pinterest&#8217;s identity and quality expectations.</p>
<p>In the early days especially, you couldn&#8217;t deny the strong, unique personality that the Pinterest community seemed to have. It seemed that every image on the site was oozing with style. Instead of sifting through piles of garbage to find the gems, you were presented with wave after wave of gorgeous interior design ideas, DIY projects and the like. Which brings me to my next point: a targeted user base.</p>
<h3>A Woman&#8217;s Touch</h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/pinterest-9.jpg" alt="screenshot" width="510"/></div>
<p>Social bookmarking services, for whatever reason, have traditionally been quite nerdy. The visual nature of the service attracts two kinds of people: designers and guys who want to save images of girls that tend to be of a particular variety. Consequently, these services are typically filled with an odd mix of beautiful examples of design and erotic photography. Don&#8217;t believe me? Spend twenty minutes on <a href="http://ffffound.com/">FFFFOUND!</a> and you&#8217;ll be a believer. </p>
<p>Pinterest on the other hand, has actually found an audience largely with females. As the user base expands at a rapid pace, people of all types are flocking to Pinterest and &#8220;pinning&#8221; all manner of content, but the initial base of content was largely Etsy-style material that exuded a feminine style simply not found in other similar services.</p>
<p>Women found Pinterest and used it to save recipes, collect outfits ideas and create lists of home decor products. Pinterest targeted and leveraged this vast potential user base and used it as a foundation for its personality. I talked to a non-techy friend yesterday who is admittedly still &#8220;creeped out&#8221; when a male user follows her on Pinterest because she sees it as a largely female network. </p>
<p>In the end, this proved to be a very powerful strategy that has paid off with content that no one else can come close to matching. Again though, the folks at Pinterest will have to keep a close watch on their audience and evolve with their user base. Their growth is already taking them from a very specific offering to one that is more general and broad reaching. </p>
<h2>A Solid Metaphor That Encourages Sharing</h2>
<p>The final thing I want to discuss regarding Pinterest&#8217;s success is a little deeper into the interaction model than the surface layout and scrolling techniques. The way that they&#8217;ve structured the service&#8217;s collection process and social layer is yet another stroke of genius that helps make the service strong.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/pinterest-10.jpg" alt="screenshot" width="510"/></div>
<p>The metaphor behind Pinterest is instantly understandable and quite catchy to discuss. The idea is that Pinterest is your &#8220;virtual pinboard.&#8221; You create various &#8220;boards&#8221; and assign them categories, then use a bookmarklet or the main feed to &#8220;pin&#8221; items to your boards. Other users can then follow boards from users they like and receive a custom stream of content tailored to their specific tastes. </p>
<p>What people pin has become a hot discussion topic that promises new insight even into the minds of those you already know well. For example, I used my wife&#8217;s Pinterest account for gift ideas at Christmas time. It also helps with those you&#8217;d like to know better. When inviting another couple over for dinner, my wife checks the other girl&#8217;s Pinterest account to see what types of food the couple enjoys. </p>
<h3>Making It Easy</h3>
<p>We already discussed how Pinterest has created an awesome source for finding inspiration, but in order to get people to actually use your digital content collection service, you have to make the act of collecting and sharing content a nearly effortless task. </p>
<p>One of the ways that they&#8217;ve done this (in addition to the bookmarklet) is to pick up the &#8220;Retweet&#8221; idea from Twitter. Every item in a given stream of pins can be liked, commented on, and most importantly, repinned. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/pinterest-11.jpg" alt="screenshot" width="510"/></div>
<p>This creates a system where collection is super easy and encourages lots and lots of pinning. There&#8217;s even a page describing <a href="http://pinterest.com/about/etiquette/">Pin Etiquette</a> so everyone can learn to play nicely together. </p>
<h2>Conclusion</h2>
<p>Looking around the web, we encounter countless examples of fantastic ideas that are ruined by poor execution. Pinterest turns this on its head by presenting a fairly generic idea that works extremely well because of its amazing execution.</p>
<p>Pinterest succeeds on several layers of interaction. First, they maximize their content presentation with a masonry like layout and keep you interested for hours on end with infinite scrolling. Next, they carefully targeted and crafted a very specific user base that was both a huge potential source of users and a fairly untapped market in this space. This led to a solid foundation of daily content that defined Pinterest&#8217;s very identity. Finally, underneath it all is an instantly understandable metaphor and sharing platform that is wickedly viral and incredibly easy to pick up and use. </p>
<p>All of these factors together create a winning formula for an undeniably addictive user experience. Whether you personally love it or hate it is irrelevant, the truth is that Pinterest is turning heads and dramatically increasing in corporate value. It therefore serves as an important lesson that you as a designer simply shouldn&#8217;t ignore. </p>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/business-articles/addictive-ux-why-pinterest-is-so-dang-amazing/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>Jumpstart Your Web Project With HTML KickStart</title>
		<link>http://designshack.net/articles/css/htmlkickstart/</link>
		<comments>http://designshack.net/articles/css/htmlkickstart/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 18:02:52 +0000</pubDate>
		<dc:creator>Joshua Johnson</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://designshack.net/?p=28824</guid>
		<description><![CDATA[Recently, we took a look at a really solid framework from the good folks at Twitter called Bootstrap. This toolkit is a swiss army knife of utilities and includes both a functional layout grid and enough pre-styled elements to get a great jumpstart on any project. Today we&#8217;re going to look at a very similar [...]]]></description>
			<content:encoded><![CDATA[<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/htmlkickstart-0.jpg" alt="screenshot" width="510"/></div>
<p>Recently, we took a look at a really solid framework from the good folks at Twitter called <a href="http://designshack.net/articles/css/5-incredibly-useful-tools-built-into-twitter-bootstrap/">Bootstrap</a>. This toolkit is a swiss army knife of utilities and includes both a functional layout grid and enough pre-styled elements to get a great jumpstart on any project.</p>
<p>Today we&#8217;re going to look at a very similar tool from Joshua Gatcke called <a href="http://www.99lime.com/">HTML KickStart</a>. This framework is simply overflowing with great stuff that will enable you to build web page prototypes at light speed. Let&#8217;s jump in and build a page with it to see what we think.</p>
<p><span id="more-28824"></span><br />
<em>Like the article? Be sure to subscribe to our <a href="feed://feeds.feedburner.com/designshack">RSS feed</a> and follow us on <a href="http://twitter.com/designshack">Twitter</a> to stay up on recent content.</em></p>
<h2>What We&#8217;re Building</h2>
<p>Before we jump into what HTML KickStart is and how you can use it, here&#8217;s a sneak peek at the final result of today&#8217;s tutorial:</p>
<p><strong>Demo:</strong> <a href="http://designshack.net/tutorialexamples/htmlkickstart/index.html">Click Here</a> to launch.</p>
<div class="tutorialimage"><a href="http://designshack.net/tutorialexamples/htmlkickstart/index.html"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/htmlkickstart-14.jpg" alt="screenshot" width="510"/></a></div>
<h2>What Is HTML KickStart?</h2>
<div class="tutorialimage"><a href="http://www.99lime.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/htmlkickstart-1.jpg" alt="screenshot" width="510"/></a></div>
<p>According to <a href="http://www.99lime.com/">99Lime.com</a> (the project&#8217;s homepage), HTML KickStart is &#8220;an ultra–lean set of HTML5, CSS, and jQuery (javascript) files, layouts, and elements designed to give you a headstart and save you 10&#8242;s of hours on your next web project.&#8221;</p>
<p>According to this statement, this project could theoretically save us one or even multiple full days of work. That&#8217;s certainly no small promise! How does it make good on such a claim? By providing a huge set of features. Don&#8217;t bother asking &#8220;what&#8217;s in HTML KickStart?&#8221; Instead ask, &#8220;what&#8217;s <em>not</em> in HTML KickStart?&#8221; The answer is of course, &#8220;not much.&#8221;</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/htmlkickstart-2.jpg" alt="screenshot" width="510"/></div>
<h2>Getting Started: Nav Menu</h2>
<p>To see how all of this works, we&#8217;re going to rough out a quick project. If you want to follow along, download the project and start with the sample HTML page, just be sure to strip out any placeholder elements so you have a fresh blank slate. </p>
<p>The first thing we&#8217;re going to do is add a topside navigation. If we swing by the HTML KickStart <a href="http://www.99lime.com/elements/">elements page</a>, we&#8217;ll find three built in menu options to choose from. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/htmlkickstart-3.jpg" alt="screenshot" width="510"/></div>
<p>We want the Horizontal Menu option so we click on the &#8220;Horizontal&#8221; tab and find some sample code that we can use for our own purposes.</p>
<p>The system here is really straightforward, you simply create an unordered list with the &#8220;menu&#8221; class and each list item will become a menu item. The class &#8220;current&#8221; is added to the current page and sub lists can be used to create drop down menus. </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;!-- Menu Horizontal --&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;menu&quot;</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;current&quot;</span>&gt;&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;</span>Home<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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>&gt;&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;</span>About<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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>&gt;&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;</span>Services<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&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>&gt;&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;</span>Web Design<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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>&gt;&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;</span>Web Development<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&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>&gt;&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;</span>E-Commerce<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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>&gt;&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;</span>Personal Portfolio<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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>&gt;&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;</span>Publishing<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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>
		<span style="color: #009900;">&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>&gt;&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;</span>UX Consulting<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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>
	<span style="color: #009900;">&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>&gt;&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;</span>Contact<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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></ br></p>
<p>With only this little bit of HTML and zero CSS work, our menu looks great and is perfectly functional. As with the CSS, the JavaScript magic is already being taken care of for us.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/htmlkickstart-4.jpg" alt="screenshot" width="510"/></div>
<p>Notice that there&#8217;s already a background image applied to our body. This is the default grid image that comes with the framework, we&#8217;ll see how to swap this out later. </p>
<h2>Welcome Message</h2>
<p>Next we want to add a nice big headline to our page to welcome any visitors. This will make use of the pre-built typography styles.</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;headline&quot;</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>Welcome to a Design Shack Demo<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>This is a demo of HTMLKickStart, a rapid prototyping tool from <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://www.99lime.com/elements/&quot;</span>&gt;</span>99Lime.com<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>.<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: #808080; font-style: italic;">&lt;!-- END WELCOME --&gt;</span></pre></div></div>

</div>
<p></ br></p>
<p>The h1 and p tags will already contain some default styling, but there&#8217;s nothing at this point governing our layout so we&#8217;ll need to help this out with some custom CSS.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/htmlkickstart-5.jpg" alt="screenshot" width="510"/></div>
<p>To start, we&#8217;ll want to center that text in the window. The paragraph and header also have a huge margin between them so we&#8217;ll need to tighten that up. Go into the &#8220;style.css&#8221; file and start a new section with your own styles. Then insert this code:</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;">.headline</span> <span style="color: #00AA00;">&#123;</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>
&nbsp;
<span style="color: #6666ff;">.headline</span> h1 <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin-bottom</span><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: #6666ff;">.headline</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: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<p>With that, our headline is looking great. It&#8217;s perfectly centered has a greatly reduced vertical height. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/htmlkickstart-6.jpg" alt="screenshot" width="510"/></div>
<h2>Using the Grid</h2>
<p>We haven&#8217;t really needed it yet but HTML KickStart does come with a prebuilt layout grid. If you&#8217;ve ever used anything like 960.gs before, there won&#8217;t be any surprises here. It&#8217;s your basic 12 column grid that uses numbered classes (ex: col_5).</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/htmlkickstart-7.jpg" alt="screenshot" width="510"/></div>
<p>As you can see, to get the full width, you need the total of your column class numbers to add up to 12. So if you want to split the page in half, you&#8217;ll create two divs, each of which have the class &#8220;col_6&#8243; (6 + 6 = 12). You can do this with any combination that adds up to 12: col_7 + col_5, col_2 + col_10, etc. </p>
<p>To test this, we&#8217;ll do what I always do to test a grid system, code a basic three column layout. The CSS for this is already in place so busting out a three column layout is as easy as creating three divs, each with the &#8220;col_4&#8243; class. </p>
<p>In each div we&#8217;ll toss three elements: a headline (h3), paragraph and an image. Placeholder images are grabbed via the <a href="http://placehold.it/">placehold.it</a> service.</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;col_4&quot;</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h3</span>&gt;</span>Column One<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;">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: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://placehold.it/284x100/4D99E0/ffffff.png&amp;text=284 x 100&quot;</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;284&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;100&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;col_4&quot;</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h3</span>&gt;</span>Column Two<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;">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: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://placehold.it/284x100/4D99E0/ffffff.png&amp;text=284 x 100&quot;</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;284&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;100&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;col_4&quot;</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h3</span>&gt;</span>Column Three<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;">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: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://placehold.it/284x100/4D99E0/ffffff.png&amp;text=284 x 100&quot;</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;284&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;100&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></ br></p>
<p>Now we have a nice three column section under our headline. How easy was that?</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/htmlkickstart-8.jpg" alt="screenshot" width="510"/></div>
<h3>A Little Cleanup</h3>
<p>Looking at the example up to this point, I think the content is pushing up a little to close to the edge for my liking. To fix this, I wrapped everything after the menu into a &#8220;col_12&#8243; div. The difference is subtle, but it feels much better from a whitespace perspective. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/htmlkickstart-9.jpg" alt="screenshot" width="510"/></div>
<h3>Changing the Background</h3>
<p>While we&#8217;re tweaking things, let&#8217;s go in and swap out that background graphic. You&#8217;ll find this in the style.css file under the layout 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: #808080; font-style: italic;">/*---------------------------------
	LAYOUT
-----------------------------------*/</span>
body<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: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#efefef</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">css/img/grid.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat</span> <span style="color: #993333;">center</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span><span style="color: #993333;">normal</span> <span style="color: #933;">0.9em</span>/<span style="color: #933;">150%</span> <span style="color: #ff0000;">'Arimo'</span><span style="color: #00AA00;">,</span> <span style="color: #ff0000;">&quot;Trebuchet MS&quot;</span><span style="color: #00AA00;">,</span> arial<span style="color: #00AA00;">,</span> verdana<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-shadow</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #993333;">transparent</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* google font pixelation fix */</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<p>All you have to do is replace the &#8220;grid.png&#8221; image with your own background pattern. I grabbed <a href="http://subtlepatterns.com/?p=1024">this one</a> and dropped it in just to give our page some contrast.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/htmlkickstart-10.jpg" alt="screenshot" width="510"/></div>
<h2>Slideshows and Buttons</h2>
<p>We&#8217;ve still barely scraped the surface of the great elements that are available in this framework. Let&#8217;s bust out a quick new section that utilizes some more features.</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;headline col_12&quot;</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>Here's Another Section<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>This time we'll be utilizing a slideshow and a button.<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: #808080; font-style: italic;">&lt;!-- END SECONDARY HEADLINE --&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;col_8&quot;</span>&gt;</span>
	<span style="color: #808080; font-style: italic;">&lt;!-- Slideshow --&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;slideshow&quot;</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;600&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;350&quot;</span>&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&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;http://placehold.it/550x350/4D99E0/ffffff.png&amp;text=550x350&quot;</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;600&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;350&quot;</span> <span style="color: #66cc66;">/</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>&gt;&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;http://placehold.it/550x350/75CC00/ffffff.png&amp;text=550x350&quot;</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;600&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;350&quot;</span> <span style="color: #66cc66;">/</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>&gt;&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;http://placehold.it/550x350/E49800/ffffff.png&amp;text=550x350&quot;</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;600&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;350&quot;</span> <span style="color: #66cc66;">/</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>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span><span style="color: #808080; font-style: italic;">&lt;!-- END SLIDESHOW --&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;col_4&quot;</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h3</span>&gt;</span>A Slideshow!<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;">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: #000000; font-weight: bold;">button</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;blue&quot;</span>&gt;</span>A Sample Button<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">button</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: #808080; font-style: italic;">&lt;!-- END SLIDESHOW PARAGRAPH --&gt;</span></pre></div></div>

</div>
<p></ br></p>
<p>Let&#8217;s walk through this piece by piece. First, we started with a headline exactly like the last one that we used. We reused our headline class from before so we shouldn&#8217;t need anymore custom CSS.</p>
<p>Next up, we used the awesome HTML KickStart Slideshow feature. This is implemented in a very similar way to the menu that we started with. Just toss in an unordered list with the class set to &#8220;slideshow&#8221;, define your height and width, then drop in some list items. Each list item will then become a slide. You can put anything you want inside of slides: text, images, etc.</p>
<p>Just like with the menu, this slideshow will automatically be functional as long as you&#8217;ve included the requisite JavaScript files that come with the download. This is an important feature, Twitter&#8217;s bootstrap requires some extra hoop jumping to get the JavaScript up and running but it&#8217;s truly effortless with HTML KickStart.</p>
<h3>Buttons</h3>
<p>Notice that the slideshow is in a &#8220;col_8&#8243; div, which means we need a &#8220;col_4&#8243; div for the next part, which is just a simple paragraph referencing the slideshow.</p>
<p>In this paragraph you&#8217;ll notice that I used a simple &#8220;button&#8221; element with a class of &#8220;blue&#8221;. There are all kinds of pre-built buttons to choose from: plain and gray, colored, you can even add icons! </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/htmlkickstart-11.jpg" alt="screenshot" width="510"/></div>
<p>I chose to go with the simple blue for this button but it&#8217;s just as easy to use any of the others. Drop in the code from the examples on the site and you&#8217;re good to go. </p>
<p>Here&#8217;s a shot of what this section looks like. Once again, without a single bit of extra CSS or JavaScript we were able to accomplish some impressive feats!</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/htmlkickstart-12.jpg" alt="screenshot" width="510"/></div>
<h2>Footer</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/htmlkickstart-13.jpg" alt="screenshot" width="510"/></div>
<p>Included in your sample files is an example of a footer. This is important because it shows you how to break out of the grid and establish a full width colored area, something that I struggled with in my own attempts before noticing the footer. </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;clear&quot;</span>&gt;&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;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;footer&quot;</span>&gt;</span>
This page was built with <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://www.99lime.com&quot;</span>&gt;</span>HTML KickStart<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span> for <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://designshack.net/&quot;</span>&gt;</span>Design Shack<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>.
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;link-top&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#top-of-page&quot;</span>&gt;</span>Top<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</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>Here it uses an ugly, non-semantic div to clear the floats, but this is a fairly common practice and really isn&#8217;t the end of the world so don&#8217;t get too caught up with it. </p>
<p>To style the footer div, some padding and color was applied and the little link to the top of the page was prettied up a bit. This transition is animated via some more fancy built-in JavaScript. </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: #cc00cc;">#footer</span><span style="color: #00AA00;">&#123;</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: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</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: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#efefef</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;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">0.8em</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #cc00cc;">#link-</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#666</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</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;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#e5e5e5</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">100%</span><span style="color: #00AA00;">;</span>
	-moz-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
	-webkit-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
	border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<h2>Final Product</h2>
<p>We could keep going for days with all of the stuff that&#8217;s in this toolkit. You&#8217;ll also find pre-styled tables, forms, image galleries, breadcrumbs, tabs, horizontal rules and even pre code snippets. </p>
<p>With what we&#8217;ve gone through, you get the basic idea for how it all works. The documentation is very thorough so all you really have to do is find the item you want to insert, then paste the code into your HTML and tweak as needed. Here&#8217;s another look at the page we just built:</p>
<p><strong>Demo:</strong> <a href="http://designshack.net/tutorialexamples/htmlkickstart/index.html">Click Here</a> to launch.</p>
<div class="tutorialimage"><a href="http://designshack.net/tutorialexamples/htmlkickstart/index.html"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/htmlkickstart-14.jpg" alt="screenshot" width="510"/></a></div>
<h2>Who Is This For?</h2>
<p>Now that we&#8217;ve seen <em>how</em> to use HTML KickStart, it&#8217;s important to discuss <em>why</em> you would use it. Perhaps even more relevant is who should think about giving this a shot.</p>
<p>Like most fully featured frameworks and boilerplates, HTML KickStart provides you with a really solid starting point for your development projects, not only from an HTML standpoint, but for CSS and even JavaScript as well. You should think about giving it a look if you don&#8217;t currently have a system in place that makes starting new projects easy.  </p>
<div class="pullquote-r">
&#8220;The real strength in these types of toolkits is rapid prototyping&#8221;
</div>
<p></ br></p>
<p>Keep in mind that there&#8217;s a lot in this toolkit, too much for many developers&#8217; taste. You can pick and choose what you want and leave out the rest, but also consider that the real strength in these types of toolkits is rapid prototyping. In a finished product, you may want to take the time to work out a layout scheme and all these bits of styling manually, but in the initial concept stages, why not upgrade your non-functioning wireframes to something like what we built today? It&#8217;s much more interactive than a flat sketch and really doesn&#8217;t take much more time to bust out. </p>
<h2>Is It Any Good?</h2>
<p>To be sure, this is not the only product of its kind on the market. There are a million different free frameworks out there, each with their own degree of custom styling. As I mentioned above, the closest thing I&#8217;ve seen to HTML KickStart is Twitter&#8217;s Bootstrap. In fact, the two projects are nearly identical at a glance. </p>
<p>Having tried both, there&#8217;s definitely a lot that I like about Bootstrap better. For starters, the layout is a little tighter and the docs go through advanced features like offsetting columns. I also like Bootstrap&#8217;s typography styles better and really appreciate the LESS integration.</p>
<p>That being said, there are some things that I like about HTML KickStart that you won&#8217;t find in Bootstrap. For instance, the slideshow feature is a huge bonus and something that I would genuinely use quite a bit. Further, all of the JavaScript in HTML KickStart &#8220;just works&#8221; while I had to do a lot of fiddling to get things working in Bootstrap.</p>
<p>Ultimately, I recommend that you give both a quick test drive to see which you like better. Even better, use both as inspiration for developing your own personal framework that&#8217;s custom-tailored to your needs.</p>
<h2>Conclusion</h2>
<p>HTML KickStart is an awesome project and I truly appreciate all the handwork that&#8217;s been put into it. When members of the development community distribute projects like this freely, I&#8217;m always amazed by their generosity and willingness to help others.</p>
<p>By now you should have a solid understanding of what HTML KickStart is, what it does, how to use it and whether or not it&#8217;s right for you. Leave a comment below and let us know what you think. How does this project compare to other similar toolkits that you&#8217;ve used?</p>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/css/htmlkickstart/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Nailing Browser Support in CSS3 and HTML5: Invaluable Resources to Use Today</title>
		<link>http://designshack.net/articles/css/nailing-browser-support-in-css3-and-html5-invaluable-resources-to-use-today/</link>
		<comments>http://designshack.net/articles/css/nailing-browser-support-in-css3-and-html5-invaluable-resources-to-use-today/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 17:23:23 +0000</pubDate>
		<dc:creator>Joshua Johnson</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[compatibility]]></category>
		<category><![CDATA[cross browser]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[html5]]></category>

		<guid isPermaLink="false">http://designshack.net/?p=28778</guid>
		<description><![CDATA[New technologies are making web development more exciting than ever before. HTML5 and CSS3 provide a double dose of modern practices that are absolutely refreshing and empowering. Unfortunately, utilizing these technologies can considerably complicate your quest for cross browser compatibility. How can you know which techniques are safe to use now and which you should [...]]]></description>
			<content:encoded><![CDATA[<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/compatibilitybuffer-0.jpg" alt="screenshot" width="510"/></div>
<p>New technologies are making web development more exciting than ever before. HTML5 and CSS3 provide a double dose of modern practices that are absolutely refreshing and empowering. Unfortunately, utilizing these technologies can considerably complicate your quest for cross browser compatibility. </p>
<p>How can you know which techniques are safe to use now and which you should either provide alternatives to or avoid altogether? Join us as we take a look at a handful of our favorite resources that quickly and easily help you make informed decisions about real world HTML5 and CSS3 implementation. </p>
<p><span id="more-28778"></span><br />
<em>Like the article? Be sure to subscribe to our <a href="feed://feeds.feedburner.com/designshack">RSS feed</a> and follow us on <a href="http://twitter.com/designshack">Twitter</a> to stay up on recent content.</em></p>
<h2>Simply Irresistible</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/compatibilitybuffer-10.jpg" alt="screenshot" width="510"/></div>
<p>Cross browser compatibility was difficult enough a few years ago before we started diving into fancy new technologies like HTML5 and CSS3. Now with these tools creeping to the forefront of our development methods, it can be a downright mess.</p>
<p>The benefits of using HTML5 and CSS3 are clear and undeniable. They&#8217;re so full of goodies and fun that nary one in ten developers can resist at least dipping a toe in to test the waters. To further the hype, authors like me are constantly dishing out awesome new tutorials that teach you the ins and outs of these technologies, thereby fueling your desire to put them into practice as soon as possible. </p>
<h2>Are We Rushing Ahead?</h2>
<p>While most of us are rushing headlong into utilizing the latest and greatest in web development trends, a few more rational souls are begging us to slow down. New toys are all well and good but much of this stuff is still under construction and the rest hasn&#8217;t been implemented well across all of the important browsers. </p>
<p>So who is right? How can you as a practical, real world developer know whether to buy into the hype and run with the new or trust the skeptics and stick with the tried and true methods from years past? </p>
<h2>Stop the Guesswork</h2>
<p>The single best thing that you can do to decide whether you can personally begin to implement new web technologies is to educate yourself on the support that you can expect for each new item in the various browsers that matter most to your audience. </p>
<p>This sounds like a lot of work doesn&#8217;t it? There are countless blogposts, books and websites dedicated to teaching you this stuff, enough to eat up an entire lifetime and more. The amount of material is so completely overwhelming that you might avoid learning simply out of intimidation.</p>
<p>Fortunately, there are some very easy and straightforward ways to make sure that what you&#8217;re doing will work well across various browsers. You won&#8217;t have to sort through mile long blog posts or read a stack of books every time you want to toss in a drop shadow, you&#8217;ll just need a quick look at a few select resources to get you going. </p>
<h2>Browser Compatibility Charts: A Developer&#8217;s Best Friend</h2>
<p>The very first thing that I recommend that you do in your quest to figure out which new technologies you can implement today is to bookmark one or two solid browser compatibility charts. </p>
<p>These resources are invaluable and can save you endless hours of research. They serve as a quick reference that immediately helps you identify which browsers do and don&#8217;t support the techniques that you&#8217;re trying to implement. Some of the better choices even offer help getting the older browsers to play nice. </p>
<h3><a href="http://caniuse.com/">When can I use&#8230;</a></h3>
<p><a href="http://caniuse.com/">Caniuse.com</a> is certainly not the prettiest option available for browser compatibility charts, but it is one of the most helpful and thorough.</p>
<div class="tutorialimage"><a href="http://caniuse.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/compatibilitybuffer-1.jpg" alt="screenshot" width="510"/></a></div>
<p>The organization here is very simple and easy to use: just click an item from any of the five categories (CSS, HTML5, SVG, JS API and Other) and you&#8217;ll be taken to a chart showing you the support for various browsers. Also, the search provides <em>instant results</em> as you type so answers to all your browser questions are never more than a few keystrokes away.</p>
<p>For instance, let&#8217;s say you read my <a href="http://designshack.net/articles/css/the-lowdown-on-before-and-after-in-css/">recent article on :before and :after</a> and would like to double check my statements about browser compatibility for the :after pseudo element (always double check your facts!), all you have to do is type &#8220;after&#8221; into the search bar and the chart below will pop up. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/compatibilitybuffer-2.jpg" alt="screenshot" width="510"/></div>
<p>There&#8217;s a ton of great information here for you to utilize. The chart informs us that we&#8217;ve got great support across the board for current browsers (even IE), but run into some trouble two versions back with IE7 and before. </p>
<p>In addition to the compatibility chart, you&#8217;ll find two other valuable items: a browser comparison feature and a list of helpful resources. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/compatibilitybuffer-3.jpg" alt="screenshot" width="510"/></div>
<p>The latter of these often includes some really great links. For instance, if you&#8217;re looking up new CSS3 functionality such as gradients, you might get a link for a generator that will do the work for you. In the case above we received a link for a detailed guide explaining the use of CSS generated content using pseudo elements. </p>
<p>The browser compatibility chart allows you to choose two browsers and see an overview of the support for the items in any of the five categories mentioned before.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/compatibilitybuffer-4.jpg" alt="screenshot" width="510"/></div>
<h3><a href="http://www.findmebyip.com/litmus/">FindMeByIP</a></h3>
<p>If you&#8217;re looking to forgo all of the features of the previous site in favor of some plain old extensive browser compatibility charts that you can bookmark and reference in a flash, check out the <a href="http://www.findmebyip.com/litmus/">HTML5 &#038; CSS3 Support page</a> at FindMeByIP. </p>
<div class="tutorialimage"><a href="http://www.findmebyip.com/litmus/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/compatibilitybuffer-5.jpg" alt="screenshot" width="510"/></a></div>
<p>As you can see, the charts here are quite attractive and very easy to read. These are perfect for when you just need to quickly double check something or get an overview of browser support across the board. </p>
<h2>Should You Use It?</h2>
<p>Browser compatibility charts are awesome for letting you know whether or not a given browser supports what you&#8217;re trying to implement, but they only empower you to make decisions, you still have to interpret the information and decide whether or not it&#8217;s safe to proceed.</p>
<p>If you&#8217;re a new developer, this can be intimidating. To help you out further, be sure to check out <a href="http://html5please.us/">HTML5 Please</a>. This community sourced project  flat out tells you whether or not to use a given technique and makes recommendations for how to proceed. You should never follow something blindly, but when you&#8217;re on the fence this can sure help you make the call.</p>
<div class="tutorialimage"><a href="http://html5please.us/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/compatibilitybuffer-6.jpg" alt="screenshot" width="510"/></a></div>
<p>As with <em>When Can I Use</em>, the search bar here provides instant results as you type. Let&#8217;s say you want to know whether or not CSS transitions are safe to implement, simply enter &#8220;transitions&#8221; and the results will filter to the following:</p>
<div class="tutorialimage"><a href="http://html5please.us/#transitions"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/compatibilitybuffer-7.jpg" alt="screenshot" width="510"/></a></div>
<p>Right away we get a recommendation for use, shown in the top right corner of the result:</p>
<div class="tutorialimage"><a href="http://html5please.us/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/compatibilitybuffer-8.jpg" alt="screenshot" width="510"/></a></div>
<p>&#8220;Use with fallback&#8221; is the advice we are given for CSS transitions. This is coupled with some brief and straightforward information that tells us that transitions are safe if they&#8217;re not necessary for a usable experience and that any interaction critical transitions should be backed up with an alternative for other browsers. The necessary browser prefixes for implementation are also provided. For many items, recommended polyfills are provided to help make your implementation as cross browser compatible as possible. </p>
<h2><a href="http://www.modernizr.com/">Modernizr</a> Has Your Back</h2>
<p>The final resource you need to become familiar with in your quest for cross browser compatible CSS3 and HTML5 is <a href="http://www.modernizr.com/">Modernizr</a>. You&#8217;ve no doubt heard of it before, but it&#8217;s time to download it and check it out. </p>
<div class="tutorialimage"><a href="http://www.modernizr.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/compatibilitybuffer-9.jpg" alt="screenshot" width="510"/></a></div>
<p>The reason that Modernizr is so great is that it can automatically detect whether or not a browser supports a given feature and then serve up some JavaScript magic in response. This allows you to account for an impressively wide array of circumstances and provide JavaScript fallbacks and polyfills for older browsers with very little effort. </p>
<p>Modernizr will test for support for over 40 next-gen features, provide on the go information to tell you what will and won&#8217;t be supported and provides the best solutions around to help you respond to any holes in support.  </p>
<h2>Conclusion</h2>
<p>The resources above are all aimed at helping you make informed decisions about whether or not to implement a given HTML5 or CSS3 technique.</p>
<p>Browser compatibility charts provide a quick reference to how you can expect each browser to respond to a given technique, HTML5 Please will give you solid and honest recommendations for whether or not to proceed, and Modernizr will help you identify and fill the functionality gaps in a specific design. </p>
<p>These resources don&#8217;t get you off the hook for <a href="http://movethewebforward.org/">diving into deeper understanding</a> of how to properly implement these features, but they do serve as an awesome starting guide for how and when to proceed. </p>
<p>Leave a comment below and tell us about your favorite resources in this area. Do you use any of the sites listed above? What other tools are invaluable to your workflow?</p>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/css/nailing-browser-support-in-css3-and-html5-invaluable-resources-to-use-today/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Weekly Freebies: 6 Sophisticated and Free Didone Fonts</title>
		<link>http://designshack.net/articles/freebies/wf-didonefonts/</link>
		<comments>http://designshack.net/articles/freebies/wf-didonefonts/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 20:00:36 +0000</pubDate>
		<dc:creator>Joshua Johnson</dc:creator>
				<category><![CDATA[Freebies]]></category>

		<guid isPermaLink="false">http://designshack.net/?p=28757</guid>
		<description><![CDATA[Didone typefaces (also known as Moderns) are a particularly classy type of font that is characterized by heavy contrast between the thick and thin portions (the vertical parts are thick) and typically very thin, unbracketed serifs. They&#8217;re a lot like slab serifs that want to be upscale and fancy. This particular classification of typeface is [...]]]></description>
			<content:encoded><![CDATA[<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-didones-0.jpg" alt="screenshot" width="510"/></div>
<p>Didone typefaces (also known as Moderns) are a particularly classy type of font that is characterized by heavy contrast between the thick and thin portions (the vertical parts are thick) and typically very thin, unbracketed serifs. They&#8217;re a lot like slab serifs that want to be upscale and fancy.</p>
<p>This particular classification of typeface is one of the rarer breeds to find in the free font world so be sure to take all you can get. Today we&#8217;ve got a great little collection of six beautiful and free Didone fonts for you to download and enjoy.</p>
<p><span id="more-28757"></span><br />
<em>Like the article? Be sure to subscribe to our <a href="feed://feeds.feedburner.com/designshack">RSS feed</a> and follow us on <a href="http://twitter.com/designshack">Twitter</a> to stay up on recent content.</em></p>
<h2><a href="http://conqueror.com/#/en/typography/types">AW Conqueror Didot</a></h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-didones-1.jpg" alt="screenshot" width="510"/></div>
<h2><a href="http://www.abstractfonts.com/search/?q=bodidota">Bodidota</a></h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-didones-2.jpg" alt="screenshot" width="510"/></div>
<h2><a href="http://www.fontsquirrel.com/fonts/Theano-Didot">Theano Didot</a></h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-didones-3.jpg" alt="screenshot" width="510"/></div>
<h2><a href="http://www.behance.net/gallery/Otama-ep-Typeface/1100475">Otama e.p.</a></h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-didones-4.jpg" alt="screenshot" width="510"/></div>
<h2><a href="http://www.stereotypes.de/archives/528">Villa Didot</a></h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-didones-5.jpg" alt="screenshot" width="510"/></div>
<h2><a href="http://www.fontsquirrel.com/fonts/DubielPlain">Dubiel Plain</a></h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/wf-didones-6.jpg" alt="screenshot" width="510"/></div>
<h2>
<h2>Love it? Share It!</h2>
<p>If you enjoyed this week’s collection of freebies, share the love and send out a link on your favorite sites. Here’s a convenient snippet for you to copy and paste as you please!</p>
<p><strong>6 Sophisticated and Free Didone Fonts:</strong> <a href="http://goo.gl/YU3hj">http://goo.gl/YU3hj</a></h2>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/freebies/wf-didonefonts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Object Caching 858/979 objects using disk: basic

Served from: designshack.net @ 2012-02-10 01:57:01 -->
