<?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; layout</title>
	<atom:link href="http://designshack.net/tag/layout/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>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>7</slash:comments>
		</item>
		<item>
		<title>Is It Time for Your Business Cards to Go Digital?</title>
		<link>http://designshack.net/articles/is-it-time-for-your-business-cards-to-go-digital/</link>
		<comments>http://designshack.net/articles/is-it-time-for-your-business-cards-to-go-digital/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 06:00:35 +0000</pubDate>
		<dc:creator>Carrie Cousins</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Business]]></category>
		<category><![CDATA[Layouts]]></category>
		<category><![CDATA[layout]]></category>

		<guid isPermaLink="false">http://designshack.net/?p=28342</guid>
		<description><![CDATA[Are traditional paper business cards becoming obsolete? Have you considered a digital option? The type of card you use and how it looks can say a lot about you and your work. The style of card – from simple embossed text on a white card to ornate colors and fonts – can be a client’s [...]]]></description>
			<content:encoded><![CDATA[<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/conradREADY.jpg" alt="screenshot" width="510" /></div>
<p>Are traditional paper business cards becoming obsolete? Have you considered a digital option? The type of card you use and how it looks can say a lot about you and your work. The style of card – from simple embossed text on a white card to ornate colors and fonts – can be a client’s first impression of your work.</p>
<p>You want to use a card that represents your style and works with the kind of clients you work with. When looking for a business card, consider both digital and paper options and integrate your digital self into paper cards. A business card does more than provide your contact information, it is a gateway to your portfolio as well.</p>
<p><span id="more-28342"></span></p>
<p><em>Like the article? Be sure to subscribe to our <a>RSS feed</a> and follow us on <a href="http://twitter.com/designshack" target="_blank">Twitter</a> to stay up on recent content.</em></p>
<h2>Digital Business Cards</h2>
<div class="tutorialimage"><a href="http://about.me/henrytimisela"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/aboutmeREADY.jpg" alt="screenshot" width="510" /></a></div>
<p>It started with the first-generation iPhone and the <a href="http://bu.mp/">Bump</a> application. With a tap, two iPhone users could exchange contact information on the fly without having to hold on to cards or write anything down. Bump is still around today and can be used for more than just contact information but only works between phones (available for iOS and Android), which could be a hindrance when doing business.</p>
<p>Most recently, people are beginning to turn to web-based business “cards.” Sites like <a href="https://about.me/">About.me</a>, <a href="https://identyme.com/">IdentyMe</a> and <a href="http://flavors.me/">Flavors.me</a> allow users to create a digital presence using a mix of photos and graphics – use preset choices or upload your own – with links to all of the users’ relevant work. You can connect to Facebook, Twitter, LinkedIn, Instagram, Foursquare, blogs and a host of other sites. With just one link, you can connect clients to all of your relevant information on the web. Because these networks are public, you can share and access your digital business card with a variety of potential clients that you might not have been able to contact otherwise.</p>
<p>A custom site is easy to create and just requires registration. You can change and update your digital card at any time. Make sure to keep your digital profile current and add keywords that describe what you do so your card is picked up in online searches. </p>
<p>Include a link to your digital profile on all outgoing correspondence and embed a custom QR code into your site so that potential clients can add your contact information to their phones and databases in a snap. (A QR, or quick response code, is a customizable barcode that can be used to store information and is readable with smartphones. Think of a QR code as a universal “Bump,” which is universally readable by iPhone, Android and BlackBerry phones.)</p>
<p>Think about what your digital profile says about your work. As a designer, you should look beyond stock images or templates. Use some of your own work as the main image. The design should represent a sample of what you can do for clients.</p>
<p>Try not to go overboard with images and fonts, the main thing you want to accomplish is to provide information so you can pick up clients. Make sure phone numbers and addresses are clearly visible as well as links to related work.</p>
<h3>Pros</h3>
<p>The best part about going the digital route is that everything is connected. Instead of listing a host of links on the back of a business card, you need just one link that can send people to different parts of your portfolio. You can update your profile as often as you like and don’t have to send out new links when you update the site or your contact information.</p>
<p>Going the digital route also helps keep your costs down. The “cards” are fully customizable and free on most sites. Shop around to find the site that works best for you, because some do charge to house your digital account. Access to some premium features, such as mobile layouts and custom domain names, come with an annual fee on some sites.</p>
<p>Most digital cards allow an almost unlimited number of options to showcase your portfolio. You can post video, flash images and photos in addition to links and text. You don’t have to worry about running out of space in the same way you do on a 2 inch by 3.5 inch card.</p>
<h3>Cons</h3>
<p>Some clients may not quite be on board with the digital trend and prefer paper products and you won’t have anything to hand out when you meet people in person. Evaluate your client base and their needs before ditching paper cards altogether. Links can sometimes be hard to remember and may get lost if you jot them down on paper.</p>
<p>Also think about the way you use business cards. Do you post them on billboards to drum up business? Or pass out hoards of cards at conferences or business meetings? Going digital may not be the best option if your cards are used this way.</p>
<h2>Traditional Business Cards with Digital Elements</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/cards.jpg" alt="screenshot" width="510" /></div>
<p>For most designers, the easiest link between digital and traditional business cards is something of a meshed version. While making the full-scale digital transition, think about printing a few paper business cards with a digital touch.</p>
<p>Create a QR code – try a free service such as JumpScan, BeQRious or QuickQR – and download your personalized QR image. Then just add the image to each of your business cards when you have them printed. If you already have a stack of cards and want to add a code, consider adding printed stick-on labels to the back of your cards. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/QRcard.jpg" alt="screenshot" width="510" /></div>
<p>Create a digital business card and embed that link in the QR code printed on your paper cards. Having both types of cards can help you expand your business reach and will allow those paper clients to get a taste of your digital products. When designing your paper and digital cards, consider creating a visual link between the two. Use the same image, fonts and color scheme to create a brand identity.</p>
<p>Passing out a business card has an element of traditional classiness and can say a lot about the person handing it out. The quality of printing, use of typography and color can serve as a lasting impression about your style of design. Make sure your cards have personality. Shoot for a special paper or color with a lot of pop and have them printed professionally.</p>
<h3>Pros</h3>
<p>Some people just like the feel of a card. They are easy to save and identify. Cards that are blank on the back are great for scribbling a little extra nugget of information for clients, such as a price quote. Having a card to hand out can make you look more professional and lend a little extra credibility to a new business.</p>
<p>You get the traditional look and feel of paper business cards with your portfolio attached. When you hand out cards, people can scan the code and toss the card without losing track of your information. You can also show a client your work on the fly with a quick scan of the code. Creating a code only takes a few minutes and can be done for free. Use a QR code generation site that allows you to update your code as well, so you can add links and keep your digital profile up-to-date.</p>
<h3>Cons</h3>
<p>Nice business cards can be expensive to print and need to be reprinted if contact information changes. Cards can also be lost or thrown away. For some, using a paper card just does not work with the type of business being done in the digital marketplace. If you include links on a card, they need to be short (or sassy) enough that they are easy to remember and type. Cards also offer a limited amount of space to make an impression, and don’t always allow designers to showcase the full scope of their work.<br />
Not all of your clients may understand QR codes and you may have to explain what the code is and how it works. </p>
<h2>Information to Share (and Avoid)</h2>
<p>A digital business card allows you an unlimited space to promote yourself, but make sure to limit what you publish online. Try not to overwhelm potential clients with too many project links. Use your digital business card to promote your best work and not everything you ever created.</p>
<p>Always make sure your contact information is clearly stated. Remember that some people who check out your digital business card will still want to visit you or pick up the phone as well as send you an email.</p>
<p>Create space between your personal and professional selves. Do you use Facebook and Twitter for business? Include those links. If your accounts are strictly personal, don’t include them in your professional online profile. Make sure to use only links for sites that you monitor regularly. If you only log in to Facebook once a year, don’t bother adding it to your profile.</p>
<h2>Digital Cards with Pop</h2>
<h3>Represent Your Work</h3>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/liREADY.jpg" alt="screenshot" width="510" /></div>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/kimREADY.jpg" alt="screenshot" width="510" /></div>
<p>Nothing sells your work better than showing off good work. Photographer Ricky Li does just that with his card. Using a striking and colorful photo, Li shows the kind of work he produces and provides a link to more if his photography. June Kim uses a super interesting image that represents Kim’s work and incorporates her name into the image. He resume opens with just a click and you contact information is clearly visible.</p>
<h3>Use Your Face and Type</h3>
<div class="tutorialimage"><a href="http://about.me/tonyconrad"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/conradREADY.jpg" alt="screenshot" width="510" /></a></div>
<div class="tutorialimage"><a href="https://identyme.com/mark.frederking#home"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/identyREADY.jpg" alt="screenshot" width="510" /></a></div>
<p>Tony Conrad, co-founder of about.me, uses his photo to sell himself and here it works. The photo is striking and makes you look twice, especially with the contrast of the start black and white photo with the blue text box. Mark Frederking took a similar approach with his card, using his face on a plain, but clean, background. Both cards use strong text choices – an interesting font for Conrad and a color that pops for Frederking – to pull you in.</p>
<p>The most striking use of a self-portrait and type is from Henry Timisela (shown near the beginning of this article). From the image you know what he does, and his achievements are stated with links to his work. The card uses a clean, crisp style which you might associate with his work. </p>
<h2>Conclusion</h2>
<p>Digital business cards may be the next big thing and can help your promote your work to a client base that you have yet to meet. Going the digital route allows you to showcase more of your work and can be inexpensive, but it might not always work for your client base. </p>
<p>Consider using both paper and digital business cards to get your name out. This will allow clients who meet you face-to-face to take a little reminder of you with them and hopefully do online to learn more about your work. Remember, both types of cards can be a lasting impression of you and your work so make sure they represent you well.</p>
<p><em>Image Sources: <a href="http://www.flickr.com/photos/muraterturk/3840288471/">Murat Erturk</a>, and <a href="http://www.flickr.com/photos/jaaronfarr/1404742455/">jaaron</a></em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/is-it-time-for-your-business-cards-to-go-digital/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Hands on With the New Twitter Design</title>
		<link>http://designshack.net/articles/reviews/hands-on-with-the-new-twitter-design/</link>
		<comments>http://designshack.net/articles/reviews/hands-on-with-the-new-twitter-design/#comments</comments>
		<pubDate>Fri, 09 Dec 2011 06:00:53 +0000</pubDate>
		<dc:creator>Carrie Cousins</dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://designshack.net/?p=27339</guid>
		<description><![CDATA[Twitter launched a radically new layout to users Thursday. The first to see the new look were mobile users through the Twitter iPhone and Android apps. After updating those apps, the new look of Twitter became active on those users’ computers as well. All other users will begin to see the updated Twitter look over [...]]]></description>
			<content:encoded><![CDATA[<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/newtwitter1.jpg" alt="screenshot" width="510"/></div>
<p>Twitter launched a radically new layout to users Thursday. The first to see the new look were mobile users through the Twitter iPhone and Android apps. After updating those apps, the new look of Twitter became active on those users’ computers as well. All other users will begin to see the updated Twitter look over the course of several months.</p>
<p>The results are mixed. The new look and interface is great for mobile users and the sleek interface is cool. Features on the computer version mix the super-sleek interface with a few bonuses but also a few misses. Pages have more pop but still have the look and feel you would associate with Twitter. The site also rolled out branding pages for companies that have a nice look but could change the organic feel that has brought people to Twitter.</p>
<p>Visually, Twitter has reinvented itself consistently across various platforms. Aside from slight, device-specific tweaks the interface looks the same on the website, on a tablet and on a smartphone (no update for the Mac app as of yet). The biggest plus for designers and other visual professionals is an enhanced use of images to push you toward content. Twitter is starting to define itself as more than just a 140-character platform.</p>
<p><span id="more-27339"></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>Web Design</h2>
<p>The Twitter update adds a variety of new features, including better search functionality, keyboard shortcuts and better tools for social interaction.</p>
<p>The worst part? Twitter flipped the location of key items on its homepage, moving the timeline to the right and all of the extras to the left. I have clicked the wrong item on multiple occasions.</p>
<h3>Home, Connect and Profile</h3>
</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/newTwitterSHAQ.jpg" alt="screenshot" width="510"/></div>
<p>These three “new” features speak for themselves. Home is a user’s landing page, and clicking the connect symbol (@) will show a user’s timeline. The thing that looks the most different is the profile page, which makes the account holder a star on his or her page. Profile information is in a larger box that stretches across the page with a much larger icon. Custom backgrounds are still very visible (and don’t have to be reset with the update).</p>
<p>Twitter did not change the font, size or color usage in tweets other than to make link text gray rather than black. So the timeline looks pretty much the same. It’s all the stuff around it that has an added pop (in part because of the lack of visual change to the basic part of the site).</p>
<p>Designers who are marketing themselves or their work could benefit from the use of larger images throughout the site design. The list of recent items has images that are also a bit larger as well. Images and videos now appear in each user’s timeline and are viewable without a link to another site.</p>
<h3>Discover</h3>
</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/newtwitterDISCOVER.jpg" alt="screenshot" width="510"/></div>
<p>The new “Discover” feature is a mashup between hashtags and trending topics. Click on the icon and get immediate access to things generating buzz. Each topic has a link to pages for that topic or hashtag.</p>
<p>This is one of those fun little features that adds visual punch to trending items. The photos and text are much larger than in the general timeline and really looks newsy in the mobile application. The downside is that it adds an almost false sense of credibility to Twitter as a news organization because the feature so closely resembles some news websites.</p>
<h3>Hello, Shortcut Keys!</h3>
</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/newTwitterSHORTCUTS.jpg" alt="screenshot" width="510"/></div>
<p>Twitter developers built 21 keyboard shortcut combinations so you can get away from the mouse. Want to send a Tweet? Hit “n” and the dialogue box pops right up.</p>
<p>The keys are something I have been waiting for. Unfortunately, they don’t work quite like shortcuts in other applications. Because the web browser already uses ctrl-letter combinations, Twitter uses single-letter keys. I must admit, it has made me a little nervous in the early stages. Am I typing random letters somewhere?</p>
<p>But it seems to work. Even the “gh” combination to get to the home screen sends me there without stray letters or Tweets getting sent out. The shortcuts don’t work when the Tweet window is active though, which prevents inadvertent tweeting.</p>
<p>But is it too late? After clicking through Twitter all this time, will users take to having keyboard shortcuts? It sounds like a great concept, but I am not convinced my habits will change. Still, it&#8217;s nice that they went the extra mile and included them for users who prefer to use the app this way.</p>
<h2>Mobile Design</h2>
</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/newtwitterphones.jpg" alt="screenshot" width="375"/></div>
<p>Twitter’s biggest improvement affects mobile users. I left Twitter for third-party applications on my smartphone a long time ago. Twitter’s app could not compete with the speed and simplicity of others that were free to download and use. Maybe that is why Twitter is offering the new-look site to its mobile users first, to get us to come back (it worked for me.)</p>
<p>It more than met my expectations. The feed is easy to navigate with home, connect, discover and me buttons that are anchored at the bottom of the screen (these are anchored on the left for tablet users). The &#8220;Discover&#8221; feature is visually appealing with large images and text and might be my new go-to source for information on the go. It is tailored to the mobile user as well and, according to Twitter, will adapt to your preferences with use. It uses your interests and location (if allowed) to showcase relevant trending topics.</p>
<p>The smartphone app looks and works like Twiter.com on a computer. It is easy to follow users without having to leave the item you are viewing. The tablet application has the same feel as well, with a popup window to view links without navigating away from the timeline.</p>
<h2>Brand Pages</h2>
</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/newTwitterBRANDS.jpg" alt="screenshot" width="510"/></div>
<p>There goes the grassroots feeling that has made Twitter the anti-Facebook. With the update, Twitter introduced brand pages for companies. (Facebook and Google+ already offer something similar.)</p>
<p>It is a great concept for your small-time design shop or freelance business. Registering through Twitter advertising allows companies to have a distinct layout with a banner featuring a company logo rather than just the Twitter user icon, and other extras such as logos, taglines, videos and quick access to promoted Tweets, according to the Twitter Advertising Blog. In addition, Twitter promises that no other companies’ advertisements will appear on your page.</p>
<p>The new features will be free to all users, according to the Twitter Advertising Blog, but are being tested with only a handful of companies at this time. Most are household names – McDonald’s, Coca-Cola, Nike, Verizon Wireless and a page for the latest movie in the Mission: Impossible franchise. The new pages are only viewable on the new Twitter interface and there is no definite timeline for when these pages will be available to everyone; Twitter says it will be rolled out “in the coming months.”</p>
<p>These pages look good. As soon as you hit the page for @nikebasketball, the owner of the site is obvious. The brand pages have a visual definition that has been lacking on Twitter until now.</p>
<p>This feature could be a great asset to designers trying to showcase certain work and who are working with a limited advertising budget. Since Twitter does not charge to host a site, there is no upfront cost. Just visit Twitter.com and complete the business registration, upload your information and start tweeting.</p>
<h2>The Lowdown from a Design Perspective</h2>
<p>Historically, Twitter&#8217;s UI branding has been a bit all over the place. The iPhone, iPad, Android, web and Mac versions each had their own visual presentation style. This overhaul is a clear attempt to tie it all together and you can expect to see similar changes rolled out over the remaining areas sometime soon. Items like the new Home, Connect and Discover symbols give the official Twitter brand a much needed distinct style that helps it stand out from the third party Twitter universe (at least for now). </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/newnewtwitter-josh-2.jpg" alt="screenshot" width="510"/></div>
<p>There are some nice usability tweaks as well in the web interface. For instance, clicking on a tweet expands it to show relevant information like retweets and other pieces of the conversation. This strategic placing of key information helps keep the interface clean and simple. This type of functionality also gives the web app a richness that makes it feel more like a native app, a clear trend in web app design that has really taken off lately. </p>
<p>Another interesting design observation: With each new iteration Twitter&#8217;s design focus on pure text tweets has faded. The latest round really pushes the new Twitter image-sharing service. Features like the new media grid shown below and the ability to embed videos into business pages hint that the days of Twitter being the simplest social media site around are over. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/newnewtwitter-josh-1.jpg" alt="screenshot" width="510"/></div>
<p>This represents an interesting change in identity that some users will hate initially, but I suspect we&#8217;ll all adjust before no time. However, in the long run it raises questions about just who Twitter wants to be. Let&#8217;s hope they can keep their core focus while adding helpful features and avoiding bloat.</p>
<h2>Conclusion</h2>
<p>Twitter has added enough extras and visual interest to its homepage that will allow it to compete with some of the other applications out there such as Hoot Suite and Tweet Deck. The look of the interface is much more visual with variance in text and photo sizes.</p>
<p>Although it has some faults, the new design works because it is simple and organized. Twitter may win back some users who have not been using their mobile applications with the streamlined site across platforms. Branding is a bonus for companies and looks really nice, but I worry all the corporate pages will just junk up my timeline with unwanted ads.</p>
<p>What do you think of the new Twitter design and functionality changes? What do you love? What do you hate? We want to know!</p>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/reviews/hands-on-with-the-new-twitter-design/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Design Study Into Mac OS X App Websites</title>
		<link>http://designshack.net/articles/layouts/design-study-into-mac-os-x-app-websites/</link>
		<comments>http://designshack.net/articles/layouts/design-study-into-mac-os-x-app-websites/#comments</comments>
		<pubDate>Wed, 26 Oct 2011 14:00:56 +0000</pubDate>
		<dc:creator>Jake Rocheleau</dc:creator>
				<category><![CDATA[Layouts]]></category>
		<category><![CDATA[apps]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[mac osx]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://designshack.net/?p=25872</guid>
		<description><![CDATA[Apple has always demanded the highest calibre of work from its employees even since its founding in the late 1970s. Many designers have just recently moved into the OS X environment, and most fall in love at first sight. Mac OS X Lion offers so many features that you just can&#8217;t find elsewhere &#8211; most [...]]]></description>
			<content:encoded><![CDATA[<p>Apple has always demanded the highest calibre of work from its employees even since its founding in the late 1970s. Many designers have just recently moved into the OS X environment, and most fall in love at first sight. Mac OS X Lion offers so many features that you just can&#8217;t find elsewhere &#8211; most notably of which may be the App Store.</p>
<p>From here you gain access to a slew of applications both free and paid. These are all built for OS X Lion and can be downloaded directly into Launchpad. In this case study I&#8217;ll be looking into design trends for Mac app websites. These are specifically geared towards OS X and do not include iOS apps&#8230; the styles are very different. Along with these tips I have also compiled a small showcase gallery of my favourite Mac app sites to share a bit of inspiration.</p>
<p><span id="more-25872"></span></p>
<h2>Enlarge your Key Points</h2>
<p>When people land onto any app website they hope to figure out the purpose of the application very quickly. The easiest way to do this is by immediately grabbing the visitors&#8217; attention and guiding them throughout the layout. And from past experience it seems jumbo-sized text/graphics will often do the trick.</p>
<div class="tutorialimage"><a href="http://www.alfredapp.com/"><img class="alignNone size-full" src="http://designshack.net/wp-content/uploads/alfred-app-home.jpg" alt="Alfred App for Mac" width="510" /></a></div>
<p>Alfred App is one such example which incorporates the entire screen into a sliding layout. Both the app logo and download button jump off the page at a glance, along with the monstrous app icon! Users familiar with the Alfred app will recognize the unique hat and magnifying glass. And it&#8217;s not just the top page area, either.</p>
<div class="tutorialimage"><a href="http://www.alfredapp.com/#alfred-features"><img class="alignNone size-full" src="http://designshack.net/wp-content/uploads/alfred-features-app-page.jpg" alt="Alfred Screen features" width="510" /></a></div>
<p>As you scroll down you should notice each page section is also broken into pieces. The demo screenshot area has a small column for thumbnails with a beautiful display of the app. Just by checking out the few demo shots it&#8217;s generally understood what the app can do. As you find more application websites keep your eyes open for the &#8220;big picture&#8221; stuff which is meant to stand out. Also keep yourself thinking about what should be jumping off your own app website.</p>
<h2>Clean-cut Characteristics</h2>
<p>The more popular site designs are often featuring the same type of elements. This could be a more finalized and detailed icon design, fancy logo text, and other fun graphics. But you should follow Apple&#8217;s example and cut out the expendable stuff. Clean and simplified interfaces will keep your visitors&#8217; focus moving through more downloads and purchases.</p>
<p>I am a huge fan of Instagram which has taken up plenty of my time on iOS. And the <a href="http://carousel.mobelux.com/">Mac app Carousel</a> is a beautiful sister-service on the desktop. If you notice their site layout features a smaller logo area with more room for screenshots. Additionally the typography appears more refined to match the classy, upscale theming.</p>
<div class="tutorialimage"><a href="http://carousel.mobelux.com/"><img class="alignNone size-full" src="http://designshack.net/wp-content/uploads/carousel-mac-osx-screen.jpg" alt="Carousel App for Mac OSX" width="510" /></a></div>
<p>You should also notice there isn&#8217;t any main navigation here. Consider duplicating this for your own app website, it removes a lot of user frustration. This idea goes double for mobile users finding your website for the first time on iPhone or Android. If you can portray your app&#8217;s message on a single page I say <em>go for it</em>!</p>
<h2>Include Standard App Store Icons</h2>
<p>To grab your visitor&#8217;s attention is one important requirement, but you also want to garner their trust. And people who are using the Mac OS are generally trusting of Apple developers. You should include badges and/or buttons on your site to let people know that you&#8217;ve been published into the app store. It may seem small, but it can be of huge significance to new potential customers.</p>
<div class="tutorialimage"><a href="http://colorsnapper.com/"><img class="alignNone size-full" src="http://designshack.net/wp-content/uploads/colorsnapper-mac-app-store-badges.jpg" alt="Colorsnapper for Mac OSX" width="510" /></a></div>
<p>The <a href="http://developer.apple.com/appstore/mac/MacAppStoreMarketingGuidelines.pdf">Mac App Store Marketing Guidelines</a> (PDF) go into a bit of detail about the App Store badge you see on most of the popular Mac apps. I also like to hit up <a href="http://dribbble.com/search?q=mac+app+store">dribbble&#8217;s shots</a> to see if anybody has cool design sets or icons relative to the theme.</p>
<h2>Provide a Demo Where Possible</h2>
<p>Remember the whole point of conveying your message quickly? This can most easily be achieved through images or video &#8211; no big surprise there. But even just thumbnail galleries or slideshows sometimes aren&#8217;t enough. </p>
<p>You should try to include a demo of your service in a type of workflow infographic There are tons of free PSDs to download which fit into MacBooks, iPhone&#8217;s, iPad&#8217;s, and everything else. Here&#8217;s a beautiful example of a <a href="http://wordrom.com/resources/psd/freebie-imac-psd-file/">free iMac PSD template</a> to download. Now you could take screenshots of your application and build small demonstration images.</p>
<div class="tutorialimage"><a href="http://www.notifymecloud.com/"><img class="alignNone size-full" src="http://designshack.net/wp-content/uploads/notifyme-service-cloud-app.jpg" alt="NotifyMe for Cloud based reminders" width="510" /></a></div>
<p>This works really well in the example above for <strong>NotifyMe</strong>. The app is open and developed for all 3 platforms on iOS/iPad and OSX. At first glance you can assume the app is a notification-type system. Through a small demo graphic and some further explanation, you can put together the extended features to compose your opinion on the app.</p>
<h2>Dynamic Animations &amp; jQuery</h2>
<p>Apple is also well known for having beautiful transition animations. Their attention to detail in both design and function is incredible &#8211; spanning the breadth of their entire software portfolio. And as a web designer publishing under Apple you may find your app site could use a magic touch.</p>
<p><a href="http://reederapp.com/mac/screens">Reeder for Mac</a> is beautiful and the demo site fits just as well. Notice the page URLs are extremely simple and easy to pass along to friends or via social networks. Additionally the navigation is held in a side column, while page content is slimmed down to the bare minimum.</p>
<div class="tutorialimage"><a href="http://reederapp.com/mac/"><img class="alignNone size-full" src="http://designshack.net/wp-content/uploads/reeder-mac-osx-app.jpg" alt="Reeder App Website for Mac" width="510" /></a></div>
<p>Although Reeder does have quick page speeds, it is only one example of many app websites. If you enjoy these dynamic animations consider looking into the <a href="http://jquery.com/">jQuery library</a> and also the <a href="http://jqueryui.com/">jQuery UI set</a> as well. These are two very popular JavaScript libraries with pre-built functions for page effects&#8230; and you can build a lot! For one idea you may enjoy <a href="http://tutorialzine.com/2010/11/apple-style-splash-screen-jquery/">this small Apple-style tutorial</a> using jQuery to build a splash screen fade-in effect.</p>
<h2>Inspiration Gallery</h2>
<p>As mentioned earlier no case study would be complete without a small design showcase. Below are just a few examples of my personal favorite OS X app website layouts. Check &#8216;em out and let us know what you think! And if we missed any awesome app layouts you really like be sure to let us know in the comments.</p>
<h3><a href="http://www.versionsapp.com/">Versions</a></h3>
<div class="tutorialimage"><a href="http://www.versionsapp.com/"><img class="alignNone size-full" src="http://designshack.net/wp-content/uploads/01-versions-subversion.jpg" alt="Versions App for Mac Subversion frontend GUI" width="510" /></a></div>
<h3><a href="http://macrabbit.com/espresso/">Espresso</a></h3>
<div class="tutorialimage"><a href="http://macrabbit.com/espresso/"><img class="alignNone size-full" src="http://designshack.net/wp-content/uploads/02-espresso-design.jpg" alt="MacRabbit web development IDE software CSS Espresso" width="510" /></a></div>
<h3><a href="http://culturedcode.com/things/">Things for Mac</a></h3>
<div class="tutorialimage"><a href="http://culturedcode.com/things/"><img class="alignNone size-full" src="http://designshack.net/wp-content/uploads/03-things-macapp.jpg" alt="Things Task Management for Mac OSX" width="510" /></a></div>
<h3><a href="http://www.delibarapp.com/">Delibar</a></h3>
<div class="tutorialimage"><a href="http://www.delibarapp.com/"><img class="alignNone size-full" src="http://designshack.net/wp-content/uploads/04-delibar-app.jpg" alt="Delibar app for Delicious" width="510" /></a></div>
<h3><a href="http://www.panic.com/transmit/">Transmit</a></h3>
<div class="tutorialimage"><a href="http://www.panic.com/transmit/"><img class="alignNone size-full" src="http://designshack.net/wp-content/uploads/05-transmit-ftp-app.jpg" alt="Transmit FTP by Panic" width="510" /></a></div>
<h3><a href="http://www.checkoutapp.com/">Checkout</a></h3>
<div class="tutorialimage"><a href="http://www.checkoutapp.com/"><img class="alignNone size-full" src="http://designshack.net/wp-content/uploads/06-checkout-pos-system.jpg" alt="Checkout Point of Sale for mac" width="510" /></a></div>
<h3><a href="http://www.kaleidoscopeapp.com/">Kaleidoscope</a></h3>
<div class="tutorialimage"><a href="http://www.kaleidoscopeapp.com/"><img class="alignNone size-full" src="http://designshack.net/wp-content/uploads/07-kaleidascope.jpg" alt="Kaleidoscope app" width="510" /></a></div>
<h3><a href="http://www.potionfactory.com/tangerine/">Tangerine!</a></h3>
<div class="tutorialimage"><a href="http://www.potionfactory.com/tangerine/"><img class="alignNone size-full" src="http://designshack.net/wp-content/uploads/08-tangerine.jpg" alt="Personal music playlists with Tangerine!" width="510" /></a></div>
<h3><a href="http://aptonic.com/">Dropzone</a></h3>
<div class="tutorialimage"><a href="http://aptonic.com/"><img class="alignNone size-full" src="http://designshack.net/wp-content/uploads/09-dropzone-mac.jpg" alt="Aptonic Software app Dropzone" width="510" /></a></div>
<h3><a href="http://www.postbox-inc.com/">Postbox</a></h3>
<div class="tutorialimage"><a href="http://www.postbox-inc.com/"><img class="alignNone size-full" src="http://designshack.net/wp-content/uploads/10-postbox-inc.jpg" alt="Postbox 1st class e-mail software for mac" width="510" /></a></div>
<h3><a href="http://www.realmacsoftware.com/courier/">Courier</a></h3>
<div class="tutorialimage"><a href="http://www.realmacsoftware.com/courier/"><img class="alignNone size-full" src="http://designshack.net/wp-content/uploads/11-courier.jpg" alt="Courier multiple media upload application" width="510" /></a></div>
<h3><a href="http://www.mcubedsw.com/software/lighthousekeeper">Lighthouse Keeper</a></h3>
<div class="tutorialimage"><a href="http://www.mcubedsw.com/software/lighthousekeeper"><img class="alignNone size-full" src="http://designshack.net/wp-content/uploads/12-lighthouse-keeper.jpg" alt="Lighthouse Keeper Mac app" width="510" /></a></div>
<h3><a href="http://www.git-tower.com/">Git Tower</a></h3>
<div class="tutorialimage"><a href="http://www.git-tower.com/"><img class="alignNone size-full" src="http://designshack.net/wp-content/uploads/13-git-tower.jpg" alt="Git Tower for OSX" width="510" /></a></div>
<h3><a href="http://www.taoeffect.com/espionage/">Espionage</a></h3>
<div class="tutorialimage"><a href="http://www.taoeffect.com/espionage/"><img class="alignNone size-full" src="http://designshack.net/wp-content/uploads/14-espionage.jpg" alt="Git Tower for OSX" width="510" /></a></div>
<h3><a href="http://www.zennaware.com/cornerstone/index.php">Cornerstone</a></h3>
<div class="tutorialimage"><a href="http://www.zennaware.com/cornerstone/index.php"><img class="alignNone size-full" src="http://designshack.net/wp-content/uploads/15-cornerstone2-mac-app-store.jpg" alt="Cornerstone2 for Mac OS X" width="510" /></a></div>
<h3><a href="http://www.acqualia.com/soulver/">Soulver</a></h3>
<div class="tutorialimage"><a href="http://www.acqualia.com/soulver/"><img class="alignNone size-full" src="http://designshack.net/wp-content/uploads/16-soulver.jpg" alt="Soulver buy download trial mac" width="510" /></a></div>
<h3><a href="http://www.iggsoftware.com/ibank/">iBank</a></h3>
<div class="tutorialimage"><a href="http://www.iggsoftware.com/ibank/"><img class="alignNone size-full" src="http://designshack.net/wp-content/uploads/17-ibank.jpg" alt="iBank gold management" width="510" /></a></div>
<h3><a href="http://www.acrylicapps.com/wallet/">WalletApp</a></h3>
<div class="tutorialimage"><a href="http://www.acrylicapps.com/wallet/"><img class="alignNone size-full" src="http://designshack.net/wp-content/uploads/18-wallet-app.jpg" alt="OSX Wallet App for Personal Data Storage" width="510" /></a></div>
<h3><a href="http://sparrowmailapp.com/">Sparrow Mail</a></h3>
<div class="tutorialimage"><a href="http://sparrowmailapp.com/"><img class="alignNone size-full" src="http://designshack.net/wp-content/uploads/19-sparrow-app.jpg" alt="Simplified e-mail with Sparrow App" width="510" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/layouts/design-study-into-mac-os-x-app-websites/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>20 Awesome Responsive Templates and Themes (Free and Premium)</title>
		<link>http://designshack.net/articles/css/20-awesome-responsive-templates-and-themes-free-and-premium/</link>
		<comments>http://designshack.net/articles/css/20-awesome-responsive-templates-and-themes-free-and-premium/#comments</comments>
		<pubDate>Thu, 15 Sep 2011 16:00:25 +0000</pubDate>
		<dc:creator>Joshua Johnson</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[responsive]]></category>
		<category><![CDATA[templates]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://designshack.co.uk/?p=24804</guid>
		<description><![CDATA[Responsive web design is all the rage at the moment, but as a full-time designer it&#8217;s hard to make time to pick up on new trends no matter how useful and perhaps even necessary they may be. Pre-built themes and templates provide you with a quick and easy way to get started with responsive web [...]]]></description>
			<content:encoded><![CDATA[<p>Responsive web design is all the rage at the moment, but as a full-time designer it&#8217;s hard to make time to pick up on new trends no matter how useful and perhaps even necessary they may be. </p>
<p>Pre-built themes and templates provide you with a quick and easy way to get started with responsive web design. Many of them do all the work for you and provide a simple plug and play workflow, others just take care of the heavy lifting by taking care of the media queries and give you complete control over design. This post contains 20 free and premium templates, all of which are fully responsive right out of the box.</p>
<p><span id="more-24804"></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>Responsive Layout: Fad or Necessity?</h2>
<p>There&#8217;s been a ton of discussion about responsive web design lately. Many hail it as the future of web design and even go so far as to say that you&#8217;re simply not doing web design the right way if your sites don&#8217;t conform to their specific formula for maximum compatibility. Others contend that this is just another toy in a long line of fads that come and go.</p>
<p>The answer is likely somewhere in between the two. The truth is, web design has indeed hit a major obstacle with the wealth of different screen sizes that now access the web regularly. Many sites can neither afford to leave out large portions of mobile users nor can they build custom sites perfectly tailored to every smartphone, tablet, laptop and desktop on the market. </p>
<p>Responsive design, be it trend or not, is currently the best answer to this problem. If media queries fall out of favor it will simply be because a better solution has come along, not because the problem ceases to be important. </p>
<p>I can&#8217;t say how we&#8217;ll be developing sites ten years from now, but you can bet that screen sizes will only continue to become more fragmented as everything with a battery or plug is quickly becoming capable of accessing the web. If we define &#8220;responsive&#8221; web design as a set of techniques used to ensure maximum compatibility across as many devices as possible, then we are definitely not looking at a fad but the current and future standard for professionals in our industry. </p>
<p>Some complain about the added effort and development time but it&#8217;s really not as bad as you might think and once you&#8217;ve pulled it off a couple of times the impact on your workflow can be quite minimal. The tools in this post make it even faster, taking most of the pressure off you when it comes to the responsive elements.</p>
<h2>20 Responsive Templates &#038; Themes</h2>
<h3><a href="http://www.smashingmagazine.com/2011/06/07/free-html5-css3-wordpress-3-1-theme-with-responsive-layout-yoko/">Yoko – Free HTML5/CSS3 WordPress 3.1+ Theme</a></h3>
<p>&#8220;Yoko is a modern and flexible WordPress theme. With the responsive layout based on CSS3 media queries, the theme adjusts to different screen sizes. The design is optimized for big desktop screens, tablets and small smartphone screens. To make your blog more individual, you can use the new post formats (like gallery, aside or quote), choose your own logo and header image, customize the background and link color.&#8221;</p>
<p><strong>Price:</strong> Free</p>
<div class="tutorialimage"><a href="http://smashzine.com/2011/06/13/yoko-free-html5css3-wordpress-3-1-theme/"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/responsivetheme0.jpg" alt="screenshot" width="510"/></a></div>
<h3><a href="http://www.getskeleton.com/#download">Skeleton</a></h3>
<p>Skeleton is a boilerplate that successfully makes developing responsive websites a breeze to accomplish. We&#8217;ve written about it a few times on Design Shack and really love its simplicity. Along with the download you of course get a demo file, which can easily be used as a starting template to build your own work on.</p>
<p><strong>Price:</strong> Free</p>
<div class="tutorialimage"><a href="http://www.getskeleton.com/#download"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/responsivetheme2.jpg" alt="screenshot" width="510"/></a></div>
<h3><a href="http://themeforest.net/item/super-skeleton-responsive-minimal-beautiful/518233?ref=designshack">Super Skeleton: Responsive, Minimal, Beautiful</a></h3>
<p>&#8220;SuperSkeleton is more than a template, it’s a comprehensive HTML5 framework; A collection of several incredibly powerful scripts and CSS structures that’s been tied together into a kit that’s perfect as a jumping off point of your next project.&#8221;</p>
<p>This is a super premium package with 20 HTML templates, a PSD UI kit, multiple skins, fontstacks and more. It&#8217;s a steal for under $20 and is the perfect way to launch your ventures into responsive layout. </p>
<p><strong>Price:</strong> $17.00</p>
<div class="tutorialimage"><a href="http://themeforest.net/item/super-skeleton-responsive-minimal-beautiful/518233?ref=designshack"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/responsivetheme3.jpg" alt="screenshot" width="510"/></a></div>
<h3><a href="http://responsivetwentyten.com/about/">Responsive Twenty Ten (WP Theme)</a></h3>
<p>Responsive Twenty Ten is a child theme of the default WordPress theme with lots of great features like flexible images. The authors give you permission to &#8220;download, take, use, change, and do whatever you want with it.&#8221;</p>
<p><strong>Price:</strong> Free</p>
<div class="tutorialimage"><a href="http://responsivetwentyten.com/about/"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/responsivetheme4.jpg" alt="screenshot" width="510"/></a></div>
<h3><a href="http://www.onextrapixel.com/examples/responsive-website-template/">Onextrapixel Responsive Web Design Template</a></h3>
<p>A very basic but solid free template/tutorial for responsive web design. This is perfect if you just want to dig around and see how a simple responsive template works without all the fluff.</p>
<p><strong>Price:</strong> Free</p>
<div class="tutorialimage"><a href="http://www.onextrapixel.com/examples/responsive-website-template/"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/responsivetheme5.jpg" alt="screenshot" width="510"/></a></div>
<h3><a href="http://themeforest.net/item/the-novelist-responsive-wp-theme-for-writers/526345?ref=designshack">The Novelist: Responsive WP Theme for Writers</a></h3>
<p>A very unique looking theme with a simulated open book interface that scales nicely when you resize the browser. Perfect for personal writer portfolios.</p>
<p><strong>Price:</strong> $35</p>
<div class="tutorialimage"><a href="http://themeforest.net/item/the-novelist-responsive-wp-theme-for-writers/526345?ref=designshack"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/responsivetheme6.jpg" alt="screenshot" width="510"/></a></div>
<h3><a href="http://www.elmastudio.de/wordpress-themes/ari/">Ari WordPress Theme</a></h3>
<p>Ari is a very minimal blog theme that is super attractive in its simplicity. It&#8217;s built for WordPress 3 and up and features both a light and a dark theme. You&#8217;ll definitely want to give this one a look.</p>
<p><strong>Price:</strong> Free</p>
<div class="tutorialimage"><a href="http://www.elmastudio.de/wordpress-themes/ari/"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/responsivetheme7.jpg" alt="screenshot" width="510"/></a></div>
<h3><a href="http://goldengridsystem.com/">Golden Grid</a></h3>
<p>Like Skeleton, Golden Grid is more than a template, it&#8217;s a framework for building responsive sites. Self-labelled as a folding grid for responsive design, &#8220;the 16 columns can be combined, or folded, into 8 columns for tablet-sized screens, and into 4 columns for mobile-sized ones.&#8221;</p>
<p><strong>Price:</strong> Free</p>
<div class="tutorialimage"><a href="http://goldengridsystem.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/responsivetheme8.jpg" alt="screenshot" width="510"/></a></div>
<h3><a href="http://themeforest.net/item/hero-a-responsive-single-page-template/481038?ref=designshack">Hero &#8211; A Responsive Single Page Template</a></h3>
<p>&#8220;A responsive, clean and minimal style single page template for personal and business type. It has a fixed menu on the very top of the document for easy to navigate. It has also a 10 pixel border in the body.&#8221;</p>
<p>Hero comes with both a light and dark theme, both of which look great but the dark is especially slick.</p>
<p><strong>Price:</strong> $14</p>
<div class="tutorialimage"><a href="http://themeforest.net/item/hero-a-responsive-single-page-template/481038?ref=designshack"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/responsivetheme9.jpg" alt="screenshot" width="510"/></a></div>
<h3><a href="http://themeforest.net/item/good-minimal-a-responsive-html5-template/full_screen_preview/309221">Good Minimal &#8211; A Responsive HTML5 Template</a></h3>
<p>&#8220;Good Minimal is a clean and minimalist style template that is good for portfolio, blogs and businesses.&#8221; Very similar to the previous template in many regards but with a bolder, more unique design. I really like the look of the typography in this one.</p>
<p><strong>Price:</strong> $14</p>
<div class="tutorialimage"><a href="http://themeforest.net/item/good-minimal-a-responsive-html5-template/full_screen_preview/309221"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/responsivetheme10.jpg" alt="screenshot" width="510"/></a></div>
<h3><a href="http://themify.me/themes/itheme2">iTheme2 (WordPress)</a></h3>
<p>iTheme2 is a gorgeous free blog template that has a responsive layout and tons of great features like a customizable feature slider, a social media widget, two theme skins and more. </p>
<p><strong>Price:</strong> Free</p>
<div class="tutorialimage"><a href="http://themify.me/themes/itheme2"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/responsivetheme11.jpg" alt="screenshot" width="510"/></a></div>
<h3><a href="http://themeforest.net/item/folio-two-portfolio-for-creative-professionals/304231?ref=designshack">Folio Two</a></h3>
<p>&#8220;Folio Two is an advanced portfolio, a practical and usable template designed with HTML5 + CSS3 and using jQuery to enhance an awesome user experience.&#8221;</p>
<p>This template features a really nice big grid of images that morphs smoothly as the browser window resizes. The grid looks great both small and large!</p>
<p><strong>Price:</strong> $12</p>
<div class="tutorialimage"><a href="http://themeforest.net/item/folio-two-portfolio-for-creative-professionals/304231?ref=designshack"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/responsivetheme12.jpg" alt="screenshot" width="510"/></a></div>
<h3><a href="http://themify.me/themes/grido">Grido WP Theme</a></h3>
<p>Grido is an awesome and impressive feat of web layout tricks. It features both a masonry-like layout and a responsive system that readjusts that layout for several screen sizes. It comes with multiple color schemes, a lightbox gallery, seven skins and more.</p>
<p><strong>Price:</strong> $39</p>
<div class="tutorialimage"><a href="http://themify.me/themes/grido"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/responsivetheme13.jpg" alt="screenshot" width="510"/></a></div>
<h3><a href="http://madeflexible.com/">Flexible WordPress Theme</a></h3>
<p>&#8220;Flexible is a WordPress Theme that helps present your content and display it to fit different screens sizes, with a design of your own. It also provides a really easy integration with Facebook and Fan Gate option, a must have if you are running a website.&#8221;</p>
<p><strong>Price:</strong> Free</p>
<div class="tutorialimage"><a href="http://madeflexible.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/responsivetheme14.jpg" alt="screenshot" width="510"/></a></div>
<h3><a href="http://themeforest.net/item/deresan-gray-profile-template/534384?ref=designshack">Deresan Gray Profile Template</a></h3>
<p>A sophisticated looking template with a nice neutral color scheme, an image slider and lots of great little design touches. The responsive scaling isn&#8217;t my favorite but it is functional. </p>
<p><strong>Price:</strong> $14</p>
<div class="tutorialimage"><a href="http://themeforest.net/item/deresan-gray-profile-template/534384?ref=designshack"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/responsivetheme15.jpg" alt="screenshot" width="510"/></a></div>
<h3><a href="http://constellationtheme.com/">Constellation WordPress Theme</a></h3>
<p>This theme has it all. Not only is it responsive, it&#8217;s built on HTML5 Boiler Plate and contains both a horizontal grid and a pixel perfect vertical rhythm that scales nicely across devices. This is the perfect starting point for your next WordPress project. </p>
<p><strong>Price:</strong> Free</p>
<div class="tutorialimage"><a href="http://constellationtheme.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/responsivetheme16.jpg" alt="screenshot" width="510"/></a></div>
<h3><a href="http://css-tricks.com/13372-seamless-responsive-photo-grid/">Seamless Responsive Photo Grid</a></h3>
<p>A nice little experiment from Chris Coyier that you can download and use. It&#8217;s basically just a big grid of photos that instantly adjusts to difference browser window sizes.</p>
<p><strong>Price:</strong> Free</p>
<div class="tutorialimage"><a href="http://css-tricks.com/13372-seamless-responsive-photo-grid/"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/responsivetheme17.jpg" alt="screenshot" width="510"/></a></div>
<h3><a href="http://themify.me/demo/#theme=tisa">Tisa WP Theme</a></h3>
<p>Another great looking and responsive Themify theme with lots of big images, a beautiful color scheme and six theme skins.</p>
<p><strong>Price:</strong> $39</p>
<div class="tutorialimage"><a href="http://themify.me/demo/#theme=tisa"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/responsivetheme18.jpg" alt="screenshot" width="510"/></a></div>
<h3><a href="http://www.labsixtyfive.com/responsive-web/">Meerkats Responsive WordPress Theme</a></h3>
<p>&#8220;The Meerkats Theme is built to respond to different platforms and devices. It is a simple and basic WordPress theme built by Gregor McKelvie. &#8221;</p>
<p><strong>Price:</strong> Free</p>
<div class="tutorialimage"><a href="http://www.labsixtyfive.com/responsive-web/"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/responsivetheme19.jpg" alt="screenshot" width="510"/></a></div>
<h3><a href="http://whiteboardframework.com/">Whiteboard Framework</a></h3>
<p>&#8220;Whiteboard framework for WordPress was developed to speed up the process of developing a WordPress theme. Whiteboard does so by eliminating the time spent on code common to all WordPress themes and includes non-intrusive code that improves the overall WordPress theme in many ways &#8211; including SEO, speed, usability, and mobile support.&#8221;</p>
<p>Built on the Popular Less Framework, Whiteboard utilizes both HTML5 and CSS3 and gives you a nearly unbeatable starting point for developing perfectly responsive WP themes.</p>
<p><strong>Price:</strong> Free</p>
<div class="tutorialimage"><a href="http://whiteboardframework.com/"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/responsivetheme20.jpg" alt="screenshot" width="510"/></a></div>
<h2>Conclusion</h2>
<p>With these twenty amazing resources, you should be fully armed to begin creating responsive web designs in both straight HTML/CSS and WordPress. No matter what your budget is, there are several themes and templates here that are perfect for you.</p>
<p>Leave a comment below and let us know if we missed any. Have you come across any great responsive templates and themes? We want to see them!</p>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/css/20-awesome-responsive-templates-and-themes-free-and-premium/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Build a Web Page With CSS3 Flexbox</title>
		<link>http://designshack.net/articles/css/build-a-web-page-with-css3-flexbox/</link>
		<comments>http://designshack.net/articles/css/build-a-web-page-with-css3-flexbox/#comments</comments>
		<pubDate>Thu, 30 Jun 2011 18:01:49 +0000</pubDate>
		<dc:creator>Joshua Johnson</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[flexbox]]></category>
		<category><![CDATA[layout]]></category>

		<guid isPermaLink="false">http://designshack.co.uk/?p=22132</guid>
		<description><![CDATA[Yesterday we discussed the future of CSS layout and a few of the new modules that CSS3 brings to the table in this arena. One of these that we briefly touched on was CSS3 Flexbox. Today we&#8217;re going to dig deeper into this model and build a full-on web page with it. It will by [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday we discussed the <a href="http://designshack.net/articles/css/farewell-floats-the-future-of-css-layout/">future of CSS layout</a> and a few of the new modules that CSS3 brings to the table in this arena. One of these that we briefly touched on was CSS3 Flexbox.</p>
<p>Today we&#8217;re going to dig deeper into this model and build a full-on web page with it. It will by no means be ready to implement on your projects but it will give you further insight into one possible way that we will be coding websites in years to come. Plus, this stuff is just flat out fun to play with!</p>
<p><span id="more-22132"></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>Highly Experimental: Webkit Only</h2>
<p>My goal for this post was to have a working page up and running on several browsers, that didn&#8217;t happen. At this point the implementation is buggy and inconsistent across browsers, even after installing <a href="http://flexiejs.com/">Flexie.js</a>, I was still getting vastly different results between Firefox and Safari (I think it has to do with mixing typical margin-centered containers and Flexbox).</p>
<p>For this reason, today&#8217;s project will primarily be targeted at <strong>Safari and Chrome</strong> because frankly, it&#8217;s still a mess in other browsers! I definitely encourage you to follow along and then play with the finished product to see if you can get it up and running in a cross-browser implementation. If you have suggestions, I&#8217;d love to hear them in the comments!</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/ds-flexbox-6.jpg" alt="screenshot" width="510"/></div>
<h2>Step 1: Reusable Classes</h2>
<p>Since I briefly explained the basic concept of Flexbox in <a href="http://designshack.net/articles/css/farewell-floats-the-future-of-css-layout/">yesterday&#8217;s post</a>, I&#8217;ll be focusing on implementation here. But don&#8217;t worry, you should get the gist as we go along.</p>
<p>The first thing we want to do is create some basic classes that will help define our layout. These attributes can be applied to an ID on an as-needed basis, but I find it helpful to and tidy to do it this way. </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;">.hasflex</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> box<span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> -webkit-box<span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> -moz-box<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.box0</span> <span style="color: #00AA00;">&#123;</span>
    -webkit-box-flex<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
    -moz-box-flex<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
    box-flex<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;">.box1</span> <span style="color: #00AA00;">&#123;</span>
    -webkit-box-flex<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
    -moz-box-flex<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
    box-flex<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.box2</span> <span style="color: #00AA00;">&#123;</span>
    -webkit-box-flex<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">2</span><span style="color: #00AA00;">;</span>
    -moz-box-flex<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">2</span><span style="color: #00AA00;">;</span>
    box-flex<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">2</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.box3</span> <span style="color: #00AA00;">&#123;</span>
    -webkit-box-flex<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">3</span><span style="color: #00AA00;">;</span>
    -moz-box-flex<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">3</span><span style="color: #00AA00;">;</span>
    box-flex<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">3</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.last</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin-right</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>Let&#8217;s discuss how these classes work. The first class, <em>hasflex</em>, will be applied to a parent container whose children we want to lay out using this new Flexbox system. One thing you&#8217;ll notice is that this entire design will be completely without floats so that gives you some good indications as to where we will be implementing Flexbox in our code.</p>
<p>Next, we set up a few more classes to apply various <em>box-flex</em> values. Flexbox will conveniently distribute our child elements across the container and these will define the proportions. I <em>believe</em> that the default value is &#8220;0&#8243; but the results seemed a little buggy with this assumption so I found it helpful to always just apply a value manually. </p>
<h2>Step 2: Initial HTML &#038; CSS</h2>
<p>To start off your HTML document, create a container and a header. At this point, these are basic elements that we will build just like always without the aid of Flexbox.</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;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;header&quot;</span>&gt;</span>
    	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>Design Shack Flexbox 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: #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>Once you&#8217;ve got that in place, throw in the basic styles below. Basically I set up a dark body with a light 1,000px wide container that will hold all of our content. Toss in some margins to center and some basic text styles and we&#8217;re ready to move on to the fun stuff. </p>
<p><strong>Note:</strong> The headline font I&#8217;ll be using is <a href="http://www.google.com/webfonts/family?family=Oswald&#038;subset=latin#code">Oswald, from Google Fonts</a>.</p>
<div style="overflow: auto; background-color: #eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/*Basic Reset*/</span>
&nbsp;
<span style="color: #00AA00;">*</span> <span style="color: #00AA00;">&#123;</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;">margin</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: #808080; font-style: italic;">/*Body/Container*/</span>
&nbsp;
body <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: #993333;">sans-serif</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;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">23px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#111</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#222</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
&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: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#eee</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">min-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1150px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*Header*/</span>
&nbsp;
<span style="color: #cc00cc;">#header</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: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">900px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">'Oswald'</span><span style="color: #00AA00;">,</span> arial<span style="color: #00AA00;">,</span> <span style="color: #993333;">serif</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<h2>Step 3: Navigation</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/ds-flexbox-1.jpg" alt="screenshot" width="510"/></div>
<p>Now, for the navigation area, you typically create a list of links and then float them to the left. With Flexbox, the process is a little different. Here we simply apply the <em>hasflex</em> class that we created earlier and then use <em>box0</em> for each of the list items. Applying <em>box0</em> to all three has the effect of floating the links to the left but won&#8217;t distribute them all the way across the width of the container.</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;nav&quot;</span>&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;hasflex&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;box0&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> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;box0&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>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> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;box0&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>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>
<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>After this, we simply apply the same types of styles we would on any other web page. The main goal here is to space the links out a little with some margins and to make sure our links are styled properly.</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;">/*Navigation*/</span>
&nbsp;
<span style="color: #cc00cc;">#nav</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;">900px</span><span style="color: #00AA00;">;</span>
    <span style="color: #808080; font-style: italic;">/*background: #eee;*/</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;">#nav</span> ul <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#nav</span> ul li <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: #933;">20px</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#nav</span> a <span style="color: #00AA00;">&#123;</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;">#111</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#nav</span> a<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">underline</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: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<h2>Step 4: The Image</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/ds-flexbox-2.jpg" alt="screenshot" width="510"/></div>
<p>Every good web page needs an image. To further illustrate how you selectively apply Flexbox only to those elements that need it, we&#8217;ll throw in a large header image using the same exact code as you typically would.</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;bigimage&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://lorempixum.com/900/300/food/1&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>
<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;">/*Image*/</span>
&nbsp;
<span style="color: #cc00cc;">#bigimage</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: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">900px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<h2>Step 5: Three Columns: Horizontal</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/ds-flexbox-3.jpg" alt="screenshot" width="510"/></div>
<p>This is where Flexbox really shines. Normally, creating a three column layout like the one shown above would involve a good amount of mathematical planning. We would need to not only split the parent container in three but also figure out the proper proportions so that the middle column is wider than the other two.</p>
<p>However, with Flexbox, all we have to do is apply our <em>flexbox</em> class in conjunction with the numbered box classes. Here I set the middle div to <em>box2</em> and the others to <em>box3</em>. As you can see in the image above, the effect of this is an automatic distribution of the columns with the second being wider than the first.</p>
<p>Interestingly enough, everything I read led me to believe that the <em>box2</em> class would be the narrowest in this instance, but that simply wasn&#8217;t the case in my live tests! This setup brings about a narrow first and last paragraph and a wide second paragraph.</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;columns&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;hasflex&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;box3&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>One<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span>&gt;</span>Lorem ipsum dolor sit amet...<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
&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;box2&quot;</span>&gt;</span> 
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>Long Two<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span>&gt;</span>Lorem ipsum dolor sit amet...<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
&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;box3&quot;</span>&gt;</span> 
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>Three<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span>&gt;</span>Lorem ipsum dolor sit amet...<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

</div>
<p></ br></p>
<p>Combine this with some basic CSS and you&#8217;ve got a quick and easy three column layout! Since Flexbox automatically takes care of the distribution relative to the parent width, any changes we make to the parent will automatically be reflected in the children. </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;">/*Text Columns: 3 Wide*/</span>
&nbsp;
<span style="color: #cc00cc;">#columns</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;">900px</span><span style="color: #00AA00;">;</span>
    <span style="color: #808080; font-style: italic;">/*background: gray;*/</span>
    <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#columns</span> p <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: #933;">15px</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#columns</span> h2 <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: #933;">30px</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">0px</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: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">'Oswald'</span><span style="color: #00AA00;">,</span> arial<span style="color: #00AA00;">,</span> <span style="color: #993333;">serif</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<p>One fascinating thing about Flexbox is that we could actually reorder the columns that we setup using pure CSS. Assigning <em>-webkit-box-ordinal-group: (a number);</em> to each element gives you control over the order of their appearance.</p>
<h2>Step 6: Vertical Stack</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/ds-flexbox-4.jpg" alt="screenshot" width="510"/></div>
<p>It&#8217;s important to learn that you don&#8217;t have to use vertical columns when working with Flexbox. We can use the same technique as above to stack a few paragraphs on top of each other. If you really get into Flexbox, this technique can be used to mix vertical and horizontally stacked elements, but we&#8217;ll keep it basic here just to see how it works.</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;rows&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;hasflex&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>Long Two<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;box1&quot;</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> 
&nbsp;
    <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;box1&quot;</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> 
&nbsp;
    <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;box1&quot;</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> 
&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 primary difference here is that we&#8217;ve set <em>box-orient</em> to vertical, which gives us the vertical stack shown in the image above instead of the columns that we created in the previous step.</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;">/*Text Rows*/</span>
&nbsp;
<span style="color: #cc00cc;">#rows</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;">900px</span><span style="color: #00AA00;">;</span>
    <span style="color: #808080; font-style: italic;">/*background: gray;*/</span>
    <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">30px</span> <span style="color: #993333;">auto</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
    -webkit-box-orient<span style="color: #00AA00;">:</span> vertical<span style="color: #00AA00;">;</span>
    -moz-box-orient<span style="color: #00AA00;">:</span> vertical<span style="color: #00AA00;">;</span>
    box-orient<span style="color: #00AA00;">:</span> vertical<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#rows</span> p <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: #933;">0px</span> <span style="color: #933;">15px</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#rows</span> h2 <span style="color: #00AA00;">&#123;</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: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">'Oswald'</span><span style="color: #00AA00;">,</span> arial<span style="color: #00AA00;">,</span> <span style="color: #993333;">serif</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<h2>Step 7: Two Columns</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/ds-flexbox-5.jpg" alt="screenshot" width="510"/></div>
<p>Just to switch things up one last time, let&#8217;s create another section, this time with two columns instead of three. The principle is exactly the same. You don&#8217;t have to rethink the layout because you have two columns this time around, Flexbox takes care of all the heavy lifting once again.</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;twoColums&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;hasflex&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;box2&quot;</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>One<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span>&gt;</span>Lorem ipsum dolor sit amet...<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
&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;box1&quot;</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>Two<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span>&gt;</span>Lorem ipsum dolor sit amet...<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

</div>
<p></ br></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;">/*twoColums*/</span>
<span style="color: #cc00cc;">#twoColums</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;">900px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#twoColums</span> p <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: #933;">20px</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: #cc00cc;">#twoColums</span> h2 <span style="color: #00AA00;">&#123;</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: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">'Oswald'</span><span style="color: #00AA00;">,</span> arial<span style="color: #00AA00;">,</span> <span style="color: #993333;">serif</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<h2>Finished Product</h2>
<p>Check out a <a href="http://designshack.net/tutorialexamples/FlexBox/index.html">live demo</a> if you&#8217;re in Safari or Chrome. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/ds-flexbox-6.jpg" alt="screenshot" width="510"/></div>
<h2>Going Further</h2>
<p>I intentionally tried to keep this example as simple as possible. However, you can pretty easily take this layout and make it even more complex. For starters, using percentages for width will give you a nice, truly flexible layout. Also, as I mentioned above, you can perform complex actions such as rearranging columns and mixing vertical and horizontal stacks in the same row. I encourage you to play with the code as much as possible using <a href="http://www.html5rocks.com/en/tutorials/flexbox/quick/">this page</a> as a guide.</p>
<h2>Conclusion</h2>
<p>This basic example is meant to shed further light into how we could be using Flexbox to create both simple and complex layouts sometime in the future. I&#8217;m fairly new to the module so this is <em>far</em> from perfect, as evidenced by the fact that it isn&#8217;t cross-browser compatible yet!</p>
<p>Despite its downfalls, you should have a strong grasp of how the module works and what can be done with a relatively small amount of code when leveraging Flexbox. Feel free to toss in plenty of suggestions in the comments!</p>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/css/build-a-web-page-with-css3-flexbox/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Farewell Floats: The Future of CSS Layout</title>
		<link>http://designshack.net/articles/css/farewell-floats-the-future-of-css-layout/</link>
		<comments>http://designshack.net/articles/css/farewell-floats-the-future-of-css-layout/#comments</comments>
		<pubDate>Wed, 29 Jun 2011 18:55:48 +0000</pubDate>
		<dc:creator>Joshua Johnson</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[layout]]></category>

		<guid isPermaLink="false">http://designshack.co.uk/?p=22102</guid>
		<description><![CDATA[Floats are one of the most basic tools for structuring a web page using CSS. They&#8217;re both one of the very first things that we learn about and one of the last things that we truly master. Today&#8217;s article looks at some of the reasons that floats are pretty lame and takes a look at [...]]]></description>
			<content:encoded><![CDATA[<p>Floats are one of the most basic tools for structuring a web page using CSS. They&#8217;re both one of the very first things that we learn about and one of the last things that we truly master. </p>
<p>Today&#8217;s article looks at some of the reasons that floats are pretty lame and takes a look at a number of alternative layout systems, some of which are still under development but may one day represent the standard for CSS-based layout.</p>
<p><span id="more-22102"></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 Tale of Tables</h2>
<p>Once upon a time, web designers used HTML tables to accomplish complex page layouts. Though it was a messy, non-semantic process, it attempted to make the best of the available technology to create better designs.</p>
<p>For newbies, when I say &#8220;non-semantic,&#8221; I mean that table-based layout is a bastardization of the table element. It&#8217;s meant to hold actual tables of information within a page, not to serve as the structure for the page itself. </p>
<h2>Floats: The New Tables?</h2>
<p>Today, we scoff at this practice. What a silly way to lay out a website! CSS has come to our rescue and provided us with several tools for creating much more semantic layouts that can easily achieve anything that was created with a table.</p>
<p>Today one of the primary ways that we have replaced our table-dependent ways is the use of floats for layout. By default, sequential HTML elements will appear vertically stacked. Floats serve as a way for us to line elements up horizontally. Float a list of li elements to the left and you&#8217;ve got yourself a nice little horizontal navigation menu. </p>
<p>Though many of us have simply grown accustomed to using them, floats are far from ideal. They&#8217;re awkward, buggy and difficult to learn. If you think back to when you first began CSS-based layout, the thing that had you scratching your head and troubleshooting for hours was probably a float gone wrong. </p>
<h3>The Clearfix Band-Aid</h3>
<p>The bane of float-based layouts (aside from IE6 margin nightmares) is of course the fact that they simply don&#8217;t play well with their container elements. In order to get the parent element to appear as if it contains floated elements, we typically insert a cleared element last in the container using &#8220;clear:both&#8221;. </p>
<p>Is creating an empty container to hack a broken layout a good practice? Probably not. Does it work? You bet. </p>
<h3>A Better Clearfix</h3>
<p>Forward thinkers have decided that this business of adding additional HTML markup is no good. The current favorite way to clear a float is to instead insert the new element using the CSS &#8220;:after&#8221; pseudo class. </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;">.clearfix</span><span style="color: #3333ff;">:after </span><span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">content</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;.&quot;</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">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: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">both</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">visibility</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<p>Once again, this is acceptable because of how accustomed we are to messing with floats to bend them to our will. However, try taking a step back and really looking at what&#8217;s going on here. This is a mess! We&#8217;re using CSS to insert an invisible element into the HTML so that our layout problems magically disappear as we shiver at the thought of using table-based layouts because they aren&#8217;t semantic.</p>
<p>I&#8217;m not defending table-based layout, it&#8217;s dead and needs to stay that way, but I can&#8217;t help but wonder if future web designers will laugh at our use of floats the way that we now laugh at the thought of a web page built on a table. </p>
<h2>The Future</h2>
<p>You have to admit, if you really think about it, floats are a pretty screwed up and complicated way to handle page layout. I don&#8217;t see floats going completely away any time soon, they&#8217;ll likely still be useful even if we all do accept a new layout process.</p>
<p>However, there are several interesting layout tools on the horizon that could very well replace floats as a primary way that to structure web pages. Let&#8217;s take a look at some of these ideas and constructs and see if we can get a glimpse into what the future of CSS layout will be like. </p>
<h2>Inline-Block</h2>
<p>Before we dive into futuristic experimental layout techniques, it&#8217;s worthwhile to discuss <em>inline-block</em> as an interesting alternative to float-based layouts. Consider the snippet below:</p>
<div style="overflow: auto; background-color: #eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">ul li <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;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">min-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100px</span><span style="color: #00AA00;">;</span> 
    <span style="color: #000000; font-weight: bold;">vertical-align</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*helps with variable length content*/</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<p>This will actually cause our list items to appear inline while retaining their block attributes, which is completely amazing really! We get the best of both worlds.</p>
<h3>Downfalls of Inline-Block</h3>
<p>Andrew Tetlaw from Sitepoint recently <a href="http://www.sitepoint.com/give-floats-the-flick-in-css-layouts/">published a fantastic article</a> that highly praises using <em>inline-block</em> over floats. He correctly points out that this method works effectively on all modern browsers, including IE8 and above, which is about the same as you can expect from the pseudo-class-driven clearfix from above.</p>
<p>Unfortunately, as <a href="http://robertnyman.com/2010/02/24/css-display-inline-block-why-it-rocks-and-why-it-sucks/">Robert Nyman points out</a> in a similar article, this method isn&#8217;t without its problems.</p>
<p>In addition to the IE troubles (he has a clever hack to get support in IE7), Nyman shows using <em>inline-block</em> causes your layout to be somewhat whitespace dependent when it comes to your HTML. The example he uses is the following unordered list:</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;display-inline-block-example&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>Item one<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;</span>Item two<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;</span>Item three<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></pre></div></div>

</div>
<p></ br></p>
<p>Believe it or not, the line returns automatically cause a slight margin to be added to the list items! The only way to fix it is to place them on the same line:</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;display-inline-block-example&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>Item one<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>Item two<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>Item three<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></pre></div></div>

</div>
<p></ br></p>
<p>Admittedly, it&#8217;s a fairly easy fix, but if you&#8217;re a fan of neatly organized code, this may make you cringe. On the whole, when compared to the trouble that we face using floats, Tetlaw has a point that this may be a better solution that you can actually use now with an acceptable amount of browser support. </p>
<h2>Flexbox</h2>
<p>One of the new ways that CSS3 is changing layout practices is through the Flexible Box Module, or Flexbox for short. Here&#8217;s a quote from the <a href="http://www.w3.org/TR/css3-flexbox/">Flexbox w3 abstract.</a> </p>
<p><em>[Flexbox] provides an additional layout system alongside the ones already in CSS. [CSS21] In this new box model, the children of a box are laid out either horizontally or vertically, and unused space can be assigned to a particular child or distributed among the children by assignment of &#8220;flex&#8221; to the children that should expand. Nesting of these boxes (horizontal inside vertical, or vertical inside horizontal) can be used to build layouts in two dimensions.</em></p>
<p>Flexbox represents a completely new way to layout websites. You may have heard about this recently but the syntax is changing a bit so make sure you keep an eye on the working spec to stay up to date (I believe &#8220;box&#8221; will change to &#8220;flex&#8221; or &#8220;flexbox&#8221; in most cases). The current working CSS syntax for applying flexbox is as follows:</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;">display</span><span style="color: #00AA00;">:</span> box<span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> -webkit-box<span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> -moz-box<span style="color: #00AA00;">;</span></pre></div></div>

</div>
<p></ br></p>
<p>To see how it works, let&#8217;s jump right into an example. Basically, once you apply <em>display: box</em> to the parent element, the children can be automatically redistributed based on simple relative sizing. </p>
<p>Imagine we have three paragraph tags (these will serve as columns) inside a parent container with <em>display: box</em> applied and we want the middle column to be twice the width of the other two. Here&#8217;s what we do: </p>
<div style="overflow: auto; background-color: #eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;">#box2 {
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    box-flex: 1;
}</pre></div></div>

</div>
<p></ br></p>
<p>With that little bit of code (plus some superfluous visual styling), we can achieve the following result.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/futurelayout-1.jpg" alt="screenshot" width="510"/></div>
<p>Note that the default value is &#8220;0&#8243; for <em>box-flex</em>. Changing the second box to &#8220;2&#8243; triggered the command to fill the width while making the second box wider than the other two. Let&#8217;s consider a few more examples so you can really get a feel for how it works. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/futurelayout-2.jpg" alt="screenshot" width="510"/></div>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/futurelayout-3.jpg" alt="screenshot" width="510"/></div>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/futurelayout-4.jpg" alt="screenshot" width="510"/></div>
<p>As you can see, Flexbox has dramatic implications to the way we structure websites with CSS. Not only does this have the potential to solve the problems associated with floats, it makes multi-column grid-based layouts infinitely easier!</p>
<h3>Dig Deeper</h3>
<p>This article is merely meant as an introduction to new layout methods and is not in any way exhaustive. I&#8217;ve barely scratched the surface of what what Flexbox can do. For instance, you can accomplish the same thing we did above with vertically stacked elements and completely rearrange the boxes using only CSS.</p>
<p>For more on what can be done with Flexbox, I <em>highly</em> recommend that you play with <a href="http://flexiejs.com/playground/">Flexie, The Flexbox Playground</a>. This will give you hands-on experience with the new layout system and allow you to try each setting to get a feel for the result.</p>
<h2>The Template Layout Module</h2>
<p>Another proposed idea for CSS layout is the Template Layout Module. Here&#8217;s a quote from the <a href="http://www.w3.org/TR/2009/WD-css3-layout-20090402/">official spec</a>.</p>
<p><em>&#8220;The properties in this specification work by associating a layout policy with an element. Rather than letting an element lay out its descendants in their normal order as inline text or as blocks of text (the policies available in CSS level 1), the policy defined in this module, called template-based positioning, gives an element an invisible grid for aligning descendant elements.&#8221;</em></p>
<p>The Template Layout Module uses a quirky but straightforward syntax that makes layout a breeze. The first thing you need to do is create a container with some child elements. For each child element, you assign an arbitrary letter (it doesn&#8217;t matter which letter, just make sure they&#8217;re unique).</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;">#div1</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> a<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#div1</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> b<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#div1</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> c<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<p>Next, you apply a display value to the parent element using these letters to define your proportions. For example, to create three equal columns, simply type them all in a row:</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;">display</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;abc&quot;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<p>This will give you the following result:</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/futurelayout-5.jpg" alt="screenshot" width="510"/></div>
<p>If you want to rearrange the boxes, simply rearrange the letters in your CSS. Instead of typing &#8220;abc&#8221;, try typing &#8220;bca&#8221;.</p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/futurelayout-6.jpg" alt="screenshot" width="510"/></div>
<p>To create a new row, create a new set of quotes. You can repeat letters to set a sense of proportion. For instance, here we set the first row to &#8220;ab&#8221; and the second to &#8220;cc&#8221;, meaning &#8220;c&#8221; will be twice the width of &#8220;a&#8221; or &#8220;b&#8221;. </p>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.net/wp-content/uploads/futurelayout-7.jpg" alt="screenshot" width="510"/></div>
<p>Each section (a,b,c) is referred to as a &#8220;slot&#8221;. To create an empty slot, simply use a period: &#8220;a.b.c&#8221; will create two empty slots in our row. To target a slot for additional styling, you use the slot pseudo element:</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;">::</span>slot<span style="color: #00AA00;">&#40;</span>c<span style="color: #00AA00;">&#41;</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">gray</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<h3>Dig Deeper</h3>
<p>As with the previous example, there&#8217;s a lot more that can be done here such as setting heights and widths using precise dimensions or percentages. None of it is ready to use in any browser at the moment but you can install a <a href="http://code.google.com/p/css-template-layout/">jQuery plugin</a> to test it out! Check out the <a href="http://a.deveria.com/csstpl/">plugin&#8217;s demo pages</a> for some awesome coded examples of how to create any layout you want using the Template Layout Module. </p>
<h2>Back to Tables?</h2>
<p>The <a href="http://www.sitepoint.com/give-floats-the-flick-in-css-layouts/">Andrew Tetlaw Sitepoint article</a> that I mentioned before presents one more interesting option for layout. </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;">.nav</span> <span style="color: #00AA00;">&gt;</span> ul <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> table<span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">border-spacing</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0.25em</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<p>Interestingly enough, setting the &#8220;display&#8221; property to &#8220;table&#8221; allows us to structure our layout as if they were tables. Right away I know this is going to freak a lot of people out. Reverting back to table-based layout!? Are you nuts? The crazy part is though that this is in fact a completely different practice than literally using a table element. Here you&#8217;re simply telling the CSS to position elements <em>similarly</em> to how table cells and rows are positioned.</p>
<p>Personally, I still like the new fancy CSS3 methods that we just covered a lot better and really have a hard time imagining this gaining widespread acceptance, but it&#8217;s worth checking out and discussing nonetheless. If you&#8217;re interested, be sure to check out <a href="http://www.sitepoint.com/give-floats-the-flick-in-css-layouts/">Tetlaw&#8217;s explanation</a>.</p>
<h2>Conclusion</h2>
<p>The point of this article was to get you thinking about how floats may not necessarily be the best way to structure websites. Though they&#8217;re one of the best solutions that we can currently use in live client projects, they represent a fairly sloppy and broken system that is far from ideal.</p>
<p>There are a number of ways that you can address the downfalls of floats. For now, you could check out &#8220;display: inline-block&#8221; as one option or even look into &#8220;display: table&#8221; if you&#8217;re particularly brave.</p>
<p>The wizards that make all this technology work recognize that the system is broken and are hard at work solving the problems with layout modules that may prove extremely useful in the future. Expect to hear a lot more on the Flexbox and Template Layout modules in the future. Who knows, one or both of these could be the standard way that future developers create web layouts!</p>
<p>Leave a comment and let us know your thoughts on all this. Do you think floats represent a flawed layout system? Do any of the proposed layout modules seem like a solid fix for these issues? </p>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/css/farewell-floats-the-future-of-css-layout/feed/</wfw:commentRss>
		<slash:comments>49</slash:comments>
		</item>
		<item>
		<title>Introduction to CSS3 &#8211; Part 5: Multiple Columns</title>
		<link>http://designshack.net/articles/introduction-to-css3-part-5-multiple-columns/</link>
		<comments>http://designshack.net/articles/introduction-to-css3-part-5-multiple-columns/#comments</comments>
		<pubDate>Mon, 19 May 2008 16:19:22 +0000</pubDate>
		<dc:creator>David Appleyard</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[columns]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[multicolumn]]></category>
		<category><![CDATA[multiple]]></category>

		<guid isPermaLink="false">http://localhost:8888/?p=185</guid>
		<description><![CDATA[Multiple columns are a major facet of laying out text &#8211; newspapers have used them for decades. So important are they that it is amazing that the current way to achieve a multi column layout is one of the most complex techniques for a new designer to grasp. CSS3 introduces a new module known, appropriately, [...]]]></description>
			<content:encoded><![CDATA[<p>Multiple columns are a major facet of laying out text &#8211; newspapers have used them for decades. So important are they that it is amazing that the current way to achieve a multi column layout is one of the most complex techniques for a new designer to grasp.</p>
<p>CSS3 introduces a new module known, appropriately, as multi-column layout. It allows you to specify how many columns text should be split down into and how they should appear. As usual, examples can be found below:</p>
<p><a href="http://www.designshack.net/tutorialexamples/css3/css3examples.html" class="smallbox">View the live examples page</a></p>
<h2>Multiple columns using CSS3</h2>
<p>At present, this feature is available in Firefox and Safari 3. When the module becomes finalised in the CSS3 specification it will be adopted by other browsers and rolled into their updates.</p>
<p>There are four properties which relate to the multiple column layout in CSS3, allowing you to set the number of columns, width, gap between each column and a border between each:</p>
<ul>
<li>column-count</li>
<li>column-width</li>
<li>column-gap</li>
<li>column-rule</li>
</ul>
<p>At present, a browser specific selector is also needed to identify whether Safari or Firefox should display the selector. The code to be used to create a two column layout with a 1px rule between columns would be:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.multiplecolumns</span> <span style="color: #00AA00;">&#123;</span>
-moz-column-<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">130px</span><span style="color: #00AA00;">;;</span>
-webkit-column-<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">130px</span><span style="color: #00AA00;">;</span>
-moz-column-gap<span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
-webkit-column-gap<span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
-moz-column-rule<span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ddccb5</span><span style="color: #00AA00;">;</span>
-webkit-column-rule<span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ddccb5</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p><img src="http://www.designshack.net/postimages/multiplecolumns.png" alt="Multiple columns using CSS3" /></p>
<h2>Spanning columns</h2>
<p>It could also be the case that you would like an element to span more than one column &#8211; a heading, table or image for instance. This is facilitated in the specification through the use of:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">h2 <span style="color: #00AA00;">&#123;</span>
column-span<span style="color: #00AA00;">:</span> all
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Numbers can also be used to allow the element to span a certain number of columns. At present this feature isn&#8217;t implemented in any major browsers, but should provide much needed additional flexibility when designing around this feature. It would allow you to achieve effects such as:</p>
<p><img src="http://www.designshack.net/postimages/multiplecolumns_heading.jpg" alt="Multiple column span using CSS3" /></p>
<h2>In the meantime</h2>
<p>It could still be a while before this feature is supported on enough systems to allow widespread use. A List Apart published in 2005 a <a href="http://www.alistapart.com/articles/css3multicolumn">JavaScript implementation of this capability</a> which allows you to use selectors in the same way and offers support in all major browsers. It should also degrade nicely when the feature is widely adopted and the JavaScript is no longer needed. It is a great interim solution if you&#8217;re desperate for multiple columns on your site.</p>
<h2>In conclusion&#8230;</h2>
<p>Multiple column layout will save a huge headache for many designers, allowing greater control of how copy is displayed. You can read the full specification for multi-column at the <a href="http://www.w3.org/TR/css3-multicol/">W3 site</a> if you&#8217;d like more information about the feature.</p>
<p>The next, and final, article in this series will be looking at the different background features available in CSS3 including using more than one background for an element, and specifying the size of backgrounds. Remember, to see live examples of these features, take a look at our <a href="http://www.designshack.net/tutorialexamples/css3/css3examples.html">CSS3 example page</a>.</p>
<h2>Other posts in the series</h2>
<ul>
<li><a href="http://designshack.net/tutorials/introduction-to-css3-part-1-what-is-it">Introduction to CSS3 &#8211; Part 1: What is it?</a></li>
<li><a href="http://designshack.net/tutorials/introduction-to-css3-part-2-borders">Introduction to CSS3 &#8211; Part 2: Borders</a></li>
<li><a href="http://designshack.net/tutorials/introduction-to-css3-part-3-text-effects">Introduction to CSS3 &#8211; Part 3: Text Effects</a></li>
<li><a href="http://designshack.net/tutorials/introduction-to-css3-part-4-user-interface">Introduction to CSS3 &#8211; Part 4: User Interface</a></li>
<li><a href="http://designshack.net/tutorials/introduction-to-css3-part-5-multiple-columns">Introduction to CSS3 &#8211; Part 5: Multiple Columns</a></li>
<li><a href="http://designshack.net/tutorials/introduction-to-css3-part-6-backgrounds">Introduction to CSS3 &#8211; Part 6: Backgrounds</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/introduction-to-css3-part-5-multiple-columns/feed/</wfw:commentRss>
		<slash:comments>36</slash:comments>
		</item>
		<item>
		<title>Free CSS Layout Templates</title>
		<link>http://designshack.net/articles/free-css-layout-templates/</link>
		<comments>http://designshack.net/articles/free-css-layout-templates/#comments</comments>
		<pubDate>Wed, 29 Aug 2007 12:59:44 +0000</pubDate>
		<dc:creator>David Appleyard</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Layouts]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[fixed]]></category>
		<category><![CDATA[fluid]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://localhost:8888/?p=407</guid>
		<description><![CDATA[When designing a new website, having a template to work from can save a huge amount of time. We have a collection of 12 great CSS templates to base your design on, both fixed and fluid layouts. These free CSS templates are designed by Mitch Bryson, and provided for you with his permission. Static &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mitchbryson.com/"><img src="/tutorialexamples/csslayouts/freecsstemplates.png" alt="Free CSS Layouts and Templates" border="0" class="right" /></a>When designing a new website, having a template to work from can save a huge amount of time. We have a collection of 12 great CSS templates to base your design on, both fixed and fluid layouts. These free CSS templates are designed by <a href="http://mitchbryson.com/free-css-templates">Mitch Bryson</a>, and provided for you with his permission.</p>
<ul class="nav-boxes">
<li>
						<a href="/tutorialexamples/csslayouts/_onecolumn/" title="Static One Column Template"><strong>Static &#8211; 1 Column</strong></a><br />
						<a href="/tutorialexamples/csslayouts/_onecolumn/" title="Static One Column Template"><img src="/tutorialexamples/csslayouts/onecolumn.png" alt="One Column CSS Layout Example" /></a><br />
						<a href="/tutorialexamples/csslayouts/_onecolumn/" title="View Free CSS Templates">View template</a><br />
						<a href="/tutorialexamples/csslayouts/_onecolumn.zip" title="Download Free CSS Templates">Download template</a>
					</li>
<hr />
<li>
						<a href="/tutorialexamples/csslayouts/_twocolumn_left/" title="Static Two Column Template"><strong>Static &#8211; 2 Column</strong></a><br />
						<a href="/tutorialexamples/csslayouts/_twocolumn_left/" title="Static Two Column Template"><img src="/tutorialexamples/csslayouts/twocolumn_left.png" alt="Two Column CSS Layout Example" /></a><br />
						<a href="/tutorialexamples/csslayouts/_twocolumn_left/" title="View Free CSS Templates">View template</a><br />
						<a href="/tutorialexamples/csslayouts/_twocolumn_left.zip" title="Download Free CSS Templates">Download template</a>
					</li>
<hr />
<li>
						<a href="/tutorialexamples/csslayouts/_twocolumn_right/" title="Static Two Column Template"><strong>Static &#8211; 2 Column</strong></a><br />
						<a href="/tutorialexamples/csslayouts/_twocolumn_right/" title="Static Two Column Template"><img src="/tutorialexamples/csslayouts/twocolumn_right.png" alt="Two Column CSS Layout Example" /></a><br />
						<a href="/tutorialexamples/csslayouts/_twocolumn_right/" title="View Free CSS Templates">View template</a><br />
						<a href="/tutorialexamples/csslayouts/_twocolumn_right.zip" title="Download Free CSS Templates">Download template</a>
					</li>
<hr />
<li>
						<a href="/tutorialexamples/csslayouts/_threecolumn_right/" title="Static Three Column Template"><strong>Static &#8211; 3 Column</strong></a><br />
						<a href="/tutorialexamples/csslayouts/_threecolumn_right/" title="Static Three Column Template"><img src="/tutorialexamples/csslayouts/threecolumn_right.png" alt="Three Column CSS Layout Example" /></a><br />
						<a href="/tutorialexamples/csslayouts/_threecolumn_right/" title="View Free CSS Templates">View template</a><br />
						<a href="/tutorialexamples/csslayouts/_threecolumn_right.zip" title="Download Free CSS Templates">Download template</a>
					</li>
<hr />
<li>
						<a href="/tutorialexamples/csslayouts/_threecolumn/" title="Static Three Column Template"><strong>Static &#8211; 3 Column</strong></a><br />
						<a href="/tutorialexamples/csslayouts/_threecolumn/" title="Static Three Column Template"><img src="/tutorialexamples/csslayouts/threecolumn.png" alt="Three Column CSS Layout Example" /></a><br />
						<a href="/tutorialexamples/csslayouts/_threecolumn/" title="View Free CSS Templates">View template</a><br />
						<a href="/tutorialexamples/csslayouts/_threecolumn.zip" title="Download Free CSS Templates">Download template</a>
					</li>
<hr />
<li>
						<a href="/tutorialexamples/csslayouts/_threecolumn_left/" title="Static Three Column Template"><strong>Static &#8211; 3 Column</strong></a><br />
						<a href="/tutorialexamples/csslayouts/_threecolumn_left/" title="Static Three Column Template"><img src="/tutorialexamples/csslayouts/threecolumn_left.png" alt="Three Column CSS Layout Example" /></a><br />
						<a href="/tutorialexamples/csslayouts/_threecolumn_left/" title="View Free CSS Templates">View template</a><br />
						<a href="/tutorialexamples/csslayouts/_threecolumn_left.zip" title="Download Free CSS Templates">Download template</a>
					</li>
<hr />
<li>
						<a href="/tutorialexamples/csslayouts/_fluid_onecolumn/" title="Fluid One Column Template"><strong>Fluid &#8211; 1 Column</strong></a><br />
						<a href="/tutorialexamples/csslayouts/_fluid_onecolumn/" title="Fluid One Column Template"><img src="/tutorialexamples/csslayouts/fluid_onecolumn.png" alt="One Column Fluid CSS Layout Example" /></a><br />
						<a href="/tutorialexamples/csslayouts/_fluid_onecolumn/" title="View Free CSS Templates">View template</a><br />
						<a href="/tutorialexamples/csslayouts/_fluid_onecolumn.zip" title="Download Free CSS Templates">Download template</a>
					</li>
<hr />
<li>
						<a href="/tutorialexamples/csslayouts/_fluid_twocolumn_left/" title="Fluid Two Column Template"><strong>Fluid &#8211; 2 Column</strong></a><br />
						<a href="/tutorialexamples/csslayouts/_fluid_twocolumn_left/" title="Fluid Two Column Template"><img src="/tutorialexamples/csslayouts/fluid_twocolumn_left.png" alt="Two Column Fluid CSS Layout Example" /></a><br />
						<a href="/tutorialexamples/csslayouts/_fluid_twocolumn_left/" title="View Free CSS Templates">View template</a><br />
						<a href="/tutorialexamples/csslayouts/_fluid_twocolumn_left.zip" title="Download Free CSS Templates">Download template</a>
					</li>
<hr />
<li>
						<a href="/tutorialexamples/csslayouts/_fluid_twocolumn_right/" title="Fluid Two Column Template"><strong>Fluid &#8211; 2 Column</strong></a><br />
						<a href="/tutorialexamples/csslayouts/_fluid_twocolumn_right/" title="Fluid Two Column Template"><img src="/tutorialexamples/csslayouts/fluid_twocolumn_right.png" alt="Two Column Fluid CSS Layout Example" /></a><br />
						<a href="/tutorialexamples/csslayouts/_fluid_twocolumn_right/" title="View Free CSS Templates">View template</a><br />
						<a href="/tutorialexamples/csslayouts/_fluid_twocolumn_right.zip" title="Download Free CSS Templates">Download template</a>
					</li>
<hr />
<li>
						<a href="/tutorialexamples/csslayouts/_fluid_threecolumn_right/" title="Fluid Three Column Template"><strong>Fluid &#8211; 3 Column</strong></a><br />
						<a href="/tutorialexamples/csslayouts/_fluid_threecolumn_right/" title="Fluid Three Column Template"><img src="/tutorialexamples/csslayouts/fluid_threecolumn_right.png" alt="Three Column CSS Layout Example" /></a><br />
						<a href="/tutorialexamples/csslayouts/_fluid_threecolumn_right/" title="View Free CSS Templates">View template</a><br />
						<a href="/tutorialexamples/csslayouts/_fluid_threecolumn_right.zip" title="Download Free CSS Templates">Download template</a>
					</li>
<hr />
<li>
						<a href="/tutorialexamples/csslayouts/_fluid_threecolumn/" title="Fluid Three Column Template"><strong>Fluid &#8211; 3 Column</strong></a><br />
						<a href="/tutorialexamples/csslayouts/_fluid_threecolumn/" title="Fluid Three Column Template"><img src="/tutorialexamples/csslayouts/fluid_threecolumn.png" alt="Three Column Fluid CSS Layout Example" /></a><br />
						<a href="/tutorialexamples/csslayouts/_fluid_threecolumn/" title="View Free CSS Templates">View template</a><br />
						<a href="/tutorialexamples/csslayouts/_fluid_threecolumn.zip" title="Download Free CSS Templates">Download template</a>
					</li>
<hr />
<li>
						<a href="/tutorialexamples/csslayouts/_fluid_threecolumn_left/" title="Fluid Three Column Template"><strong>Fluid &#8211; 3 Column</strong></a><br />
						<a href="/tutorialexamples/csslayouts/_fluid_threecolumn_left/" title="Fluid Three Column Template"><img src="/tutorialexamples/csslayouts/fluid_threecolumn_left.png" alt="Three Column Fluid CSS Layout Example" /></a><br />
						<a href="/tutorialexamples/csslayouts/_fluid_threecolumn_left/" title="View Free CSS Templates">View template</a><br />
						<a href="/tutorialexamples/csslayouts/_fluid_threecolumn_left.zip" title="Download Free CSS Templates">Download template</a>
					</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/free-css-layout-templates/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>One Column Slider Layout</title>
		<link>http://designshack.net/articles/one-column-slider-layout/</link>
		<comments>http://designshack.net/articles/one-column-slider-layout/#comments</comments>
		<pubDate>Tue, 31 Jul 2007 13:14:14 +0000</pubDate>
		<dc:creator>David Appleyard</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Layouts]]></category>
		<category><![CDATA[1column]]></category>
		<category><![CDATA[column]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[one]]></category>
		<category><![CDATA[onecolumn]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://localhost:8888/?p=443</guid>
		<description><![CDATA[So you know what the aim of this tutorial is, take a look at the end result. This is a fairly technical website, but uses the Moo.fx javascript library for the effects. Make sure that it is downloaded and installed before getting started. Setting up Moo.fx First of all, you need to download this Javascript [...]]]></description>
			<content:encoded><![CDATA[<p>So you know what the aim of this tutorial is, <a href="/tutorialexamples/onecolumn/" target="new window">take a look at the end result</a>. This is a fairly technical website, but uses the Moo.fx javascript library for the effects. Make sure that it is downloaded and installed before getting started.</p>
<h2>Setting up Moo.fx</h2>
<p>First of all, you need to download this Javascript package from <a href="http://moofx.mad4milk.net">the Moo.fx site</a>. Make sure that this is included in the head of each page.</p>
<h2>The HTML</h2>
<p>You can <a href="/tutorialexamples/onecolumn/index.txt" target="new window">download a copy of the HTML</a> for the page to take a look and see how the effect is achieved.</p>
<h2>The CSS</h2>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">body <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#222</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span> <span style="color: #933;">62.5%</span> verdana<span style="color: #00AA00;">,</span> arial<span style="color: #00AA00;">,</span> helvetica<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #cc66cc;">0</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;">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>
h3 <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #cc66cc;">0</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: #933;">1px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">17px</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: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">pointer</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.99em</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
h3 a<span style="color: #3333ff;">:link</span><span style="color: #00AA00;">,</span> h3 a<span style="color: #3333ff;">:visited </span><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>
&nbsp;
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">8px</span> <span style="color: #933;">1px</span><span style="color: #00AA00;">;</span>
	-moz-<span style="color: #000000; font-weight: bold;">outline-style</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> <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;">14px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">330px</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: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#container</span> <span style="color: #00AA00;">&#123;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">666px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</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>
<span style="color: #cc00cc;">#header</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>
<span style="color: #cc00cc;">#content</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span> <span style="color: #933;">25px</span> <span style="color: #933;">33px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
p <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: #cc66cc;">0</span> <span style="color: #933;">1px</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: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
div<span style="color: #6666ff;">.wrapper</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#EBEBEB</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#content</span> div <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;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1%</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.stretcher</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span> !important<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<h2>Put it all together</h2>
<p>Make sure you reference Moo.fx and the style sheet in the head of your HTML document, and you should be ready to go! Adding new sections to the layout is as simple as adding a new heading and following the structure which is already there.</p>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/one-column-slider-layout/feed/</wfw:commentRss>
		<slash:comments>8</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 685/824 objects using disk: basic

Served from: designshack.net @ 2012-02-09 19:54:23 -->
