<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns: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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
	<title>Think Vitamin</title>
	
	<link>http://thinkvitamin.com</link>
	<description>Carsonified's Blog about Web Design, Web Development and Web Business</description>
	<lastBuildDate>Thu, 09 Feb 2012 16:41:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/vitaminmasterfeed" /><feedburner:info uri="vitaminmasterfeed" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><image><link>http://thinkvitamin.com/</link><url>http://thinkvitamin.com/wp-content/uploads/2010/10/tv_logo.png</url><title>Think Vitamin</title></image><feedburner:emailServiceId>vitaminmasterfeed</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Are There Problems Web Apps Can’t Solve?</title>
		<link>http://feedproxy.google.com/~r/vitaminmasterfeed/~3/h1VpkkV3hMw/</link>
		<comments>http://thinkvitamin.com/asides/are-there-problems-web-apps-cant-solve/#comments</comments>
		<pubDate>Thu, 09 Feb 2012 14:00:50 +0000</pubDate>
		<dc:creator>Jim Hoskins</dc:creator>
				<category><![CDATA[Asides]]></category>
		<guid isPermaLink="false">http://thinkvitamin.com/?p=18568</guid>
		<content:encoded><![CDATA[<p>I&#8217;m a developer, have been for a long time. I&#8217;ve been wrting code for the web for the past decade in my life. I think I might be stuck in a bubble, I look to the web to solve problems that can be solved better in simpler ways. And looking around, I know I am not the only one.</p>
<p>I want to tell you a story of a couple of problems that we&#8217;ve tried to solve several times with technology, when all we needed was a couple dollars worth of office supplies.</p>
<p><span id="more-18568"></span></p>
<h2 id="the_lunch_party">The Lunch Party</h2>
<p>I&#8217;ve been working with <a href="http://twitter.com/nickrp">Nick Pettit</a> since 2007, before we came to Carsonified and <a href="http://teamtreehouse.com?cid=193">Treehouse</a>. In our last job we had a group of friends we would regularly go out to lunch with from the office. After a while, the decision of where to go became too difficult. &#8220;We went there yesterday!&#8221;, &#8220;I don&#8217;t really like X!&#8221;, and &#8220;I don&#8217;t know, where do you want to go?&#8221; became the common choices.</p>
<p>Then, I was writing in Rails, so I thought, &#8220;This is an easy problem to solve. Create a Restaurant and Person model, set up a voting system, input local eateries, Bam! Problem solved.&#8221; I had spare time in the office and this could easily be classified as learning, or experience building. I ended up making two or three prototypes over the 3 years I worked there. </p>
<p>The problem is, nobody really used it. Maybe it was a usability problem, but I think the process of using a web app to plan lunch just is not natural. Going out to lunch was a very social activity, and voting on a computer screen doesn&#8217;t really mesh well with that.</p>
<p>The &#8220;Lunch App&#8221; became a running joke between me and Nick. It was a more sarcastic version of &#8220;There&#8217;s an app for that.&#8221; An idea that seems easy, but just doesn&#8217;t really work. Fortunately, before I spent the rest of my life trying to plan lunch in the office, the problem was solved for me.  Nick and I quit. Then we joined Carsonified to built Treehouse (then Think Vitamin Membership).</p>
<p>There were now just 3 people in the company, and one of them was on another continent. Lunch was just agreeing between 2 people what to do, a web app is overkill. Then we hired <a href="https://twitter.com/michaelpoley">Michael</a>. Then <a href="https://twitter.com/jongeilen">Jon</a>. And <a href="https://twitter.com/paradoxed">Amit</a>, now there are 19 people working in the Orlando office. We scaled for a while, we just had to get 3 or 4 or 5 people to agree on lunch. It became stressful around 7. Suddenly the whole office can&#8217;t eat at the same place. Organizing lunch became a problem again.</p>
<p>For a few weeks we handled it in our campfire chat room. Someone would suggest a lunch destination, some people would be in, some not so much, an alternative choice would surface. It became hard to track who goes where. I began to think about the &#8220;Lunch App&#8221; again. Then I came to my senses.</p>
<p><img src="http://i.imgur.com/EAcvwh.jpg"></p>
<p>I grabbed a sharpie and a pack of sticky notes, wrote everybody&#8217;s name and all of the restaurants, each on their own note. I stuck them on the wall and this happened.</p>
<p><img src="http://i.imgur.com/NUNC3h.jpg"></p>
<p>It was amazing. Everybody could see the options, see who wanted to go where and make a good decision. We split into 3 reasonable groups and had excellent lunches, all the way around. This took 2 minutes to make.</p>
<p>There were bugs. The sticky notes were cheap. It was a bit boring, but that was fixed by going to the store and buying some extra-sticky sticky notes. I also picked up some stickers and other decorations so people could customize their stickies.</p>
<p>Version 2 was deployed in a few minutes, now with MySpace levels of &#8220;tasteful&#8221; customization.</p>
<p><img src="http://i.imgur.com/9FS3gh.jpg"><img src="http://i.imgur.com/gofPHh.jpg"></p>
<h2 id="video_workflow">Video Workflow</h2>
<p>Lunch planning was not the end of our sticky note problem solving.  Managing a video production studio is tough. We spent a lot of time at 2 video pros and 3 teachers. It was pretty manageable, but now there are 9 people on the video team, and 7 teachers. Now planning is critical. We have one screencasting room, and one video studio. With so many people figuring out who is using what resource when, and who is working with who when became our biggest headache.</p>
<p>At Treehouse, we use a lot of web apps. We have switched project management apps more times thatn I can count. Codebase, Basecamp, Github, Remember the Milk, Trello, Team Gannt, Asana, and probably a few others that escape my memory. It felt like we were switching project management apps every week. None of these apps were bad, but they all left something to be desired for our needs. </p>
<p>Then one day the sticky notes began to spread. Michael began utilizing other walls for organizing project workflow and scheduling </p>
<p><img src="http://i.imgur.com/JKawLh.jpg"></p>
<h2 id="so_sticky_notes_solve_all_problems">So, Sticky Notes Solve All Problems?</h2>
<p>No, my point is not that we should all use sticky notes for everything.  Obviously this has disadvantages vs a technical solution, but for lunch, we don&#8217;t need to have our remote employees involved, for obvious reasons.</p>
<p><img src="http://i.imgur.com/y5Q3Ah.jpg"></p>
<p>The moral of the story is that it&#8217;s very easy to get lost in our tools. As web designers and developers, we love the web, we love our tools. It&#8217;s easy to get into the mindset of solving every problem with what you know, when the obvious solution just isn&#8217;t obvious to you anymore.</p>
<p>Next time you set out to solve a problem with software, step back and think, can I solve this problem without it?</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vitaminmasterfeed?a=h1VpkkV3hMw:PHuevD6pZxU:TJpph-hZrPI"><img src="http://feeds.feedburner.com/~ff/vitaminmasterfeed?d=TJpph-hZrPI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vitaminmasterfeed/~4/h1VpkkV3hMw" height="1" width="1"/>]]></content:encoded>
		<wfw:commentRss>http://thinkvitamin.com/asides/are-there-problems-web-apps-cant-solve/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
					<feedburner:origLink>http://thinkvitamin.com/asides/are-there-problems-web-apps-cant-solve/</feedburner:origLink></item>
		<item>
		<title>Rails 3.2.1</title>
		<link>http://feedproxy.google.com/~r/vitaminmasterfeed/~3/sK9NCA8PUAY/</link>
		<comments>http://thinkvitamin.com/code/ruby-on-rails/rails-3-2-1/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 14:00:04 +0000</pubDate>
		<dc:creator>Jason Seifer</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<guid isPermaLink="false">http://thinkvitamin.com/?p=18410</guid>
		<content:encoded><![CDATA[<p>Greetings, folks! If you haven&#8217;t been keeping up with the latest Rails news, we have a new version! Ruby on Rails 3.2.1 has <a href="http://weblog.rubyonrails.org/2012/1/20/rails-3-2-0-faster-dev-mode-routing-explain-queries-tagged-logger-store">recently been released</a> with some very welcome changes!</p>
<p><span id="more-18410"></span></p>
<ul>
<li><strong>Faster development mode</strong> &#8211; Rails now only reloads the classes you&#8217;ve actually changed between requests in development mode.</li>
<li><strong>Explain queries</strong> &#8211; In development mode, you can automatically show the explain of certain queries by calling <code>.explain</code> at the end of your query. The results will go in your log.</li>
<li><strong>Active Record Store</strong> &#8211; Active Record now has a built in way to do key/value storage right from your models. No plug-ins or external gems required!</li>
</ul>
<p>You can also check out the <a href="https://gist.github.com/1648523">change log</a> of all of the fixes and changes, both big and small. Enjoy!</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vitaminmasterfeed?a=sK9NCA8PUAY:1BBcTugKECQ:TJpph-hZrPI"><img src="http://feeds.feedburner.com/~ff/vitaminmasterfeed?d=TJpph-hZrPI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vitaminmasterfeed/~4/sK9NCA8PUAY" height="1" width="1"/>]]></content:encoded>
		<wfw:commentRss>http://thinkvitamin.com/code/ruby-on-rails/rails-3-2-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
					<feedburner:origLink>http://thinkvitamin.com/code/ruby-on-rails/rails-3-2-1/</feedburner:origLink></item>
		<item>
		<title>Treehouse Groups are live!</title>
		<link>http://feedproxy.google.com/~r/vitaminmasterfeed/~3/VM23ihUEc0w/</link>
		<comments>http://thinkvitamin.com/treehouse/treehouse-groups-are-live/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 13:45:02 +0000</pubDate>
		<dc:creator>Ryan Carson</dc:creator>
				<category><![CDATA[Treehouse]]></category>
		<category><![CDATA[Features]]></category>
		<guid isPermaLink="false">http://thinkvitamin.com/?p=18615</guid>
		<content:encoded><![CDATA[<p>You can now create a <a href="http://teamtreehouse.com/groups?cid=226">Treehouse Group Account</a> for your company, university, school or any grouping of two or more people. Group plans are 25% cheaper so it&#8217;s a great way to save money. <span id="more-18615"></span></p>
<p><a href="http://teamtreehouse.com/groups?cid=226"><img src="https://img.skitch.com/20120208-e353huqs35pai7sn4aram9xbfu.png" alt="Screenshot of the new Treehouse Groups Activity page which shows Members unlocking badges and watching videos" /></a></p>
<p>We&#8217;ve added a simple Groups Dashboard that allows you to see &#8230;</p>
<ol>
<li>Group Activity: Who&#8217;s watching videos and unlocking Badges</li>
<li>Ranking in your Group, based on Badge unlocks</li>
</ol>
<h3>More info &#8230;</h3>
<ol>
<li>Group pricing is 25% off normal prices, which allows people with large groups to save a bit of money.</li>
<li>You only need 2+ people to sign up.</li>
<li>If you&#8217;re already a Member, you can&#8217;t be brought into a Group. We&#8217;ll address this in v2 of Groups. However, please contact Support if you need help: help@teamtreehouse.com</li>
<li><a href="http://teamtreehouse.com/groups?cid=226">Sign up here</a></li>
</ol>
<p>We have big plans for adding more features to Groups, so stay tuned. This is just an MVP (minimum viable product) release, so we could get it out to you all and see what you think :)</p>
<h3>General Design Refresh</h3>
<p><a href="http://twitter.com/ty">Tyson</a>, our new Designer has also done a site-wide refresh on the app. It&#8217;s even easier to use now and super fast. Tyson lead the Digg Design Team for awhile so he knows all about optimizing for speed :)</p>
<p><img src="https://img.skitch.com/20120208-ntk55d9d6nwi4ugk57khijcr8x.png" alt="Screengrab of the new Library page" /></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vitaminmasterfeed?a=VM23ihUEc0w:HlFswKnjcFk:TJpph-hZrPI"><img src="http://feeds.feedburner.com/~ff/vitaminmasterfeed?d=TJpph-hZrPI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vitaminmasterfeed/~4/VM23ihUEc0w" height="1" width="1"/>]]></content:encoded>
		<wfw:commentRss>http://thinkvitamin.com/treehouse/treehouse-groups-are-live/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
					<feedburner:origLink>http://thinkvitamin.com/treehouse/treehouse-groups-are-live/</feedburner:origLink></item>
		<item>
		<title>Free Video: Getting started with iOS development</title>
		<link>http://feedproxy.google.com/~r/vitaminmasterfeed/~3/uoTfIo-Tajk/</link>
		<comments>http://thinkvitamin.com/code/ios/free-video-getting-started-with-ios-development/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 15:38:09 +0000</pubDate>
		<dc:creator>Amit Bijlani</dc:creator>
				<category><![CDATA[iOS]]></category>
		<guid isPermaLink="false">http://thinkvitamin.com/?p=18579</guid>
		<content:encoded><![CDATA[<p>In this <a href="http://teamtreehouse.com/library/ios-4-foundations/your-first-app/getting-started/play?cid=193">6 minute video</a>, we will get you started with iOS development by learning about the benefits of Apple&#8217;s iOS Dev center and how to gain access to the integrated development environment (IDE) called Xcode.</p>
<p><a href="http://teamtreehouse.com/library/ios-4-foundations/your-first-app/getting-started/play?cid=193"><img src="http://i.imgur.com/34Rjr.png" /></a></p>
<p>This video is from <a href="http://teamtreehouse.com/?cid=193">Treehouse</a>, a high-quality video training site with hundreds of short videos on topics like &#8230;</p>
<ul>
<li><a href="http://teamtreehouse.com/library/accessibility/?cid=193">Accessibility</a></li>
<li><a href="http://teamtreehouse.com/library/design-foundations/css3?cid=193">CSS3</a></li>
<li><a href="http://teamtreehouse.com/library/design-foundations/aesthetic-foundations?cid=193">Aesthetic Foundations</a></li>
<li><a href="http://teamtreehouse.com/library/django/?cid=193">Django</a></li>
<li><a href="http://teamtreehouse.com/library/design-foundations/html/?cid=193">HTML</a></li>
<li><a href="http://teamtreehouse.com/library/design-foundations/css-foundations/?cid=193">CSS</a></li>
<li><a href="http://teamtreehouse.com/library/html5-foundations/?cid=193">HTML5</a></li>
<li><a href="http://teamtreehouse.com/library/ios-4-foundations/?cid=193">iOS Development</a></li>
<li><a href="http://teamtreehouse.com/library/javascript/?cid=193">JavaScript</a></li>
<li><a href="http://teamtreehouse.com/library/jquery/?cid=193">jQuery</a></li>
<li><a href="http://teamtreehouse.com/library/nosql/?cid=193">NoSQL</a></li>
<li><a href="http://teamtreehouse.com/library/php/?cid=193">PHP</a></li>
<li><a href="http://teamtreehouse.com/library/design-foundations/rwd-foundations/?cid=193">Responsive Web Design</a></li>
<li><a href="http://teamtreehouse.com/library/ruby/?cid=193">Ruby</a></li>
<li><a href="http://teamtreehouse.com/library/ruby-on-rails/?cid=193">Ruby on Rails</a></li>
<li><a href="http://teamtreehouse.com/library/archive/ux-foundations/?cid=193">UX</a></li>
<li><a href="http://teamtreehouse.com/library/version-control?cid=193">Version Control</a></li>
<li><a href="http://teamtreehouse.com/library/wordpress?cid=193">WordPress Theme Design</a></li>
</ul>
<p>New videos are added regularly, so it&#8217;s a great way to stay up-to-date on all the latest technology and methods. Browse the entire <a href="http://teamtreehouse.com/library/?cid=193">library of videos</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vitaminmasterfeed?a=uoTfIo-Tajk:TBbSR5woB7s:TJpph-hZrPI"><img src="http://feeds.feedburner.com/~ff/vitaminmasterfeed?d=TJpph-hZrPI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vitaminmasterfeed/~4/uoTfIo-Tajk" height="1" width="1"/>]]></content:encoded>
		<wfw:commentRss>http://thinkvitamin.com/code/ios/free-video-getting-started-with-ios-development/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
					<feedburner:origLink>http://thinkvitamin.com/code/ios/free-video-getting-started-with-ios-development/</feedburner:origLink></item>
		<item>
		<title>Another Round of Treehouse Nerd Merit Badges!</title>
		<link>http://feedproxy.google.com/~r/vitaminmasterfeed/~3/MGgUMyKUE8s/</link>
		<comments>http://thinkvitamin.com/treehouse/another-round-of-treehouse-nerd-merit-badges/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 14:00:28 +0000</pubDate>
		<dc:creator>Nick Pettit</dc:creator>
				<category><![CDATA[Treehouse]]></category>
		<guid isPermaLink="false">http://thinkvitamin.com/?p=18564</guid>
		<content:encoded><![CDATA[<p>We recently launched <a href="http://teamtreehouse.com/?cid=193">Treehouse</a> and, thanks to you, it&#8217;s been successful beyond our wildest expectations. Thank you all so much!</p>
<p>We had so much fun celebrating with our previous giveaway, that we thought we would do another one.<span id="more-18564"></span>If you <a href="http://twitter.com/treehouse">tweet to @treehouse</a> the name of your favorite web app, we&#8217;ll randomly pick 10 winners to receive a &quot;Mike the Frog&quot; Nerd Merit Badge! Here&#8217;s a picture of what they look like:</p>
<p><img src="http://i.imgur.com/MRZX6.jpg" alt="A circular embroidered badge featuring Mike the Frog."></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vitaminmasterfeed?a=MGgUMyKUE8s:g-HOwraB-6U:TJpph-hZrPI"><img src="http://feeds.feedburner.com/~ff/vitaminmasterfeed?d=TJpph-hZrPI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vitaminmasterfeed/~4/MGgUMyKUE8s" height="1" width="1"/>]]></content:encoded>
		<wfw:commentRss>http://thinkvitamin.com/treehouse/another-round-of-treehouse-nerd-merit-badges/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
					<feedburner:origLink>http://thinkvitamin.com/treehouse/another-round-of-treehouse-nerd-merit-badges/</feedburner:origLink></item>
		<item>
		<title>Pears: An open source collection of common markup &amp; style</title>
		<link>http://feedproxy.google.com/~r/vitaminmasterfeed/~3/5QPI3k9-NNo/</link>
		<comments>http://thinkvitamin.com/design/pears-an-open-source-collection-of-common-markup-style/#comments</comments>
		<pubDate>Mon, 06 Feb 2012 18:38:20 +0000</pubDate>
		<dc:creator>Allison Grayce</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Inspiration]]></category>
		<category><![CDATA[User Interface]]></category>
		<guid isPermaLink="false">http://thinkvitamin.com/?p=18536</guid>
		<content:encoded><![CDATA[<p>Lo and behold, Mr. Dan Cederholm has done it again! This time the folks over at <a href="http://simplebits.com/" target="_blank">SimpleBits</a> unveiled their latest project, <a href="http://pea.rs/" target="_blank">Pears</a>, an open source WordPress theme that enables you to get your own pattern library up and running quickly.</p>
<p><img alt="Pears" src="http://i.imgur.com/xvD0Z.jpg" title="Pears" class="alignleft" width="704" height="576" /></p>
<p><span id="more-18536"></span></p>
<p>This is super helpful to collect, test and experiment with your collection of semantic HTML &#038; CSS patterns. For beginners it can be a great way to begin to understand the relationship between markup and style. No matter which audience you fall into, it  is a handy tool for improving speed and productivity.</p>
<p>Also make sure to take notice of the Pears website itself, which is beautifully designed and responsive. </p>
<p>Thanks Dan, for making our lives more enjoyable with <a href="http://www.dribbble.com">Dribbble</a> and easier with <a href="http://www.pea.rs/">Pears</a>. :)</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vitaminmasterfeed?a=5QPI3k9-NNo:jznt-NvLDNM:TJpph-hZrPI"><img src="http://feeds.feedburner.com/~ff/vitaminmasterfeed?d=TJpph-hZrPI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vitaminmasterfeed/~4/5QPI3k9-NNo" height="1" width="1"/>]]></content:encoded>
		<wfw:commentRss>http://thinkvitamin.com/design/pears-an-open-source-collection-of-common-markup-style/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
					<feedburner:origLink>http://thinkvitamin.com/design/pears-an-open-source-collection-of-common-markup-style/</feedburner:origLink></item>
		<item>
		<title>Future Insights Live – Early Birds Extended!</title>
		<link>http://feedproxy.google.com/~r/vitaminmasterfeed/~3/UiEC1hHIdE0/</link>
		<comments>http://thinkvitamin.com/events/future-insights-live-early-birds-extended/#comments</comments>
		<pubDate>Mon, 06 Feb 2012 16:52:04 +0000</pubDate>
		<dc:creator>Lou Morgan</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[carsonified]]></category>
		<category><![CDATA[enterprise]]></category>
		<category><![CDATA[filive]]></category>
		<category><![CDATA[fowa]]></category>
		<category><![CDATA[fowd]]></category>
		<category><![CDATA[futureinsightslive]]></category>
		<category><![CDATA[futureofmobile]]></category>
		<category><![CDATA[thinkvitamin]]></category>
		<guid isPermaLink="false">http://thinkvitamin.com/?p=18485</guid>
		<content:encoded><![CDATA[<p><a href="http://thinkvitamin.com/events/future-insights-live-early-birds-extended/attachment/hooray/" rel="attachment wp-att-18486"><img src="http://thinkvitamin.com/wp-content/uploads/2012/02/hooray.jpg" alt="" width="704" height="468" class="aligncenter size-full wp-image-18486" /></a></p>
<p>If you caught <a href="http://thinkvitamin.com/events/youve-gotta-come-to-this-event/">Ryan&#8217;s article</a> last week, he told you about our brand new, not to be missed Vegas event &#8211; <a href="http://futureinsightslive.com"> Future Insights Live</a>! We&#8217;ve combined the Future of Web Apps, Design and Mobile into one massive five day event all geared toward you! Whether you&#8217;re a Web Designer, Developer or Entrepreneur there will be something for everyone.</p>
<p>We are launching a brand new scheduling app within the next couple of weeks which will list full details of the huge conference schedule and give you an overall feel for the event. So with that in mind, we have decided to extend our Early Birds (saving you $200) until 24th Feb! That way you can see EXACTLY what you&#8217;re paying for.</p>
<p>We&#8217;ll be launching the full schedule by the end of the week, so please check it out and <a href="http://futureinsightslive.com/register">join us</a> for our biggest event yet!</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vitaminmasterfeed?a=UiEC1hHIdE0:pNdP7oEfh60:TJpph-hZrPI"><img src="http://feeds.feedburner.com/~ff/vitaminmasterfeed?d=TJpph-hZrPI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vitaminmasterfeed/~4/UiEC1hHIdE0" height="1" width="1"/>]]></content:encoded>
		<wfw:commentRss>http://thinkvitamin.com/events/future-insights-live-early-birds-extended/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
					<feedburner:origLink>http://thinkvitamin.com/events/future-insights-live-early-birds-extended/</feedburner:origLink></item>
		<item>
		<title>Check My Colours</title>
		<link>http://feedproxy.google.com/~r/vitaminmasterfeed/~3/5-7K3reuYh4/</link>
		<comments>http://thinkvitamin.com/design/check-my-colours/#comments</comments>
		<pubDate>Mon, 06 Feb 2012 16:51:42 +0000</pubDate>
		<dc:creator>Nick Pettit</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[User Interface]]></category>
		<guid isPermaLink="false">http://thinkvitamin.com/?p=18517</guid>
		<content:encoded><![CDATA[<p>Developers often write tests to make sure their code is working properly, and designers should be thinking along the same lines.</p>
<p><span id="more-18517"></span></p>
<p>It&#8217;s difficult to test aesthetics, but with tools like <a href="http://www.spurapp.com/">Spur App</a> you can make sure that your design looks good for people with color blindness and other mild vision impairments. You can also make sure that your design has enough contrast and feels &quot;balanced&quot; on both sides.</p>
<p><a href="http://www.checkmycolours.com/"><img src="http://i.imgur.com/FdscF.jpg" alt="Logo for Check my Colours"></a></p>
<p><a href="http://www.checkmycolours.com/">Check My Colours</a> is another web-based tool that can help out. Simply type in your live URL, and you&#8217;ll get a listing of all the areas where your color contrast can be improved. It&#8217;s a bit more technical than simply looking at a black and white image, but it&#8217;s good for more detailed analysis, especially on a complex web application that might have lots of dynamic views.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vitaminmasterfeed?a=5-7K3reuYh4:ndeOO4iKia4:TJpph-hZrPI"><img src="http://feeds.feedburner.com/~ff/vitaminmasterfeed?d=TJpph-hZrPI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vitaminmasterfeed/~4/5-7K3reuYh4" height="1" width="1"/>]]></content:encoded>
		<wfw:commentRss>http://thinkvitamin.com/design/check-my-colours/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
					<feedburner:origLink>http://thinkvitamin.com/design/check-my-colours/</feedburner:origLink></item>
		<item>
		<title>Full Day Web Design Workshops: Which Would You Pick?</title>
		<link>http://feedproxy.google.com/~r/vitaminmasterfeed/~3/t5IZusJJEZU/</link>
		<comments>http://thinkvitamin.com/business/full-day-web-design-workshops-which-would-you-pick/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 16:51:00 +0000</pubDate>
		<dc:creator>Cat Clark</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[UX]]></category>
		<category><![CDATA[business]]></category>
		<category><![CDATA[carsonified]]></category>
		<category><![CDATA[fowd]]></category>
		<category><![CDATA[future of web design]]></category>
		<category><![CDATA[josh clark]]></category>
		<category><![CDATA[london]]></category>
		<category><![CDATA[mobile design]]></category>
		<category><![CDATA[paul boag]]></category>
		<category><![CDATA[responsive design]]></category>
		<category><![CDATA[steve fisher]]></category>
		<category><![CDATA[touchscreen]]></category>
		<category><![CDATA[ux]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[web standardistas]]></category>
		<category><![CDATA[workshops]]></category>
		<guid isPermaLink="false">http://thinkvitamin.com/?p=18417</guid>
		<content:encoded><![CDATA[<p><a href="http://thinkvitamin.com/business/full-day-web-design-workshops-which-would-you-pick/attachment/learn/" rel="attachment wp-att-18419"><img class="size-full wp-image-18419 alignleft" src="http://thinkvitamin.com/wp-content/uploads/2012/02/learn.jpg" alt="" width="704" height="380" /></a></p>
<p>At Carsonified Towers, we&#8217;re all getting super excited for May, when <a title="The Future Of Web Design" href="http://futureofwebdesign.com/london-2012/">The Future of Web Design</a> hits London for another three days of learning and inspiration. As ever, we kick off the show with <a href="http://futureofwebdesign.com/london-2012/schedule">four full-day workshops</a> &#8211; each lead by a totally inspirational industry leader. From 9am am to 5pm, we&#8217;ll be rolling up our sleeves and knuckling down for a serious hit of web savvy. Numbers are capped at 40 for each workshop, ensuring a great learning environment.</p>
<p>This year&#8217;s chosen workshop topics are already proving popular. First up, we&#8217;ve got the unstoppable force of web awesomeness that is <a href="http://twitter.com/#!/boagworld">Paul Boag</a>. Director of <a title="Headscape" href="http://headscape.co.uk/">Headscape</a>, Paul will be leading a crash course in <strong>Running A Successful Web Design Business</strong>: &#8221;<em>We like to think that being a successful independent web designer is about creating great websites. Its not. Running your own business is about a lot more than having the right professional skills.</em> &#8221;</p>
<p>After wowing the crowds as a Rising Star back in 2011, <a title="Steve Fisher (Twitter)" href="http://twitter.com/hellofisher">Steve Fisher</a> has rapidly become one of our most popular speakers. He&#8217;ll be joining us again in <a href="http://futureofwebdesign.com/london-2012/">London</a> to lead his <strong>Rock Solid UX Deliverables</strong> workshop: <em>&#8220;No longer something that has to always be hugely complex and costly, we&#8217;ll cover the back-to-basics approach to UX design in this workshop and how to practically dispatch a rock solid responsive web design UX deliverables package.&#8221; </em></p>
<p>Next up, creator of the uber popular<a href="http://globalmoxie.com/blog/c25k.shtml"> Coach to 5K</a> app, <a title="Josh Clark (Twitter)" href="http://twitter.com/globalmoxie">Josh Clark</a> will be crossing the Atlantic to deliver his <strong>Teaching Touch</strong> workshop &#8211; a sell out success at <a href="http://futureofwebdesign.com/new-york-2011/schedule/">FOWD NYC</a> last year: &#8220;<em>The workshop presents nitty-gritty &#8216;rule of thumb&#8217; design techniques that together form a framework for crafting finger-friendly interface metaphors, affordances, and gestures for a new generation of mobile apps that inform and delight.</em>&#8221;</p>
<p>Last but not least, longtime Carsonified favourites, the <a href="http://twitter.com/#!/standardistas">Web Standardistas </a>will be joining the fun, to teach their <strong>Good Ideas Grow On Paper</strong> workshop: &#8220;<em>Armed with some fundamental design principles and an abundance of tools – which naturally includes the Standardistas&#8217; &#8216;Bag of Awesome™&#8217; (containing a veritable cornucopia of material) – we show the aspiring analogue designer a range of methods for breaking out of the stranglehold of the often clichéd digital world.</em>&#8221;</p>
<div>
<p>Which workshop appeals the most to you? For detailed information on all of them, head on over to our <a href="http://futureofwebdesign.com/london-2012/schedule">schedule page</a>&#8230;</p>
<p><em>Thanks to <a href="http://www.flickr.com/photos/nationaalarchief/3915529903/">Nationaal Archief</a>  for the photo used above.</em></p>
</div>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vitaminmasterfeed?a=t5IZusJJEZU:XLscK-sCN70:TJpph-hZrPI"><img src="http://feeds.feedburner.com/~ff/vitaminmasterfeed?d=TJpph-hZrPI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vitaminmasterfeed/~4/t5IZusJJEZU" height="1" width="1"/>]]></content:encoded>
		<wfw:commentRss>http://thinkvitamin.com/business/full-day-web-design-workshops-which-would-you-pick/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
					<feedburner:origLink>http://thinkvitamin.com/business/full-day-web-design-workshops-which-would-you-pick/</feedburner:origLink></item>
		<item>
		<title>SQL Fiddle</title>
		<link>http://feedproxy.google.com/~r/vitaminmasterfeed/~3/i-wBRPUUpyA/</link>
		<comments>http://thinkvitamin.com/asides/sql-fiddle/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 15:05:25 +0000</pubDate>
		<dc:creator>Amit Bijlani</dc:creator>
				<category><![CDATA[Asides]]></category>
		<guid isPermaLink="false">http://thinkvitamin.com/?p=18418</guid>
		<content:encoded><![CDATA[<p>If you like jsFiddle, then you will love <a href="http://sqlfiddle.com/" title="SQL Fiddle">SQL Fiddle</a>. It allows you to select a database, build a schema, populate the schema and run queries against it. The service currently supports MS SQL, MySQL, Oracle, and PostgreSQL. Why is this interesting? You can compare databases, post questions to forums along with your schema and query or just prototype an idea. </p>
<p><a href="http://sqlfiddle.com/" title="SQL Fiddle"><img src="http://i.imgur.com/rXJfW.jpg" title="SQL Fiddle"></a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vitaminmasterfeed?a=i-wBRPUUpyA:2tq45Y49-MU:TJpph-hZrPI"><img src="http://feeds.feedburner.com/~ff/vitaminmasterfeed?d=TJpph-hZrPI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vitaminmasterfeed/~4/i-wBRPUUpyA" height="1" width="1"/>]]></content:encoded>
		<wfw:commentRss>http://thinkvitamin.com/asides/sql-fiddle/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
					<feedburner:origLink>http://thinkvitamin.com/asides/sql-fiddle/</feedburner:origLink></item>
		<item>
		<title>Free Video: Control Flow</title>
		<link>http://feedproxy.google.com/~r/vitaminmasterfeed/~3/Ao2E9Z7lMJM/</link>
		<comments>http://thinkvitamin.com/code/ruby/free-video-control-flow/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 14:00:24 +0000</pubDate>
		<dc:creator>Jason Seifer</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<guid isPermaLink="false">http://thinkvitamin.com/?p=18405</guid>
		<content:encoded><![CDATA[<p>In this <a href="http://teamtreehouse.com/library/ruby-foundations/objects-classes-and-variables/control-flow/play?cid=193">4 minute video</a>, you will learn about the concept of control flow in Ruby. This goes in to using if/else statements and case statements</p>
<p><a href="http://teamtreehouse.com/library/ruby-foundations/objects-classes-and-variables/control-flow/play?cid=193"><img src="http://thinkvitamin.com/wp-content/uploads/2012/02/Control-Flow-Treehouse-1.png" width="704" height="397" alt="A screenshot from the Control Flow video demonstrating a case statement." /></a></p>
<p>This video is from <a href="http://teamtreehouse.com/?cid=193">Treehouse</a>, a high-quality video training site with hundreds of short videos on topics like &#8230;</p>
<ul>
<li><a href="http://teamtreehouse.com/library/accessibility/?cid=193">Accessibility</a></li>
<li><a href="http://teamtreehouse.com/library/design-foundations/css3?cid=193">CSS3</a></li>
<li><a href="http://teamtreehouse.com/library/design-foundations/aesthetic-foundations?cid=193">Aesthetic Foundations</a></li>
<li><a href="http://teamtreehouse.com/library/django/?cid=193">Django</a></li>
<li><a href="http://teamtreehouse.com/library/design-foundations/html/?cid=193">HTML</a></li>
<li><a href="http://teamtreehouse.com/library/design-foundations/css-foundations/?cid=193">CSS</a></li>
<li><a href="http://teamtreehouse.com/library/html5-foundations/?cid=193">HTML5</a></li>
<li><a href="http://teamtreehouse.com/library/ios-4-foundations/?cid=193">iOS Development</a></li>
<li><a href="http://teamtreehouse.com/library/javascript/?cid=193">JavaScript</a></li>
<li><a href="http://teamtreehouse.com/library/jquery/?cid=193">jQuery</a></li>
<li><a href="http://teamtreehouse.com/library/nosql/?cid=193">NoSQL</a></li>
<li><a href="http://teamtreehouse.com/library/php/?cid=193">PHP</a></li>
<li><a href="http://teamtreehouse.com/library/design-foundations/rwd-foundations/?cid=193">Responsive Web Design</a></li>
<li><a href="http://teamtreehouse.com/library/ruby/?cid=193">Ruby</a></li>
<li><a href="http://teamtreehouse.com/library/ruby-on-rails/?cid=193">Ruby on Rails</a></li>
<li><a href="http://teamtreehouse.com/library/archive/ux-foundations/?cid=193">UX</a></li>
<li><a href="http://teamtreehouse.com/library/version-control?cid=193">Version Control</a></li>
<li><a href="http://teamtreehouse.com/library/wordpress?cid=193">WordPress Theme Design</a></li>
</ul>
<p>New videos are added regularly, so it&#8217;s a great way to stay up-to-date on all the latest technology and methods. Browse the entire <a href="http://teamtreehouse.com/library/?cid=193">library of videos</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vitaminmasterfeed?a=Ao2E9Z7lMJM:Kgaf5geFeio:TJpph-hZrPI"><img src="http://feeds.feedburner.com/~ff/vitaminmasterfeed?d=TJpph-hZrPI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vitaminmasterfeed/~4/Ao2E9Z7lMJM" height="1" width="1"/>]]></content:encoded>
		<wfw:commentRss>http://thinkvitamin.com/code/ruby/free-video-control-flow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
					<feedburner:origLink>http://thinkvitamin.com/code/ruby/free-video-control-flow/</feedburner:origLink></item>
		<item>
		<title>Git For Designers (Part 1)</title>
		<link>http://feedproxy.google.com/~r/vitaminmasterfeed/~3/_ssyV-KFkTk/</link>
		<comments>http://thinkvitamin.com/design/git-for-designers-part-1/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 20:33:36 +0000</pubDate>
		<dc:creator>Jason Seifer</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Design]]></category>
		<guid isPermaLink="false">http://thinkvitamin.com/?p=18391</guid>
		<content:encoded><![CDATA[<p>Hi designers! I&#8217;m not a designer. Sorry. I&#8217;m a developer. I can barely tell when things look good or not. This week I learned that there are different ampersands out there (thanks, <a href="http://twitter.com/allisongrayce">Allison</a>!). But that&#8217;s not why I&#8217;m writing today. We all have to work together. Professionally, one way we do that is by using version control. A version control system tracks changes to your code. There are a lot of different version control systems out there. Today we&#8217;ll be talking about git. Specifically, as it relates to designers making web sites.</p>
<p><span id="more-18391"></span></p>
<h2>Why Use Version Control?</h2>
<p>You might be wondering why you should use version control, even for a site you&#8217;ll never collaborate with anyone on. This is a valid question. I can best illustrate the answer with a scenario you may have encountered in the past. Let&#8217;s say you&#8217;re in the middle of making a site and want to try something crazy with the css. Maybe you want to do a bit of an experiment and make everything strange shades of yellow and red. You don&#8217;t know if you&#8217;re going to keep the work when you finish it. Since it&#8217;s an experiment, it would probably be a good idea to not mess up your working version of the site.</p>
<p>At this point, you might be thinking of creating a copy of the site and making your changes on the copy. Maybe you&#8217;re sure that you&#8217;re going to use this work and you&#8217;re going to crank through. Maybe it doesn&#8217;t work out, though. Wouldn&#8217;t it be nice if you could take a snapshot of your site now, do your experiment, and not have to worry about whether you mess things up? That&#8217;s exactly what version control is for!</p>
<h2 id="install">Step 1: Install and Configure Git</h2>
<p>In order to start working with git, though, we need to install it. Git is fairly easy to install. If you&#8217;re using Windows, <a href="http://help.github.com/win-set-up-git/">GitHub</a> has an excellent set up guide to get git installed on Windows. They also have great guides for <a href="http://help.github.com/mac-set-up-git/">Mac OS X</a> and <a href="http://help.github.com/linux-set-up-git/">linux</a>. If you don&#8217;t already have git installed, follow those guides and come on back here.</p>
<p>Once you have git installed, you have to tell it who you are. This is done using the <code>config</code> command. Open Terminal and type in the following:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">git</span> config <span style="color: #660033;">--global</span> user.name <span style="color: #ff0000;">&quot;Jason Seifer&quot;</span>
$ <span style="color: #c20cb9; font-weight: bold;">git</span> config <span style="color: #660033;">--global</span> user.email <span style="color: #ff0000;">&quot;jason@teamtreehouse.com&quot;</span></pre></div></div>

<h2 id="initialize">Step 2: Initialize a repository</h2>
<p>We&#8217;re going to initialize a git repository now. A repository is just a directory with one or more files we want to track the changes of, in this case our web site. Open up terminal (or command prompt on Windows) and change to the directory containing the site you want to put in to git. You do that with the <code>cd</code> command. I&#8217;m going to put my web site in the <code>Sites/think_vitamin</code> directory.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>~<span style="color: #7a0874; font-weight: bold;">&#93;</span> $ <span style="color: #7a0874; font-weight: bold;">cd</span> Sites<span style="color: #000000; font-weight: bold;">/</span>think_vitamin
<span style="color: #7a0874; font-weight: bold;">&#91;</span>~<span style="color: #000000; font-weight: bold;">/</span>Sites<span style="color: #000000; font-weight: bold;">/</span>think_vitamin<span style="color: #7a0874; font-weight: bold;">&#93;</span> $</pre></div></div>

<p>Once you&#8217;re in there, type the following:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>~<span style="color: #000000; font-weight: bold;">/</span>Sites<span style="color: #000000; font-weight: bold;">/</span>think_vitamin<span style="color: #7a0874; font-weight: bold;">&#93;</span> $ <span style="color: #c20cb9; font-weight: bold;">git</span> init</pre></div></div>

<p>Assuming you have correctly installed git, you should see the following:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">  Initialized empty Git repository <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>jason<span style="color: #000000; font-weight: bold;">/</span>Sites<span style="color: #000000; font-weight: bold;">/</span>think_vitamin<span style="color: #000000; font-weight: bold;">/</span>.git<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>This is git telling you that thinks are working and that the path it gave you is now a repository. If you don&#8217;t see that output, go back to step 1 and verify that everything was correctly installed.</p>
<h2 id="add">Step 3: Add Your Files</h2>
<p>Now that we have initialized our git repository, we have to tell git what files we want to add to the repository. In order to do this, we use the <code>add</code> command. The <code>add</code> command takes either a single file or a path. The <code>add</code> command takes the changes you&#8217;ve made and adds them to something in git called the staging area. The staging area is kind of like a waiting room for git. It lets you tell git what changes you&#8217;re going to add to the main index.</p>
<p>Since we are already in the directory with our web site, we&#8217;ll tell it to add the path of the current directory:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>~<span style="color: #000000; font-weight: bold;">/</span>Sites<span style="color: #000000; font-weight: bold;">/</span>think_vitamin<span style="color: #7a0874; font-weight: bold;">&#93;</span> $ <span style="color: #c20cb9; font-weight: bold;">git</span> add .</pre></div></div>

<p>At this point, you won&#8217;t see any output. My example is just an <code>index.html</code> file. In order to see what git is about to stage, you can use the <code>status</code> command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>~<span style="color: #000000; font-weight: bold;">/</span>Sites<span style="color: #000000; font-weight: bold;">/</span>think_vitamin master<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">git</span> status
&nbsp;
<span style="color: #666666; font-style: italic;"># On branch master</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Initial commit</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Changes to be committed:</span>
<span style="color: #666666; font-style: italic;">#   (use &quot;git rm --cached ...&quot; to unstage)</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#	new file:   index.html</span>
<span style="color: #666666; font-style: italic;">#</span></pre></div></div>

<p>The first line of the output says &#8220;<code>On branch master</code>&#8220;. In git, a branch is just a pointer to something called a <code>commit</code> (explained in the next section). Since this is our first commit, git lets us know that on the second line of output where it says <code>Initial commit</code>. Next, git says there are changes to be committed. My <code>index.html</code> file is there since it&#8217;s the only thing I have in the directory right now. This is good!</p>
<h2 id="commit">Step 4: Commit Your Changes</h2>
<p>A <code>commit</code> in git is a pointer to a series of changes that you have told git you want to track with the <code>add</code> command. When you commit your changes, git writes them to the index. This is git&#8217;s way of saying &#8220;this is what the repository looked like at this point in time.&#8221; So let&#8217;s commit our changes:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>~<span style="color: #000000; font-weight: bold;">/</span>Sites<span style="color: #000000; font-weight: bold;">/</span>think_vitamin<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">git</span> commit <span style="color: #660033;">-m</span> <span style="color: #ff0000;">&quot;Initial commit&quot;</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>master <span style="color: #7a0874; font-weight: bold;">&#40;</span>root-commit<span style="color: #7a0874; font-weight: bold;">&#41;</span> 542d5fa<span style="color: #7a0874; font-weight: bold;">&#93;</span> Initial commit
 <span style="color: #000000;">1</span> files changed, <span style="color: #000000;">1</span> insertions<span style="color: #7a0874; font-weight: bold;">&#40;</span>+<span style="color: #7a0874; font-weight: bold;">&#41;</span>, <span style="color: #000000;">0</span> deletions<span style="color: #7a0874; font-weight: bold;">&#40;</span>-<span style="color: #7a0874; font-weight: bold;">&#41;</span>
 create mode <span style="color: #000000;">100644</span> index.html</pre></div></div>

<p>Here we use the <code>commit</code> command to tell git to commit our changes to the repository. The <code>-m</code> argument told git that we want to give the commit a message. My message here was &#8220;Initial commit&#8221; because this was the first commit to the repository. As you make changes, you can be much more descriptive. This is helpful when working on larger teams. <a href="http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html">Time Pope</a> has a great article on writing good commit messages if you&#8217;d like any pointers.</p>
<p>The important thing about commits is that, once you have committed changes, you can always go back to how your repository was at the point in time of that commit. How cool is that? That means that you&#8217;re now free to make horrible changes to your site. Wnat to see how Comic Sans looks for all the headers? Go for it! You can always go back.</p>
<h2 id="make_changes">Step 5: Make some changes</h2>
<p>Now that things are committed, you can feel free to make some changes to your code. In my example web page, I made changes to the header of the page. Now we can run <code>git status</code> again to see what happened:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>~<span style="color: #000000; font-weight: bold;">/</span>Sites<span style="color: #000000; font-weight: bold;">/</span>think_vitamin<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">git</span> status
<span style="color: #666666; font-style: italic;"># On branch master</span>
<span style="color: #666666; font-style: italic;"># Changes not staged for commit:</span>
<span style="color: #666666; font-style: italic;">#   (use &quot;git add ...&quot; to update what will be committed)</span>
<span style="color: #666666; font-style: italic;">#   (use &quot;git checkout -- ...&quot; to discard changes in working directory)</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#	modified:   index.html</span>
<span style="color: #666666; font-style: italic;">#</span>
no changes added to commit <span style="color: #7a0874; font-weight: bold;">&#40;</span>use <span style="color: #ff0000;">&quot;git add&quot;</span> and<span style="color: #000000; font-weight: bold;">/</span>or <span style="color: #ff0000;">&quot;git commit -a&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>Now we&#8217;ll add the file we just changed:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>~<span style="color: #000000; font-weight: bold;">/</span>Sites<span style="color: #000000; font-weight: bold;">/</span>think_vitamin<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">git</span> add index.html
1.9.3 <span style="color: #7a0874; font-weight: bold;">&#91;</span>~<span style="color: #000000; font-weight: bold;">/</span>Sites<span style="color: #000000; font-weight: bold;">/</span>think_vitamin<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">git</span> status
<span style="color: #666666; font-style: italic;"># On branch master</span>
<span style="color: #666666; font-style: italic;"># Changes to be committed:</span>
<span style="color: #666666; font-style: italic;">#   (use &quot;git reset HEAD ...&quot; to unstage)</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#	modified:   index.html</span>
<span style="color: #666666; font-style: italic;">#</span></pre></div></div>

<p>Finally, we&#8217;ll commit the change:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>~<span style="color: #000000; font-weight: bold;">/</span>Sites<span style="color: #000000; font-weight: bold;">/</span>think_vitamin<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">git</span> commit <span style="color: #660033;">-m</span> <span style="color: #ff0000;">&quot;Modify home page header&quot;</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>master bc8251b<span style="color: #7a0874; font-weight: bold;">&#93;</span> Modify home page header
 <span style="color: #000000;">1</span> files changed, <span style="color: #000000;">1</span> insertions<span style="color: #7a0874; font-weight: bold;">&#40;</span>+<span style="color: #7a0874; font-weight: bold;">&#41;</span>, <span style="color: #000000;">1</span> deletions<span style="color: #7a0874; font-weight: bold;">&#40;</span>-<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>Great! We just made our first two commits. Our co-workers will love us for writing a descriptive message along with the second commit, too, although they might also still be mad for taking the last cup of coffee.</p>
<h2 id="make_a_branch">Step 6: Make a branch</h2>
<p>Remember earlier when we were talking about making experimental changes that you may want to keep? That&#8217; what branches are for! Branches let you easily separate your work. You can have two branches going at the same time with different work. Branches are great for experimentation with something that you&#8217;re not sure you&#8217;re going to keep.</p>
<p>Let&#8217;s say we wanted to change the font on all headers to Comic Sans. You&#8217;re not sure how this is going to look (bad) but your client really wants you to give it a try anyway. Let&#8217;s create a branch to do that just in case we want to switch back. In git terms, we call this process creating a branch. We do that by checking out the branch and passing a flag to git saying that we want to create it:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>~<span style="color: #000000; font-weight: bold;">/</span>Sites<span style="color: #000000; font-weight: bold;">/</span>think_vitamin<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">git</span> checkout <span style="color: #660033;">-b</span> comic_sans
Switched to a new branch <span style="color: #ff0000;">'comic_sans'</span></pre></div></div>

<p>Now that we&#8217;re on our <code>comic_sans</code> branch, we are free to make changes and commit them. This won&#8217;t affect anything on our <code>master</code> branch until later. Let&#8217;s make our changes:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>~<span style="color: #000000; font-weight: bold;">/</span>Sites<span style="color: #000000; font-weight: bold;">/</span>think_vitamin<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">git</span> status
<span style="color: #666666; font-style: italic;"># On branch comic_sans</span>
<span style="color: #666666; font-style: italic;"># Changes not staged for commit:</span>
<span style="color: #666666; font-style: italic;">#   (use &quot;git add ...&quot; to update what will be committed)</span>
<span style="color: #666666; font-style: italic;">#   (use &quot;git checkout -- ...&quot; to discard changes in working directory)</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#	modified:   index.html</span>
<span style="color: #666666; font-style: italic;">#</span>
no changes added to commit <span style="color: #7a0874; font-weight: bold;">&#40;</span>use <span style="color: #ff0000;">&quot;git add&quot;</span> and<span style="color: #000000; font-weight: bold;">/</span>or <span style="color: #ff0000;">&quot;git commit -a&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>Git also let&#8217;s us see what changed in between what we&#8217;re about to stage with the <code>diff</code> command:</p>

<div class="wp_syntax"><div class="code"><pre class="diff" style="font-family:monospace;"><span style="">&#91;</span>~/Sites/think_vitamin<span style="">&#93;</span>$ git diff
diff --git a/index.html b/index.html
index 159202e..<span style="color: #440088;">266d025</span> <span style="">100644</span>
<span style="color: #888822;">--- a/index.html</span>
<span style="color: #888822;">+++ b/index.html</span>
<span style="color: #440088;">@@ -1 +1 @@</span>
<span style="color: #991111;">-</span></pre></div></div>

<h1>Hello world</h1>

<div class="wp_syntax"><div class="code"><pre class="diff" style="font-family:monospace;"><span style="color: #00b000;">+</span></pre></div></div>

<h1 style="font-face: Comic Sans;">Hello world</h1>
<p>We can also add and commit the change with one command by using the <code>-a</code> flag when committing:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>~<span style="color: #000000; font-weight: bold;">/</span>Sites<span style="color: #000000; font-weight: bold;">/</span>think_vitamin<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">git</span> commit <span style="color: #660033;">-am</span> <span style="color: #ff0000;">&quot;Make header font comic sans&quot;</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>comic_sans 94af8b2<span style="color: #7a0874; font-weight: bold;">&#93;</span> Make header font comic sans
 <span style="color: #000000;">1</span> files changed, <span style="color: #000000;">1</span> insertions<span style="color: #7a0874; font-weight: bold;">&#40;</span>+<span style="color: #7a0874; font-weight: bold;">&#41;</span>, <span style="color: #000000;">1</span> deletions<span style="color: #7a0874; font-weight: bold;">&#40;</span>-<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>Now we&#8217;ve committed to the <code>comic_sans</code> branch. Sweet!</p>
<h2>Step 7: Merge your changes</h2>
<p>Our client is now happy with the header changes. Our experimental branch we created now needs the changes to make their way back in to our main branch. We do this through a process called <em>merging</em>. What we want to do is <code>merge</code> or changes from the <code>comic_sans</code> branch back in to the <code>master</code> branch. First, we have to go to the branch we want to merge to. We do that by checking out. This time, we won&#8217;t use the <code>-b</code> parameter since we&#8217;re not creating the branch:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>~<span style="color: #000000; font-weight: bold;">/</span>Sites<span style="color: #000000; font-weight: bold;">/</span>think_vitamin<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">git</span> checkout master
Switched to branch <span style="color: #ff0000;">'master'</span></pre></div></div>

<p>Now we use the <code>merge</code> command to get our changes from the <code>comic_sans</code> branch in to <code>master</code>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>~<span style="color: #000000; font-weight: bold;">/</span>Sites<span style="color: #000000; font-weight: bold;">/</span>think_vitamin<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">git</span> merge comic_sans
Updating bc8251b..94af8b2
Fast-forward
 index.html <span style="color: #000000; font-weight: bold;">|</span>    <span style="color: #000000;">2</span> +-
 <span style="color: #000000;">1</span> files changed, <span style="color: #000000;">1</span> insertions<span style="color: #7a0874; font-weight: bold;">&#40;</span>+<span style="color: #7a0874; font-weight: bold;">&#41;</span>, <span style="color: #000000;">1</span> deletions<span style="color: #7a0874; font-weight: bold;">&#40;</span>-<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>Boom! Now we have all of our changes in to git. If we want to see what these changes were, we can use th <code>log</code> command to get a nice display of times, dates, and authors:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>~<span style="color: #000000; font-weight: bold;">/</span>Sites<span style="color: #000000; font-weight: bold;">/</span>think_vitamin<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">git</span> log
commit 94af8b2e976ba11755f7483bc761ea2b9a747e0a
Author: Jason Seifer 
Date:   Wed Feb <span style="color: #000000;">1</span> <span style="color: #000000;">15</span>:07:<span style="color: #000000;">45</span> <span style="color: #000000;">2012</span> <span style="color: #660033;">-0500</span>
&nbsp;
    Make header font comic sans
&nbsp;
commit bc8251b338b8ac4451888e1da482708df6264529
Author: Jason Seifer 
Date:   Wed Feb <span style="color: #000000;">1</span> <span style="color: #000000;">10</span>:<span style="color: #000000;">16</span>:<span style="color: #000000;">41</span> <span style="color: #000000;">2012</span> <span style="color: #660033;">-0500</span>
&nbsp;
    Modify home page header
&nbsp;
commit 542d5fab4c86d29a125a78b8a89366f70bdfaa9d
Author: Jason Seifer 
Date:   Wed Feb <span style="color: #000000;">1</span> <span style="color: #000000;">10</span>:<span style="color: #000000;">10</span>:01 <span style="color: #000000;">2012</span> <span style="color: #660033;">-0500</span>
&nbsp;
    Initial commit</pre></div></div>

<h2>Well Done!</h2>
<p>In this article we learned how to install git, create a repository, change branches, and commit changes to our code. In the next article in this series, we&#8217;ll learn about removing files, going back to different commits, and pushing up to <a href="http://github.com">GitHub</a> and working with other people. Stay tuned!</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vitaminmasterfeed?a=_ssyV-KFkTk:-zbGYzPPl58:TJpph-hZrPI"><img src="http://feeds.feedburner.com/~ff/vitaminmasterfeed?d=TJpph-hZrPI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vitaminmasterfeed/~4/_ssyV-KFkTk" height="1" width="1"/>]]></content:encoded>
		<wfw:commentRss>http://thinkvitamin.com/design/git-for-designers-part-1/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
					<feedburner:origLink>http://thinkvitamin.com/design/git-for-designers-part-1/</feedburner:origLink></item>
		<item>
		<title>Showcase of the Best Google Fonts</title>
		<link>http://feedproxy.google.com/~r/vitaminmasterfeed/~3/HM5OV6C1D6s/</link>
		<comments>http://thinkvitamin.com/design/typography/showcase-of-the-best-google-fonts/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 14:00:08 +0000</pubDate>
		<dc:creator>Nick Pettit</dc:creator>
				<category><![CDATA[Typography]]></category>
		<category><![CDATA[Web Fonts]]></category>
		<guid isPermaLink="false">http://thinkvitamin.com/?p=18362</guid>
		<content:encoded><![CDATA[<p>It&#8217;s no secret that I am in love with Google Fonts. In fact, I use Google Fonts frequently in <a href="http://teamtreehouse.com/?cid=193">Treehouse</a> videos. :)</p>
<p><a href="http://hellohappy.org/beautiful-web-type/"><img src="http://i.imgur.com/uLh7I.jpg" alt="A screenshot of sans-serif typography that replicates the text from Darwin's book The Origin of Species."></a></p>
<p>The ongoing drawback to Google Fonts has been the smaller selection compared to other font services, but that&#8217;s rapidly changing. Even better, an editorialized web page called &#8220;<a href="http://hellohappy.org/beautiful-web-type/">Beautiful Web Type</a>&#8221; has popped up that showcases the best fonts that Google has to offer. Loving this!</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vitaminmasterfeed?a=HM5OV6C1D6s:EoR822CjsYU:TJpph-hZrPI"><img src="http://feeds.feedburner.com/~ff/vitaminmasterfeed?d=TJpph-hZrPI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vitaminmasterfeed/~4/HM5OV6C1D6s" height="1" width="1"/>]]></content:encoded>
		<wfw:commentRss>http://thinkvitamin.com/design/typography/showcase-of-the-best-google-fonts/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
					<feedburner:origLink>http://thinkvitamin.com/design/typography/showcase-of-the-best-google-fonts/</feedburner:origLink></item>
		<item>
		<title>Styling Images with CSS3</title>
		<link>http://feedproxy.google.com/~r/vitaminmasterfeed/~3/obApUqe8UBY/</link>
		<comments>http://thinkvitamin.com/design/styling-images-with-css3/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 23:36:54 +0000</pubDate>
		<dc:creator>Mat Helme</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[User Interface]]></category>
		<category><![CDATA[responsive layout]]></category>
		<guid isPermaLink="false">http://thinkvitamin.com/?p=18373</guid>
		<content:encoded><![CDATA[<p><a href="https://twitter.com/#!/nickla">Nick La</a> over at <a href="http://www.webdesignerwall.com">Web Designer Wall</a> put together a great article on how to style images with CSS3. The styles include: Basic Style(rounded corners), Embossed Style, Soft Embossed Style, Cutout Style and Glossy Overlay.  I personally love the Embossed Style, it&#8217;s ideal for interface buttons. Originally Nick ran into some issues when styling for a responsive layout. He quickly fixed them with an alternate solution. Check out the <a href="http://webdesignerwall.com/tutorials/css3-image-styles-part-2">article</a> to see his solution.  Great job Nick, we appreciate the tips and tricks!</p>
<p><a href="http://webdesignerwall.com/tutorials/css3-image-styles-part-2">View the Tutorial</a><br />
<a href="http://webdesignerwall.com/demo/css3-image-styles-part-2/">Demo Page</a></p>
<p><img alt="" src="http://i.imgur.com/7UdVG.jpg" title="Web Designer Wall" class="alignnone" width="704" height="311" /></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vitaminmasterfeed?a=obApUqe8UBY:6rH9Pkoy-gI:TJpph-hZrPI"><img src="http://feeds.feedburner.com/~ff/vitaminmasterfeed?d=TJpph-hZrPI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vitaminmasterfeed/~4/obApUqe8UBY" height="1" width="1"/>]]></content:encoded>
		<wfw:commentRss>http://thinkvitamin.com/design/styling-images-with-css3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
					<feedburner:origLink>http://thinkvitamin.com/design/styling-images-with-css3/</feedburner:origLink></item>
		<item>
		<title>Is there a Photoshop grid for responsive web design?</title>
		<link>http://feedproxy.google.com/~r/vitaminmasterfeed/~3/dv8ITV0s7tQ/</link>
		<comments>http://thinkvitamin.com/design/is-there-a-photoshop-grid-for-responsive-web-design/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 22:09:51 +0000</pubDate>
		<dc:creator>Kevin Dees</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Design]]></category>
		<guid isPermaLink="false">http://thinkvitamin.com/?p=18333</guid>
		<content:encoded><![CDATA[<p>I love responsive web design. It just gets me like no one else can. Now responsive web design gets Photoshop too. A <a href="http://elliotjaystocks.com/blog/a-better-photoshop-grid-for-responsive-web-design/">recent post by Elliot Jays Stocks</a> sheds light on the topic and includes a great template for designing your next PSD. You can find the <a href="http://static.elliotjaystocks.com/responsive-grid/psd/ejs_1000px_responsive_grid.psd.zip">download link on his website</a> or view the <a href="http://static.elliotjaystocks.com/responsive-grid/html-demo/">simply view the demo</a> if you are impatient like me.</p>
<p><span id="more-18333"></span></p>
<p><img src="http://i.imgur.com/e1zAT.jpg" alt="Grid Demo" /></p>
<p>You can <a href="http://elliotjaystocks.com/blog/">read all about Elliot&#8217;s ideas</a> on his website. He explain everything is great detail. If you read his post you will find it hard to disagree. Fixed designs are becoming harder and harder to justify.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vitaminmasterfeed?a=dv8ITV0s7tQ:UwnlOh2chcM:TJpph-hZrPI"><img src="http://feeds.feedburner.com/~ff/vitaminmasterfeed?d=TJpph-hZrPI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vitaminmasterfeed/~4/dv8ITV0s7tQ" height="1" width="1"/>]]></content:encoded>
		<wfw:commentRss>http://thinkvitamin.com/design/is-there-a-photoshop-grid-for-responsive-web-design/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
					<feedburner:origLink>http://thinkvitamin.com/design/is-there-a-photoshop-grid-for-responsive-web-design/</feedburner:origLink></item>
		<item>
		<title>Kevin Rose and Jason Calacanis confirmed for Future Insights Live in Vegas</title>
		<link>http://feedproxy.google.com/~r/vitaminmasterfeed/~3/mPN-CgbGwmU/</link>
		<comments>http://thinkvitamin.com/events/kevin-rose-and-jason-calacanis-confirmed-for-future-insights-live-in-vegas/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 11:08:25 +0000</pubDate>
		<dc:creator>Ryan Carson</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[Articles]]></category>
		<guid isPermaLink="false">http://thinkvitamin.com/?p=18352</guid>
		<content:encoded><![CDATA[<p><img src="http://thinkvitamin.com/wp-content/uploads/2012/01/Kevin-and-Jason.jpg" alt="Kevin Rose standing against a blue wall and Jason Calacanis sitting in a red chair" /></p>
<p>We&#8217;ve just confirmed that industry leaders Kevin Rose and Jason Calacanis will be speaking at <a href="http://futureinsightslive.com/">Future Insights Live</a> in Vegas on April 30 &#8211; May 4th!</p>
<p>Future Insights Live is our new show that combines Future of Web Apps, Future of Web Design and Future of Mobile into one huge 5-day, 5-track, 1,500 person conference. It&#8217;s going to be epic and you won&#8217;t want to miss it.</p>
<p>Early bird pricing (save $200) is almost over, so <a href="http://futureinsightslive.com/register">grab your ticket today</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vitaminmasterfeed?a=mPN-CgbGwmU:5GvTjoUvjZE:TJpph-hZrPI"><img src="http://feeds.feedburner.com/~ff/vitaminmasterfeed?d=TJpph-hZrPI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vitaminmasterfeed/~4/mPN-CgbGwmU" height="1" width="1"/>]]></content:encoded>
		<wfw:commentRss>http://thinkvitamin.com/events/kevin-rose-and-jason-calacanis-confirmed-for-future-insights-live-in-vegas/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
					<feedburner:origLink>http://thinkvitamin.com/events/kevin-rose-and-jason-calacanis-confirmed-for-future-insights-live-in-vegas/</feedburner:origLink></item>
		<item>
		<title>Free Video: iOS Tab bar (UITabBarController)</title>
		<link>http://feedproxy.google.com/~r/vitaminmasterfeed/~3/X0ky4Hr0nPg/</link>
		<comments>http://thinkvitamin.com/code/ios/free-video-ios-tab-bar-uitabbarcontroller/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 20:55:58 +0000</pubDate>
		<dc:creator>Amit Bijlani</dc:creator>
				<category><![CDATA[iOS]]></category>
		<guid isPermaLink="false">http://thinkvitamin.com/?p=18347</guid>
		<content:encoded><![CDATA[<p>In this <a href="http://teamtreehouse.com/library/ios-4-foundations/tab-bar-/basics/play?cid=193">7 minute video</a>,  you will learn the basics of the UITabBarController and how to create one using the Xcode project template.</p>
<p><a href="http://teamtreehouse.com/library/ios-4-foundations/tab-bar-/basics/play?cid=193"><img src="http://i.imgur.com/t2A5f.jpg" /></a></p>
<p>This video is from <a href="http://teamtreehouse.com/?cid=193">Treehouse</a>, a high-quality video training site with hundreds of short videos on topics like &#8230;</p>
<ul>
<li><a href="http://teamtreehouse.com/library/accessibility/?cid=193">Accessibility</a></li>
<li><a href="http://teamtreehouse.com/library/design-foundations/css3?cid=193">CSS3</a></li>
<li><a href="http://teamtreehouse.com/library/design-foundations/aesthetic-foundations?cid=193">Aesthetic Foundations</a></li>
<li><a href="http://teamtreehouse.com/library/django/?cid=193">Django</a></li>
<li><a href="http://teamtreehouse.com/library/design-foundations/html/?cid=193">HTML</a></li>
<li><a href="http://teamtreehouse.com/library/design-foundations/css-foundations/?cid=193">CSS</a></li>
<li><a href="http://teamtreehouse.com/library/html5-foundations/?cid=193">HTML5</a></li>
<li><a href="http://teamtreehouse.com/library/ios-4-foundations/?cid=193">iOS Development</a></li>
<li><a href="http://teamtreehouse.com/library/javascript/?cid=193">JavaScript</a></li>
<li><a href="http://teamtreehouse.com/library/jquery/?cid=193">jQuery</a></li>
<li><a href="http://teamtreehouse.com/library/nosql/?cid=193">NoSQL</a></li>
<li><a href="http://teamtreehouse.com/library/php/?cid=193">PHP</a></li>
<li><a href="http://teamtreehouse.com/library/design-foundations/rwd-foundations/?cid=193">Responsive Web Design</a></li>
<li><a href="http://teamtreehouse.com/library/ruby/?cid=193">Ruby</a></li>
<li><a href="http://teamtreehouse.com/library/ruby-on-rails/?cid=193">Ruby on Rails</a></li>
<li><a href="http://teamtreehouse.com/library/archive/ux-foundations/?cid=193">UX</a></li>
<li><a href="http://teamtreehouse.com/library/version-control?cid=193">Version Control</a></li>
<li><a href="http://teamtreehouse.com/library/wordpress?cid=193">WordPress Theme Design</a></li>
</ul>
<p>New videos are added regularly, so it&#8217;s a great way to stay up-to-date on all the latest technology and methods. Browse the entire <a href="http://teamtreehouse.com/library/?cid=193">library of videos</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vitaminmasterfeed?a=X0ky4Hr0nPg:7NBW_jiW3qU:TJpph-hZrPI"><img src="http://feeds.feedburner.com/~ff/vitaminmasterfeed?d=TJpph-hZrPI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vitaminmasterfeed/~4/X0ky4Hr0nPg" height="1" width="1"/>]]></content:encoded>
		<wfw:commentRss>http://thinkvitamin.com/code/ios/free-video-ios-tab-bar-uitabbarcontroller/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
					<feedburner:origLink>http://thinkvitamin.com/code/ios/free-video-ios-tab-bar-uitabbarcontroller/</feedburner:origLink></item>
		<item>
		<title>Twitter Bootstrap 2.0</title>
		<link>http://feedproxy.google.com/~r/vitaminmasterfeed/~3/zr94Xcv8IF8/</link>
		<comments>http://thinkvitamin.com/design/twitter-bootstrap-2-0/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 14:00:54 +0000</pubDate>
		<dc:creator>Jason Seifer</dc:creator>
				<category><![CDATA[Design]]></category>
		<guid isPermaLink="false">http://thinkvitamin.com/?p=18282</guid>
		<content:encoded><![CDATA[<p>
<a href="http://markdotto.com/bs2/docs/">Twitter Bootstrap 2.0</a> will be coming out January 31st. In the mean time, there is a pre-release you can check out and report on any bugs that you find. Twitter Bootstrap is a great HTML and CSS framework that has been gaining a lot of popularity recently. You can check out sites built with bootstrap on the unofficial <a href="http://builtwithbootstrap.com/">Built With Bootstrap</a> tumblr.
</p>
<p><span id="more-18282"></span></p>
<p>You can also follow <a href="http://twitter.com/twbootstrap">@twbootstrap</a> on Twitter.</p>
<p><a href="http://markdotto.com/bs2/docs/"><img src="http://thinkvitamin.com/wp-content/uploads/2012/01/Bootstrap-from-Twitter.jpg" alt="" title="Bootstrap, from Twitter" width="704" height="656" class="alignnone size-full wp-image-18283" /></a></p>
<p>Here&#8217;s some of what&#8217;s new in this release:</p>
<ul>
<li>Responsive layout (!) with media queries.</li>
<li>New 12 column grid (the old one was 16 columns).</li>
<li>Stacked forms are the default.</li>
<li>Split button dropdowns.</li>
<li>New Pills.</li>
<li>Navigation lists.</li>
<li>New Dropdowns.</li>
<li>Tabbles in any direction.</li>
<li>New JavaScript plugins.</li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vitaminmasterfeed?a=zr94Xcv8IF8:1bwn3ziR6Wc:TJpph-hZrPI"><img src="http://feeds.feedburner.com/~ff/vitaminmasterfeed?d=TJpph-hZrPI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vitaminmasterfeed/~4/zr94Xcv8IF8" height="1" width="1"/>]]></content:encoded>
		<wfw:commentRss>http://thinkvitamin.com/design/twitter-bootstrap-2-0/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
					<feedburner:origLink>http://thinkvitamin.com/design/twitter-bootstrap-2-0/</feedburner:origLink></item>
		<item>
		<title>A New Year, A New Responsive Dribbble Portfolio – Part 1 of 2</title>
		<link>http://feedproxy.google.com/~r/vitaminmasterfeed/~3/e8vStbJuWrA/</link>
		<comments>http://thinkvitamin.com/design/a-new-year-a-new-responsive-dribbble-portfolio-part-1-of-2/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 14:00:18 +0000</pubDate>
		<dc:creator>Mat Helme</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Design]]></category>
		<guid isPermaLink="false">http://thinkvitamin.com/?p=18138</guid>
		<content:encoded><![CDATA[<p><a href="http://i.imgur.com/6HWPQ.png"><img src="http://i.imgur.com/bvVj8.jpg" alt="Dribbble Portfolio" /></a></p>
<p>What better way to start off the new year than a fresh new Dribbble portfolio?  If you are a designer with minimal coding experience and want to display your Dribbble work in all browser sizes, you have come to the right place.  We will be creating a HTML5 one page portfolio which pulls your Dribbble information and is responsive in all browsers.  This little project will be presented in two parts.</p>
<p><span id="more-18138"></span></p>
<hr />
<h3>Part 1 (this post):</h3>
<p>HTML/CSS/jQuery set up.</p>
<h3>Part 2 (coming soon):</h3>
<p>Convert HTML to PHP and use the Dribbble API to pull your data. Plus IE fixes.</p>
<hr />
<h2>The File Structure</h2>
<p>Let’s dig right in and start off with our file structure.  On your desktop create a folder labeled: ‘Dribble-Portfolio’.  In that folder create the following files:</p>
<ul>
<li>folder labeled ‘css’</li>
<ul>
<li>style.css</li>
</ul>
<li>folder labeled ‘images’</li>
<ul>
<li><a href="http://i.imgur.com/IGjNu.png">logo.png</a></li>
<li><a href="http://i.imgur.com/CaQ1q.png">connet.jpg</a></li>
<li><a href="http://i.imgur.com/gp22J.jpg">me.png</a></li>
<li><a href="http://i.imgur.com/C5Sdi.jpg">sample.jpg</a></li>
</ul>
<li>index.html</li>
<li>folder labeled ‘scripts’</li>
<ul>
<li><a href="http://www.etuwa.com/scripts/jquery.js">jquery.js</a></li>
<li><a href="http://www.etuwa.com/scripts/fitText.js">fitText.js</a></li>
</ul>
</ul>
<p>It should look a little something like this:</p>
<p><img src="http://i.imgur.com/U0OPl.jpg" alt="Dribbble Portfolio" /></p>
<p><em>*to download the .js and image files simply select the links above and save them to the appropriate file structure.</em></p>
<h2>The HTML</h2>
<p>Now that we have all of our assets and files lets begin with the HTML. Below is the proper code for your ‘index.html’ file.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;!</span>DOCTYPE html<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>html<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>head<span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;!--</span>Viewport<span style="color: #339933;">--&gt;</span>
	<span style="color: #339933;">&lt;</span>meta name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;viewport&quot;</span> content<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;width=device-width; initial-scale=1; maximum-scale=1&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>meta http<span style="color: #339933;">-</span>equiv<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Content-Type&quot;</span> content<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/html; charset=UTF-8&quot;</span> <span style="color: #339933;">/&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>title<span style="color: #339933;">&gt;</span>Dribbble Portfolio<span style="color: #339933;">&lt;/</span>title<span style="color: #339933;">&gt;</span>
&nbsp;
  <span style="color: #339933;">&lt;!--</span>Google fonts<span style="color: #339933;">--&gt;</span>
  <span style="color: #339933;">&lt;</span>link href<span style="color: #339933;">=</span><span style="color: #0000ff;">'http://fonts.googleapis.com/css?family=Open+Sans'</span> rel<span style="color: #339933;">=</span><span style="color: #0000ff;">'stylesheet'</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">'text/css'</span><span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;</span>link href<span style="color: #339933;">=</span><span style="color: #0000ff;">'http://fonts.googleapis.com/css?family=Raleway:100'</span> rel<span style="color: #339933;">=</span><span style="color: #0000ff;">'stylesheet'</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">'text/css'</span><span style="color: #339933;">&gt;</span>
&nbsp;
  <span style="color: #339933;">&lt;!--</span>Main Stylesheet<span style="color: #339933;">--&gt;</span>
  <span style="color: #339933;">&lt;</span>link rel<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;stylesheet&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/css&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;css/style.css&quot;</span> <span style="color: #339933;">/&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>head<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>body<span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>header<span style="color: #339933;">&gt;</span>
&nbsp;
  	<span style="color: #339933;">&lt;</span>h1 id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;logo&quot;</span><span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/logo.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;My Logo&quot;</span> <span style="color: #339933;">/&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>h1<span style="color: #339933;">&gt;</span>
&nbsp;
    <span style="color: #339933;">&lt;</span>nav<span style="color: #339933;">&gt;</span>
&nbsp;
    	<span style="color: #339933;">&lt;</span>ul <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;menu&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
        <span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;email&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;dribbble&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;facebook&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;linkd&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>
&nbsp;
      <span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
&nbsp;
    <span style="color: #339933;">&lt;/</span>nav<span style="color: #339933;">&gt;</span>
&nbsp;
  <span style="color: #339933;">&lt;/</span>header<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;!--</span><span style="color: #990000;">end</span> header<span style="color: #339933;">--&gt;</span>
&nbsp;
  <span style="color: #339933;">&lt;</span>section <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;half&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
      <span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/me.jpg&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;main-image&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;This is Me&quot;</span> <span style="color: #339933;">/&gt;</span>
&nbsp;
  <span style="color: #339933;">&lt;/</span>section<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;!--</span><span style="color: #990000;">end</span> main image<span style="color: #339933;">--&gt;</span>
&nbsp;
  <span style="color: #339933;">&lt;</span>section <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;half&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
  	<span style="color: #339933;">&lt;</span>h2 <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;tagline&quot;</span><span style="color: #339933;">&gt;</span>Check Out My Super Radical One Page Responsive Portfolio Which Pulls My Dribble <span style="color: #0000ff;">'Shots'</span><span style="color: #339933;">.</span> Get Gnarly<span style="color: #339933;">!&lt;/</span>h2<span style="color: #339933;">&gt;</span>
&nbsp;
  <span style="color: #339933;">&lt;/</span>section<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;!--</span><span style="color: #990000;">end</span> tagline<span style="color: #339933;">--&gt;</span>
&nbsp;
  <span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;clear&quot;</span><span style="color: #339933;">&gt;&lt;/</span>div<span style="color: #339933;">&gt;</span>
&nbsp;
  <span style="color: #339933;">&lt;</span>section<span style="color: #339933;">&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>h1<span style="color: #339933;">&gt;</span>Latest Work<span style="color: #339933;">&lt;/</span>h1<span style="color: #339933;">&gt;</span>
&nbsp;
&nbsp;
			<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;container&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
&nbsp;
          <span style="color: #339933;">&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Title of the Work<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/sample.jpg&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Work Title&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pic&quot;</span><span style="color: #339933;">/&gt;</span>
          <span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
&nbsp;
          <span style="color: #339933;">&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Title of the Work<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/sample.jpg&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Work Title&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pic&quot;</span><span style="color: #339933;">/&gt;</span>
          <span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
&nbsp;
          <span style="color: #339933;">&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Title of the Work<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/sample.jpg&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Work Title&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pic&quot;</span><span style="color: #339933;">/&gt;</span>
          <span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
&nbsp;
          <span style="color: #339933;">&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Title of the Work<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/sample.jpg&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Work Title&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pic&quot;</span><span style="color: #339933;">/&gt;</span>
          <span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
          <span style="color: #339933;">&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Title of the Work<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/sample.jpg&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Work Title&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pic&quot;</span><span style="color: #339933;">/&gt;</span>
          <span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
&nbsp;
          <span style="color: #339933;">&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Title of the Work<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/sample.jpg&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Work Title&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pic&quot;</span><span style="color: #339933;">/&gt;</span>
          <span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
          <span style="color: #339933;">&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Title of the Work<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/sample.jpg&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Work Title&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pic&quot;</span><span style="color: #339933;">/&gt;</span>
          <span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
&nbsp;
          <span style="color: #339933;">&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Title of the Work<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/sample.jpg&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Work Title&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pic&quot;</span><span style="color: #339933;">/&gt;</span>
          <span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
          <span style="color: #339933;">&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Title of the Work<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/sample.jpg&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Work Title&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pic&quot;</span><span style="color: #339933;">/&gt;</span>
          <span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
          <span style="color: #339933;">&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Title of the Work<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/sample.jpg&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Work Title&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pic&quot;</span><span style="color: #339933;">/&gt;</span>
          <span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
          <span style="color: #339933;">&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Title of the Work<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/sample.jpg&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Work Title&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pic&quot;</span><span style="color: #339933;">/&gt;</span>
          <span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
          <span style="color: #339933;">&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Title of the Work<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/sample.jpg&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Work Title&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pic&quot;</span><span style="color: #339933;">/&gt;</span>
          <span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
&nbsp;
			<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;/</span>section<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;!--</span><span style="color: #990000;">end</span> dribble content<span style="color: #339933;">--&gt;</span>
&nbsp;
  <span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;clear&quot;</span><span style="color: #339933;">&gt;&lt;/</span>div<span style="color: #339933;">&gt;</span>
&nbsp;
  <span style="color: #339933;">&lt;</span>footer<span style="color: #339933;">&gt;</span>All RIghts Reserved <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">&gt;</span>www<span style="color: #339933;">.</span>website<span style="color: #339933;">.</span>com<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>footer<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;!--</span><span style="color: #990000;">end</span> footer<span style="color: #339933;">--&gt;</span>
&nbsp;
&nbsp;
&nbsp;
<span style="color: #339933;">&lt;/</span>body<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>html<span style="color: #339933;">&gt;</span></pre></div></div>

<p>As you can see the code is fairly simple. We have a basic HTML5 markup with some ‘viewport’ settings at the top. The ‘viewport’ settings tell devices such as iPhones to display at the devices width and scale.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #339933;">&lt;!</span>DOCTYPE html<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>html<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>head<span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;!--</span>Viewport<span style="color: #339933;">--&gt;</span>
	<span style="color: #339933;">&lt;</span>meta name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;viewport&quot;</span> content<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;width=device-width; initial-scale=1; maximum-scale=1&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>meta http<span style="color: #339933;">-</span>equiv<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Content-Type&quot;</span> content<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/html; charset=UTF-8&quot;</span> <span style="color: #339933;">/&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>title<span style="color: #339933;">&gt;</span>Dribbble Portfolio<span style="color: #339933;">&lt;/</span>title<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Also the &#8216;head&#8217; is reaching out and grabbing some Google font stylesheets as well as our ‘style.css’ file in our ‘css’ folder. We will get to this file in our next step.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
  <span style="color: #339933;">&lt;!--</span>Google fonts<span style="color: #339933;">--&gt;</span>
  <span style="color: #339933;">&lt;</span>link href<span style="color: #339933;">=</span><span style="color: #0000ff;">'http://fonts.googleapis.com/css?family=Open+Sans'</span> rel<span style="color: #339933;">=</span><span style="color: #0000ff;">'stylesheet'</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">'text/css'</span><span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;</span>link href<span style="color: #339933;">=</span><span style="color: #0000ff;">'http://fonts.googleapis.com/css?family=Raleway:100'</span> rel<span style="color: #339933;">=</span><span style="color: #0000ff;">'stylesheet'</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">'text/css'</span><span style="color: #339933;">&gt;</span>
&nbsp;
  <span style="color: #339933;">&lt;!--</span>Main Stylesheet<span style="color: #339933;">--&gt;</span>
  <span style="color: #339933;">&lt;</span>link rel<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;stylesheet&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/css&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;css/style.css&quot;</span> <span style="color: #339933;">/&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>head<span style="color: #339933;">&gt;</span></pre></div></div>

<p>As we get into the body of the file we have four main sections(header, section(half), section(dribbble) and footer).</p>
<p>The header contains two elements. Element one is the logo, feel free to change it. It’s located in the images folder, labeled ‘logo.png’(200x80px). Element two is our social network icons which we won’t see until we add the css styles. For now we are going to link to hash tags. In part two of this tutorial we will be pulling in the correct data via Dribbble.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>header<span style="color: #339933;">&gt;</span>
&nbsp;
  	<span style="color: #339933;">&lt;</span>h1 id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;logo&quot;</span><span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/logo.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;My Logo&quot;</span> <span style="color: #339933;">/&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>h1<span style="color: #339933;">&gt;</span>
&nbsp;
    <span style="color: #339933;">&lt;</span>nav<span style="color: #339933;">&gt;</span>
&nbsp;
    	<span style="color: #339933;">&lt;</span>ul <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;menu&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
        <span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;email&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;dribbble&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;facebook&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;linkd&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>
&nbsp;
      <span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
&nbsp;
    <span style="color: #339933;">&lt;/</span>nav<span style="color: #339933;">&gt;</span>
&nbsp;
  <span style="color: #339933;">&lt;/</span>header<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;!--</span><span style="color: #990000;">end</span> header<span style="color: #339933;">--&gt;</span></pre></div></div>

<p>The next section, section(half) contains our ‘me.jpg’ image and our tagline which are located directly below the header. Feel free to swap out the image(me.jpg) and tagline copy to better personalize your portfolio. The image currently being pulled in is 800x600px as it is scalable to the screen size.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #339933;">&lt;</span>section <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;half&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
      <span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/me.jpg&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;main-image&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;This is Me&quot;</span> <span style="color: #339933;">/&gt;</span>
&nbsp;
  <span style="color: #339933;">&lt;/</span>section<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;!--</span><span style="color: #990000;">end</span> main image<span style="color: #339933;">--&gt;</span>
&nbsp;
  <span style="color: #339933;">&lt;</span>section <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;half&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
  	<span style="color: #339933;">&lt;</span>h2 <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;tagline&quot;</span><span style="color: #339933;">&gt;</span>Check Out My Super Radical One Page Responsive Portfolio Which Pulls My Dribble <span style="color: #0000ff;">'Shots'</span><span style="color: #339933;">.</span> Get Gnarly<span style="color: #339933;">!&lt;/</span>h2<span style="color: #339933;">&gt;</span>
&nbsp;
  <span style="color: #339933;">&lt;/</span>section<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;!--</span><span style="color: #990000;">end</span> tagline<span style="color: #339933;">--&gt;</span>
&nbsp;
  <span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;clear&quot;</span><span style="color: #339933;">&gt;&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Our next section is section(dribble) which is going to pull our most recent Dribbble ‘shot’ titles and ‘shot’ images. For now we are going to use dummy content. In part two we will be running a loop to pull the latest projects with the all mighty power of php. You will also be able to choose how many projects you would like to display. For now we are going show twelve ‘shot’ examples.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>section<span style="color: #339933;">&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>h1<span style="color: #339933;">&gt;</span>Latest Work<span style="color: #339933;">&lt;/</span>h1<span style="color: #339933;">&gt;</span>
&nbsp;
&nbsp;
			<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;container&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
&nbsp;
          <span style="color: #339933;">&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Title of the Work<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/sample.jpg&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Work Title&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pic&quot;</span><span style="color: #339933;">/&gt;</span>
          <span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
&nbsp;
          <span style="color: #339933;">&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Title of the Work<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/sample.jpg&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Work Title&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pic&quot;</span><span style="color: #339933;">/&gt;</span>
          <span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
&nbsp;
          <span style="color: #339933;">&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Title of the Work<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/sample.jpg&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Work Title&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pic&quot;</span><span style="color: #339933;">/&gt;</span>
          <span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
&nbsp;
          <span style="color: #339933;">&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Title of the Work<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/sample.jpg&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Work Title&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pic&quot;</span><span style="color: #339933;">/&gt;</span>
          <span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
          <span style="color: #339933;">&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Title of the Work<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/sample.jpg&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Work Title&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pic&quot;</span><span style="color: #339933;">/&gt;</span>
          <span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
&nbsp;
          <span style="color: #339933;">&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Title of the Work<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/sample.jpg&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Work Title&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pic&quot;</span><span style="color: #339933;">/&gt;</span>
          <span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
          <span style="color: #339933;">&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Title of the Work<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/sample.jpg&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Work Title&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pic&quot;</span><span style="color: #339933;">/&gt;</span>
          <span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
&nbsp;
          <span style="color: #339933;">&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Title of the Work<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/sample.jpg&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Work Title&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pic&quot;</span><span style="color: #339933;">/&gt;</span>
          <span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
          <span style="color: #339933;">&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Title of the Work<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/sample.jpg&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Work Title&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pic&quot;</span><span style="color: #339933;">/&gt;</span>
          <span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
          <span style="color: #339933;">&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Title of the Work<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/sample.jpg&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Work Title&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pic&quot;</span><span style="color: #339933;">/&gt;</span>
          <span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
          <span style="color: #339933;">&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Title of the Work<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/sample.jpg&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Work Title&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pic&quot;</span><span style="color: #339933;">/&gt;</span>
          <span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
          <span style="color: #339933;">&lt;</span>a <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Title of the Work<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
            	<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/sample.jpg&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Work Title&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pic&quot;</span><span style="color: #339933;">/&gt;</span>
          <span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
&nbsp;
			<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;/</span>section<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;!--</span><span style="color: #990000;">end</span> dribble content<span style="color: #339933;">--&gt;</span></pre></div></div>

<p>The last section is the footer area. This is for any links or Copy Right text you wish to display or link out to.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>footer<span style="color: #339933;">&gt;</span>All RIghts Reserved <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span><span style="color: #339933;">&gt;</span>www<span style="color: #339933;">.</span>website<span style="color: #339933;">.</span>com<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>footer<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;!--</span><span style="color: #990000;">end</span> footer<span style="color: #339933;">--&gt;</span></pre></div></div>

<h2>The CSS</h2>
<p>Now that we have inserted all of our HTML data, let’s add our styles to the page. Simply copy the CSS code below and input it into the style.css file. Here is the CSS code:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* DRIBBBLE PORTFOLIO SITE - 2012 */</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*RESET*/</span>
html<span style="color: #00AA00;">,</span>body<span style="color: #00AA00;">,</span>div<span style="color: #00AA00;">,</span>span<span style="color: #00AA00;">,</span>applet<span style="color: #00AA00;">,</span>object<span style="color: #00AA00;">,</span>iframe<span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#logo</span><span style="color: #00AA00;">,</span>h2<span style="color: #00AA00;">,</span>h3<span style="color: #00AA00;">,</span>h4<span style="color: #00AA00;">,</span>h5<span style="color: #00AA00;">,</span>h6<span style="color: #00AA00;">,</span>p<span style="color: #00AA00;">,</span>blockquote<span style="color: #00AA00;">,</span>pre<span style="color: #00AA00;">,</span>a<span style="color: #00AA00;">,</span>abbr<span style="color: #00AA00;">,</span>acronym<span style="color: #00AA00;">,</span>address<span style="color: #00AA00;">,</span>big<span style="color: #00AA00;">,</span>cite<span style="color: #00AA00;">,</span>code<span style="color: #00AA00;">,</span>del<span style="color: #00AA00;">,</span>dfn<span style="color: #00AA00;">,</span>em<span style="color: #00AA00;">,</span>img<span style="color: #00AA00;">,</span>ins<span style="color: #00AA00;">,</span>kbd<span style="color: #00AA00;">,</span>q<span style="color: #00AA00;">,</span>s<span style="color: #00AA00;">,</span>samp<span style="color: #00AA00;">,</span>small<span style="color: #00AA00;">,</span>strike<span style="color: #00AA00;">,</span>strong<span style="color: #00AA00;">,</span>sub<span style="color: #00AA00;">,</span>sup<span style="color: #00AA00;">,</span>tt<span style="color: #00AA00;">,</span>var<span style="color: #00AA00;">,</span>b<span style="color: #00AA00;">,</span>u<span style="color: #00AA00;">,</span>i<span style="color: #00AA00;">,</span><span style="color: #993333;">center</span><span style="color: #00AA00;">,</span>dl<span style="color: #00AA00;">,</span>dt<span style="color: #00AA00;">,</span>dd<span style="color: #00AA00;">,</span>ol<span style="color: #00AA00;">,</span>ul<span style="color: #00AA00;">,</span>li<span style="color: #00AA00;">,</span>fieldset<span style="color: #00AA00;">,</span>form<span style="color: #00AA00;">,</span>label<span style="color: #00AA00;">,</span>legend<span style="color: #00AA00;">,</span>table<span style="color: #00AA00;">,</span>caption<span style="color: #00AA00;">,</span>tbody<span style="color: #00AA00;">,</span>tfoot<span style="color: #00AA00;">,</span>thead<span style="color: #00AA00;">,</span>tr<span style="color: #00AA00;">,</span>th<span style="color: #00AA00;">,</span>td<span style="color: #00AA00;">,</span>article<span style="color: #00AA00;">,</span>aside<span style="color: #00AA00;">,</span>canvas<span style="color: #00AA00;">,</span>details<span style="color: #00AA00;">,</span><span style="color: #993333;">embed</span><span style="color: #00AA00;">,</span>figure<span style="color: #00AA00;">,</span>figcaption<span style="color: #00AA00;">,</span>footer<span style="color: #00AA00;">,</span>header<span style="color: #00AA00;">,</span>hgroup<span style="color: #00AA00;">,</span>menu<span style="color: #00AA00;">,</span>nav<span style="color: #00AA00;">,</span>output<span style="color: #00AA00;">,</span>ruby<span style="color: #00AA00;">,</span>section<span style="color: #00AA00;">,</span>summary<span style="color: #00AA00;">,</span>time<span style="color: #00AA00;">,</span>mark<span style="color: #00AA00;">,</span>audio<span style="color: #00AA00;">,</span>video<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">outline</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>border<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>font-family<span style="color: #00AA00;">:</span><span style="color: #993333;">inherit</span><span style="color: #00AA00;">;</span>font-<span style="color: #000000; font-weight: bold;">size</span><span style="color: #00AA00;">:</span><span style="color: #933;">100%</span><span style="color: #00AA00;">;</span>margin<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>padding<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>vertical-align<span style="color: #00AA00;">:</span><span style="color: #993333;">baseline</span><span style="color: #00AA00;">&#125;</span>article<span style="color: #00AA00;">,</span>aside<span style="color: #00AA00;">,</span>details<span style="color: #00AA00;">,</span>figcaption<span style="color: #00AA00;">,</span>figure<span style="color: #00AA00;">,</span>footer<span style="color: #00AA00;">,</span>header<span style="color: #00AA00;">,</span>hgroup<span style="color: #00AA00;">,</span>menu<span style="color: #00AA00;">,</span>nav<span style="color: #00AA00;">,</span>section<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">&#125;</span>body<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">1</span><span style="color: #00AA00;">&#125;</span>ol<span style="color: #00AA00;">,</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;">&#125;</span>blockquote<span style="color: #00AA00;">,</span>q<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">quotes</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">&#125;</span>blockquote<span style="color: #3333ff;">:before</span><span style="color: #00AA00;">,</span>blockquote<span style="color: #3333ff;">:after</span><span style="color: #00AA00;">,</span>q<span style="color: #3333ff;">:before</span><span style="color: #00AA00;">,</span>q<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: #993333;">none</span><span style="color: #00AA00;">&#125;</span>table<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">border-collapse</span><span style="color: #00AA00;">:</span><span style="color: #993333;">collapse</span><span style="color: #00AA00;">;</span>border-spacing<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*MAIN*/</span>
body <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#dce877</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;">padding</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">5%</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #3333ff;">:Open </span>Sans<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;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">90%</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">13px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">21px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#616634</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
header<span style="color: #00AA00;">,</span> footer <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</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>
section <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</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: #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;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
a <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#616634</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> transition<span style="color: #3333ff;">:all </span>linear .5s<span style="color: #00AA00;">;</span> -webkit-transition<span style="color: #3333ff;">:all </span>linear .5s<span style="color: #00AA00;">;</span> -moz-transition<span style="color: #3333ff;">:all </span>linear .5s<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: #00AA00;">&#125;</span>
a<span style="color: #3333ff;">:hover </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;">#111</span><span style="color: #00AA00;">;</span> opacity<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
h1<span style="color: #00AA00;">,</span> h2<span style="color: #00AA00;">,</span> h3 <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
h1 <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
h2 <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">30px</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;">40px</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;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">14px</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;">40px</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;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.full</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;">96%</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">2%</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <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>
<span style="color: #6666ff;">.half</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;">46%</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">2%</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <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>
.<span style="color: #000000; font-weight: bold;">clear</span> <span style="color: #00AA00;">&#123;</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: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*HEADER*/</span>
header <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span> <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: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#bcc664</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: #cc66cc;">0</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#logo</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> transition<span style="color: #3333ff;">:all </span>linear .5s<span style="color: #00AA00;">;</span> -webkit-transition<span style="color: #3333ff;">:all </span>linear .5s<span style="color: #00AA00;">;</span> -moz-transition<span style="color: #3333ff;">:all </span>linear .5s<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #808080; font-style: italic;">/*CONNECT*/</span>
	nav <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span> transition<span style="color: #3333ff;">:all </span>linear .5s<span style="color: #00AA00;">;</span> -webkit-transition<span style="color: #3333ff;">:all </span>linear .5s<span style="color: #00AA00;">;</span> -moz-transition<span style="color: #3333ff;">:all </span>linear .5s<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
	<span style="color: #6666ff;">.menu</span> <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: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">15px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
	<span style="color: #6666ff;">.menu</span> li <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">inline</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
	<span style="color: #6666ff;">.menu</span> li a <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">32px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">31px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">../images/connect.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span> opacity<span style="color: #00AA00;">:</span>.5<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <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;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">30px</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
	<span style="color: #6666ff;">.menu</span> li a<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span> opacity<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
	<span style="color: #6666ff;">.dribbble</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
	<span style="color: #6666ff;">.linkd</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-38px</span> <span style="color: #cc66cc;">0</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
	<span style="color: #6666ff;">.twitter</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-78px</span> <span style="color: #cc66cc;">0</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
	<span style="color: #6666ff;">.facebook</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-118px</span> <span style="color: #cc66cc;">0</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
	<span style="color: #6666ff;">.email</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-158px</span> <span style="color: #cc66cc;">0</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*SECTION(HALF)*/</span>
<span style="color: #6666ff;">.main-image</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;">100%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.tagline</span> <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;">140%</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#616634</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span>Raleway<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*SECTION(DRIBBBLE)*/</span>
<span style="color: #cc00cc;">#container</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> column-count<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">4</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;">10px</span><span style="color: #00AA00;">;</span> -moz-column-gap<span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> column-gap<span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <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>
<span style="color: #6666ff;">.box</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#BCC664</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">5%</span><span style="color: #00AA00;">;</span> opacity<span style="color: #00AA00;">:</span>.75<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span>inline-<span style="color: #993333;">block</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#616634</span><span style="color: #00AA00;">;</span> border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">10px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">90%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.pic</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;">100%</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <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: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*FOOTER*/</span>
footer <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">border-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#bcc664</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span> <span style="color: #cc66cc;">0</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;">12px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #808080; font-style: italic;">/*MEDIA QUERIES*/</span>
<span style="color: #a1a100;">@media screen and (max-width:960px ) {</span>
&nbsp;
	<span style="color: #cc00cc;">#container</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> column-count<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">3</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> <span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #a1a100;">@media screen and (max-width: 768px) {</span>
&nbsp;
	<span style="color: #6666ff;">.half</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;">95%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
	<span style="color: #6666ff;">.menu</span> li a <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
	<span style="color: #cc00cc;">#container</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> -webkit-column-count<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">2</span><span style="color: #00AA00;">;</span> column-count<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">2</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>	
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #a1a100;">@media screen and (max-width: 479px) {</span>
&nbsp;
	<span style="color: #cc00cc;">#logo</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: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">48px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
	nav <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">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: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">50px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
	<span style="color: #6666ff;">.menu</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
	<span style="color: #cc00cc;">#container</span> <span style="color: #00AA00;">&#123;</span> -moz-column-count<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span> -webkit-column-count<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span> column-count<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: #00AA00;">&#125;</span></pre></div></div>

<p>After we save our ‘style.css’ file and refresh our browser, we have a very clean portfolio layout that responds well to the browser size.</p>
<p>When you view the stylesheet css code you will see ‘%’ used a lot on the width attributes. The page is styled with a responsive fluid layout in mind. If you have any questions about responsive web sites, please check out ‘<a href="http://teamtreehouse.com/library/design-foundations/rwd-foundations">Responsive Web Design Foundations</a>’ over at Treehouse.</p>
<p>As of now we have a fully functional static HTML5 page which has been tested in the latest versions of Firefox, Chrome and Safari. Because we are using HTML5 and CSS3 capabilities we will not be testing in IE at the moment. Once we finish up part 2 of the tutorial we will set up separate IE files to compensate for it’s lack of functionality with HTML5 and CSS3.</p>
<h2>The JavaScript</h2>
<p>Lastly we are going to add a little javascript to our page allowing our ‘tagline’ text to scale with browser size. Insert this snippet of code directly below the footer.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;!--</span>js files<span style="color: #339933;">--&gt;</span>
	<span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;scripts/jquery.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;scripts/fitText.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;!--</span>initiate fit text<span style="color: #339933;">--&gt;</span>
	<span style="color: #339933;">&lt;</span>script<span style="color: #339933;">&gt;</span>
&nbsp;
  	 $<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
  		 <span style="color: #009966; font-style: italic;">/*FitText*/</span>
  		 $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.tagline&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fitText</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">1.1</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span> minFontSize<span style="color: #339933;">:</span> <span style="color: #3366CC;">'20px'</span><span style="color: #339933;">,</span> maxFontSize<span style="color: #339933;">:</span> <span style="color: #3366CC;">'200px'</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  	 <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>This snippet simply links up to our ‘jquery’ and ‘fitText’ files we set in our scripts folder earlier. Then it initiates the ‘fitText’ function and gives it some variables. Feel free to change the max-font-size and min-font-size as your ‘tagline’ will be different.</p>
<h2>Wrapping Up</h2>
<p>Now lets review what we have just done.</p>
<ul>
<li>We have set up our HTML</li>
<li>Added our CSS styles</li>
<li>Inserted a little javascript</li>
</ul>
<p>Congratulations you have successfully set up a static responsive one page portfolio.</p>
<hr />
<p><a href="http://thinkvitamin.s3.amazonaws.com/dribbble-api/part-1/Dribble-Portfolio.zip">Source Files</a><br />
<a href="http://thinkvitamin.s3.amazonaws.com/dribbble-api/part-1/Dribble-Portfolio/index.html" target="_blank">Demo Site</a></p>
<hr />
<h3>Still to Come(Part 2)</h3>
<p>In the final portion of this tutorial we will be using <a href="http://dribbble.com/api">Dribbble API</a> to load in our user data and ‘shots’, as well as IE 8 and up fixes. In the meantime if you would like to know more about HTML5 and CSS3 please check out <a href="http://teamtreehouse.com/">Treehouse</a>, or contact me at mat@teamtreehouse.com. As always, Get Gnarly and Design your Life!</p>
<p>Role Those Credits:</p>
<ul>
<li><a href="http://dribbble.com/">Dribbble</a></li>
<li><a href="http://jquery.com/">jQuery</a></li>
<li><a href="http://fittextjs.com/">Fit Text</a></li>
<li><a href="http://teamtreehouse.com/">Treehouse</a></li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vitaminmasterfeed?a=e8vStbJuWrA:gA_zEYOkPlI:TJpph-hZrPI"><img src="http://feeds.feedburner.com/~ff/vitaminmasterfeed?d=TJpph-hZrPI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vitaminmasterfeed/~4/e8vStbJuWrA" height="1" width="1"/>]]></content:encoded>
		<wfw:commentRss>http://thinkvitamin.com/design/a-new-year-a-new-responsive-dribbble-portfolio-part-1-of-2/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
					<feedburner:origLink>http://thinkvitamin.com/design/a-new-year-a-new-responsive-dribbble-portfolio-part-1-of-2/</feedburner:origLink></item>
		<item>
		<title>Scrolling Made Fun</title>
		<link>http://feedproxy.google.com/~r/vitaminmasterfeed/~3/1yWNXrRKmPc/</link>
		<comments>http://thinkvitamin.com/design/scrolling-made-fun/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 20:00:31 +0000</pubDate>
		<dc:creator>Mat Helme</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Typography]]></category>
		<guid isPermaLink="false">http://thinkvitamin.com/?p=18304</guid>
		<content:encoded><![CDATA[<p><a href="http://johnpolacek.github.com/scrollorama/"><img src="http://i.imgur.com/Ff5DF.jpg" alt="Scrollorama" /></a></p>
<p>Just when you thought scrolling your web page was getting boring. <a href="http://johnpolacek.github.com/scrollorama/">Scrollorama</a> has stepped the scroll game up with this remarkable jQuery Plugin. <a href="http://johnpolacek.github.com/scrollorama/">Scrollorama</a> allows you to manipulate text when you scroll the page. You can do everything from Transitions to Zoom to Parallax. Check out the <a href="http://johnpolacek.github.com/scrollorama/">Scrollorama</a> site to view some great examples and the plugin&#8217;s documentation.</p>
<p>This Plugin is great for landing pages and highly interactive web applications. Like CSS3 transitions, use your animations sparingly.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vitaminmasterfeed?a=1yWNXrRKmPc:mVfXxKLz_NY:TJpph-hZrPI"><img src="http://feeds.feedburner.com/~ff/vitaminmasterfeed?d=TJpph-hZrPI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vitaminmasterfeed/~4/1yWNXrRKmPc" height="1" width="1"/>]]></content:encoded>
		<wfw:commentRss>http://thinkvitamin.com/design/scrolling-made-fun/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
					<feedburner:origLink>http://thinkvitamin.com/design/scrolling-made-fun/</feedburner:origLink></item>
		<item>
		<title>Our new Treehouse Student Plan is live!</title>
		<link>http://feedproxy.google.com/~r/vitaminmasterfeed/~3/EE5D2HO6rJc/</link>
		<comments>http://thinkvitamin.com/treehouse/our-new-treehouse-student-plan-is-live/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 09:58:34 +0000</pubDate>
		<dc:creator>Ryan Carson</dc:creator>
				<category><![CDATA[Treehouse]]></category>
		<category><![CDATA[Articles]]></category>
		<guid isPermaLink="false">http://thinkvitamin.com/?p=18275</guid>
		<content:encoded><![CDATA[<p><img src="https://img.skitch.com/20120125-erhxq218qk62x3fn6reb6indfa.jpg" alt="Treehouse Airship flying through a white sky" /></p>
<p>We&#8217;ve just released our new <a href="https://teamtreehouse.com/subscribe/new?plan=a15f5a59&amp;cid=212">Treehouse Student plan</a> and it&#8217;s only $9 per month! It&#8217;s the equivalent to our Gold plan, which is $49 per month, so you&#8217;re saving a massive 82%. Anyone who attends a school, college or university is eligible. After you sign up, we&#8217;ll ask you to provide proof of your student program.</p>
<p>Benefits include:</p>
<ol>
<li><strong>Unlimited access to our Video Course Library</strong>. 450+ videos, more added each week on topics like CSS3, HTML5, JavaScript, iOS, Photoshop and more. All videos downloadable for offline viewing. Unlock Badges to prove your knowledge.</li>
<li><strong>Complete Project Videos</strong> show you how to create real-world sites and apps, from start to finish. All example files are downloadable.</li>
<li><strong>114 Conference Videos</strong> from Future of Web Design and Future of Web Apps ($545 value)</li>
<li><strong>Closed Captioning</strong> on all videos for non-English speakers and the deaf.</li>
</ol>
<p>If you&#8217;d like to get Treehouse in to your entire school, college or university, please contact <a href="mailto:chris@teamtreehouse.com">Chris</a> and he&#8217;ll be happy to help!</p>
<p>There&#8217;s a money-back guarantee, and you aren&#8217;t tied in to a contract. <a href="https://teamtreehouse.com/subscribe/new?plan=a15f5a59&amp;cid=185">Sign up today</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vitaminmasterfeed?a=EE5D2HO6rJc:tR0A8frrGFs:TJpph-hZrPI"><img src="http://feeds.feedburner.com/~ff/vitaminmasterfeed?d=TJpph-hZrPI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vitaminmasterfeed/~4/EE5D2HO6rJc" height="1" width="1"/>]]></content:encoded>
		<wfw:commentRss>http://thinkvitamin.com/treehouse/our-new-treehouse-student-plan-is-live/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
					<feedburner:origLink>http://thinkvitamin.com/treehouse/our-new-treehouse-student-plan-is-live/</feedburner:origLink></item>
		<item>
		<title>The separation of structure, presentation and behavior is dead</title>
		<link>http://feedproxy.google.com/~r/vitaminmasterfeed/~3/pNWqxcDu1dk/</link>
		<comments>http://thinkvitamin.com/design/the-separation-of-structure-presentation-and-behavior-is-dead/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 14:00:23 +0000</pubDate>
		<dc:creator>Kevin Dees</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Web Industry]]></category>
		<guid isPermaLink="false">http://thinkvitamin.com/?p=18132</guid>
		<content:encoded><![CDATA[<p>The separation of structure, presentation and behavior is dead. It has been dead for a while. Still, this golden rule of web design sticks around. It lives on like Elvis and we need to address it.</p>
<p><span id="more-18132"></span></p>
<p>I remember the weight of separation vividly. I remember writing custom JavaScript to replace the &lt;a&gt; tag&#8217;s target attribute because it added behavior to HTML. I remember dropping the &lt;font&gt; tag from my arsenal of tools, something I don’t regret.</p>
<p>In principle, the rule of separation was good. It helped us explain the best practice and implementation of HTML, CSS and JavaScript. It spun the web toward a brighter future. Separation vanquished the &lt;font&gt; tags, spacer gifs and inline JavaScript that polluted the web for years. In the old web structure, presentation and behavior lived in one layer but the principle of separation divided them.</p>
<p><img src="http://i.imgur.com/8i6MJ.jpg" alt="The old web" /></p>
<h2>The Path</h2>
<p>The principle of separation lead web standards into victory during the first browser wars. Separation did not do this by eliminating proprietary standards, but by defining the &#8220;path&#8221; for new standards like CSS and XHTML. Through this victory browser makers work together now, for the most part. Browsers prefix proprietary CSS and push together for new technologies such as HTML5.</p>
<p>However, separation was an old idea that lived hand in hand with XHTML 2. The idea was that structure, presentation and behavior should be at all times pure. Separation like XHTML 2 has seen its day. Just look at the current state of our specifications. The proof is in the pudding.</p>
<h2>The Truth</h2>
<p>CSS now has behavior with features like :hover and animations. CSS has structure as well with the pseudo elements ::before and ::after. HTML has the same issues. Its new &lt;input&gt; types have behavior and presentation littered throughout. What the web currently looks like vs what separation wants the web to be is not the same.</p>
<p><img src="http://i.imgur.com/p2MR6.jpg" alt="The way the web really looks" /></p>
<p>The specification says separation is dead and the browser makers agree. Last year at SXSW during the browser wars panel I asked the panelists for their thoughts. I asked them what was to keep the &lt;font&gt; tag from coming back and why separation was not being addressed. Brendan Eich answered quickly and simply, “We don’t care about separation.”</p>
<p>He is right to say this. Separation has played its roll. But if he is right and we live in a new age, why do we we still teach separation? Why do we still pretend to follow it? I have a few assumptions.</p>
<h2>Why Separation is Still Around</h2>
<p>First, it worked at a basic level. It let us know when we were getting into gray areas. Second, the principle was simple and easy to understand. Each technology has its place, HTML, CSS and JavaScript.</p>
<p>So then, what should we do? Ignore all reason and do whatever we like? No, of course not. We need to be honest with ourselves and understand the raising pattern: Divergence.</p>
<p>We have been using Divergence for years. With every site you include :hover in your CSS. With the &#8220;email&#8221; value you use as your &lt;input&gt; tag&#8217;s type. With the many jQuery plug-ins that add new structure and presentation to a site. You use Divergence.</p>
<h2>Divergence</h2>
<p>What is Divergence? Divergence is the process you take when any of the three layers of separation cross. Let&#8217;s think about what we know the web is like today.</p>
<p><img src="http://i.imgur.com/bk3Me.jpg" alt="Divergence" /></p>
<p>As an example let&#8217;s examine a scenario where presentation and behavior cross, such as when you need a design change as the cursor moves over a link. You need to pick CSS or JavaScript.</p>
<p><img src="http://i.imgur.com/IJBLP.jpg" alt="An example" /></p>
<p>JavaScript has the mouseover event handler and CSS has :hover. However, you want to add a presentational effect, a nice underline maybe.</p>
<p>During the crossover of the two layers we are forced to choose CSS or JavaScript. You could choose CSS because you want to change the link&#8217;s style, but you could also choose JavaScript because the change is triggered by a behavior.</p>
<p>Unlike separation where you are trapped, Divergence says this is fine. In Divergence the lines can cross.</p>
<p>Think of Separation and Divergence as totally different logical approaches.</p>
<p>With Separation you live in a true and false world. Everything is black and white. It is on or off. It is Boolean by nature. With Divergence there&#8217;s black and white, but there&#8217;s also gray.</p>
<h2>Truth is Conditional</h2>
<p>The first rule of Divergence is that truth is conditional. Presentation can be behavioral and vice versa. We can use CSS a presentational technology with behavior as in the case of :hover.</p>
<p>However, Divergence does one thing that keeps it from creating a world where anything goes. To understand that concept we need to look at the &lt;font&gt; tag and understand how divergence keeps us from using &lt;font&gt; just as the principle of separation does.</p>
<p>Under the &#8220;conditional truth&#8221; rule of Divergence the &lt;font&gt; tag is fine. It is presentational and structural. However, with the second rule of Divergence there is an issue. This is the rule of &#8220;wholeness&#8221;.</p>
<h2>Wholeness</h2>
<p>The &lt;font&gt; tag is in HTML so it is a structure. However, it is not semantic and so while it is a structure it is not structural. The rule of divergence says that an item who falls into conditional truth is fine. It can be both structural and presentational at the same time. The &lt;font&gt; tag is.</p>
<p>However, the &lt;font&gt; tag must now pass the second rule. This rule, wholeness, says that the item must by nature be compliant wholly&#8230; to at least one of its parts. This does not negate the first rule. It only approves the item has the properties of the layer in which it lives.</p>
<p>Wholeness works like this:</p>
<ul>
<li>An item who is in structure must have the properties structure. In other words HTML must be semantic.</li>
<li>An item who is in presentation must have the properties presentation. In other words CSS must effect presentation.</li>
<li>An item who is in behavior must have the properties behavior. In other words JavaScript must effect behavior.</li>
</ul>
<p>Divergence says that items can have multiple properties but can only operate from a layer if it belongs to it in wholeness. This means that the item itself must have the properties of the layer it lives in and can demonstrate the properties of another layer if it likes.</p>
<h2>Where &lt;font&gt; Fails</h2>
<p>The &lt;font&gt; tag meets the conditional truth of Divergence but is not fully structural. It demonstrates the properties of presentation in that you can set “font properties” with it. But, it can not belong to structure because its structural property is not structural. This is because the tag name is purely presentational &#8211; “font”. This means that it doesn’t belong fully to at least one of its parts.</p>
<p>Therefore it can not diverge to one side or the other. HTML or CSS. So, we can not use the &lt;font&gt; tag under Divergence.</p>
<p>The principle of Divergence is simple and complex. It apples to all layers of web design.</p>
<h2>Some Examples</h2>
<p>As a quick example we can say that the HTML5 email value of the &lt;input&gt; tag’s type is fine under Divergence. It is semantic and behavioral but complies wholly to at lest one of its parts HTML.</p>
<p>Simply using the pseudo elements ::before and ::after to create content as structure and not presentation is not divergent because it is not fully presentational. Not to mention inaccessible.</p>
<p>It is unfortunate that the world of web design is not black and white and fortunate at the same time because it moves us forward.</p>
<h2>To Round it Up</h2>
<p>We are standing in a new age. We need to stop saying separation and doing divergence. In the end we can pretend that the principle of separation is still relevant but it doesn’t support the current direction of the web. It doesn’t help standards and browser makers don’t care.</p>
<p>Most importantly we need practical principles to guide us. So we know when to say yes or no to new features in CSS and HTML so that we can keep one eye on the vendors and the other on the web&#8217;s future. We need to accept the fact that separation of structure, presentation and behavior is dead.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vitaminmasterfeed?a=pNWqxcDu1dk:RHOP7_ZanvY:TJpph-hZrPI"><img src="http://feeds.feedburner.com/~ff/vitaminmasterfeed?d=TJpph-hZrPI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vitaminmasterfeed/~4/pNWqxcDu1dk" height="1" width="1"/>]]></content:encoded>
		<wfw:commentRss>http://thinkvitamin.com/design/the-separation-of-structure-presentation-and-behavior-is-dead/feed/</wfw:commentRss>
		<slash:comments>30</slash:comments>
					<feedburner:origLink>http://thinkvitamin.com/design/the-separation-of-structure-presentation-and-behavior-is-dead/</feedburner:origLink></item>
		<item>
		<title>HTML5 Please – Which Features Can You Use?</title>
		<link>http://feedproxy.google.com/~r/vitaminmasterfeed/~3/_crFKx69ElE/</link>
		<comments>http://thinkvitamin.com/code/html5/html5-please-which-features-can-you-use/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 22:06:56 +0000</pubDate>
		<dc:creator>Jim Hoskins</dc:creator>
				<category><![CDATA[HTML5]]></category>
		<guid isPermaLink="false">http://thinkvitamin.com/?p=18170</guid>
		<content:encoded><![CDATA[<p><a href="http://html5please.us/">HTML5 Please</a> is a great resource for determining browser support for many HTML5 and CSS3 Features. Each feature offers a recommendation to either use, not use, use with caution, or use with a fallback. It offers great information like the browser share for each feature, as well as the fallbacks you can use to simulate the feature in incompatible browsers.</p>
<p>My favorite feature is the search, which allows you to filter features by compatibility, for instance <a href="http://html5please.us/#gtie7">what is safe to use in IE8+</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vitaminmasterfeed?a=_crFKx69ElE:-PBJMFS2DkA:TJpph-hZrPI"><img src="http://feeds.feedburner.com/~ff/vitaminmasterfeed?d=TJpph-hZrPI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vitaminmasterfeed/~4/_crFKx69ElE" height="1" width="1"/>]]></content:encoded>
		<wfw:commentRss>http://thinkvitamin.com/code/html5/html5-please-which-features-can-you-use/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
					<feedburner:origLink>http://thinkvitamin.com/code/html5/html5-please-which-features-can-you-use/</feedburner:origLink></item>
		<item>
		<title>You’ve gotta come to this event</title>
		<link>http://feedproxy.google.com/~r/vitaminmasterfeed/~3/pJOBTQBsIi4/</link>
		<comments>http://thinkvitamin.com/events/youve-gotta-come-to-this-event/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 12:05:11 +0000</pubDate>
		<dc:creator>Ryan Carson</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[Articles]]></category>
		<guid isPermaLink="false">http://thinkvitamin.com/?p=18107</guid>
		<content:encoded><![CDATA[<p><img src="https://img.skitch.com/20120123-mtm23uua2jcfnbqd4tj6p3h9pm.jpg" alt="Photo of the 'Welcome to fabulous Las Vegas' sign at night in neon glow" /></p>
<p>If you&#8217;re a Web Designer, Developer or Entrepreneur, you can&#8217;t miss <a href="http://futureinsightslive.com/">Future Insights Live</a> in Vegas on April 30 &#8211; May 4th. We&#8217;ve combined Future of Web Apps, Design and Mobile into one massive five day event, with over 100 sessions. It&#8217;s going to be like SXSW, but with valuable content ;) We&#8217;re expecting 1500+ attendees, so it&#8217;s going to be insane. The tracks include &#8230;</p>
<ol>
<li>Development</li>
<li>Design</li>
<li>Frontend Development</li>
<li>Mobile Development</li>
<li>Business</li>
<li>Cloud</li>
</ol>
<p>Early bird pricing ends soon (save $200) so move quick and <a href="http://futureinsightslive.com/register">book your ticket today</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vitaminmasterfeed?a=pJOBTQBsIi4:TzQ05ZQKL0c:TJpph-hZrPI"><img src="http://feeds.feedburner.com/~ff/vitaminmasterfeed?d=TJpph-hZrPI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vitaminmasterfeed/~4/pJOBTQBsIi4" height="1" width="1"/>]]></content:encoded>
		<wfw:commentRss>http://thinkvitamin.com/events/youve-gotta-come-to-this-event/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
					<feedburner:origLink>http://thinkvitamin.com/events/youve-gotta-come-to-this-event/</feedburner:origLink></item>
		<item>
		<title>How We Built Code Racer in 4 Days</title>
		<link>http://feedproxy.google.com/~r/vitaminmasterfeed/~3/eBA0Qq8in28/</link>
		<comments>http://thinkvitamin.com/code/how-we-built-code-racer-in-4-days/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 20:35:16 +0000</pubDate>
		<dc:creator>Jim Hoskins</dc:creator>
				<category><![CDATA[Code]]></category>
		<guid isPermaLink="false">http://thinkvitamin.com/?p=18076</guid>
		<content:encoded><![CDATA[<p>If you haven&#8217;t seen <a href="http://coderace.me/" title="Code Racer">Code Racer</a>, you should give it a try. Code Racer is the product of Idea Week at Treehouse. <a href="http://thinkvitamin.com/uncategorized/idea-week-building-a-product-in-one-week/">Idea Week</a> is a tradition brought over from Carsonified to Treehouse where the entire team drops what they are doing to work on a completely new project for one week.</p>
<p>This is my recounting of the Idea Week when we created Code Racer. This won&#8217;t be a full story as a lot of people worked on this project and I wasn&#8217;t in a position to keep track of what everyone was doing. Fortunately our video professionals at Treehouse had cameras rolling, so much of this is documented on video. I can only tell you about what I was involved in, which was the server and client side development.</p>
<p><span id="more-18076"></span></p>
<p>I had been involved with one Idea Week before, when we created <a href="http://brickify.com/">Brickify</a>. This actually wasn&#8217;t an official Idea Week, it was a project we decided to build late on a Tuesday, but then became an Idea (half) Week.</p>
<p>We decided to do an Idea Week when Ryan told us he would be gathering the whole team together in Orlando this January. Since we had recently hired several new teachers and video pros, and Idea Week was a great way to get everybody working together as a team.</p>
<p><object width="704" height="396"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=34988070&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00adef&amp;fullscreen=1&amp;autoplay=0&amp;loop=0" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=34988070&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00adef&amp;fullscreen=1&amp;autoplay=0&amp;loop=0" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="704" height="396"></embed></object>
<p><a href="http://vimeo.com/34988070">Treehouse CodeRacer Launch Video</a> from <a href="http://vimeo.com/teamtreehouse">Treehouse</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>The idea for what we were going to build wasn&#8217;t decided until the Monday morning of our Idea Week. In the time leading up to the project, we figured our product would likely be a Ruby on Rails application with a great UI, design, API, and hopefully an iOS app. This seemed ideal because Alan and Jason work with Rails every day, and I have several years of experience with Rails as well. I was thinking Alan and Jason would lead the server side development, and I would focus on front-end interaction. It didn&#8217;t quite end up working out like that.</p>
<p>When Ryan presented his idea of creating a real-time code-challenge game, it became clear that our assumptions of responsibility were pretty far off. Since we needed to use Web Sockets (or their available fallbacks), <a href="http://nodejs.org/">Node.js</a> became the clear decision for the Code Racer server. This changed the dynamic of the team a bit since I&#8217;m the resident Node.js guy, as well as the front-end JavaScript guy. Fortunately Alan, Jason, and Amit have experience with Node.js and JavaScript, so they were able to kick ass on Code Racer.</p>
<p>Besides not knowing the project idea until Idea Week begins, there is another challenge: a hard deadline. One week seems reasonable for a project that has 5 developers and 4 designers. That&#8217;s 5 days, right? Well, Treehouse works the <a href="http://thinkvitamin.com/fully-carsonified/work-less/">four day work week</a>, so it&#8217;s really 4. Also, Alan, Ryan, and Tyson had to fly out mid-day Thursday, so we had to launch Thursday morning. So Idea Week is really a little over 3 days. Better get started! </p>
<h2 id="tech_decisions">Tech Decisions</h2>
<p>The first thing we did was discuss tech. Because the game required near real-time interaction between the players we chose <a href="http://socket.io/">Socket.io</a>, which is a great server and client library for working with web sockets. This is what allows us to communicate quickly between the players and the server.</p>
<p>Socket.io is built on Node.js, which made Node.js the natural choice for our server. The event based architecture  allows us to hold many socket connections open concurrently on one server.</p>
<p>As a group we also decided to use <a href="http://jashkenas.github.com/coffee-script/">CoffeeScript</a> for our server and client code. I found it to be very useful when I worked on Code Challenges for <a href="http://teamtreehouse.com/">Treehouse</a>, and Alan and Jason were interested in trying it out on a non-trivial project. It ended up working really well.</p>
<p>For the front-end, we chose to use <a href="http://spinejs.com/">Spine</a> for our application library with <a href="http://jquery.com/">jQuery</a> powering our DOM interactions. There is a lot of information shooting around that needs to be reflected in the UI. Events from the user like typing inside the code editor, and events from the server like information about the game state all need to be handled so the models and views can be updated. Spine&#8217;s models, views, and controllers handled the interaction extremely well. Information from the server is received via socket.io, which will update our models. The various controllers on our page listen for changes to the model and update the views as needed.</p>
<p>We also utilized Facebook for authentication and MySQL for storing our users and game logs. I can&#8217;t talk much about those decisions because Jason lead that effort.</p>
<h2 id="day_one_planning_and_server">Day One &#8211; Planning and Server</h2>
<p>On Monday morning, after our first meeting, the whole team swung into action. The designers and developers split up to talk about their plans and responsibilities. This is where we the developers began making the tech decisions that I described above. </p>
<p>While we were doing that, the design team was coming up with UI sketches as quickly as possible, so our whole team was on the same page. These sketches were extremely valuable to the dev team, because we needed to start building the UI almost immediately. </p>
<p>After that, the dev team split up and began working. Fortunately I had some side projects that utilized Node, CoffeeScript, and Less, so we were able to strip out the guts of that project and use it as a starting point. In less than an hour we had a running server and a github repo that everyone could start working on.</p>
<p><object width="704" height="396"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=34866706&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=1&amp;color=00adef&amp;fullscreen=1&amp;autoplay=0&amp;loop=0" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=34866706&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=1&amp;color=00adef&amp;fullscreen=1&amp;autoplay=0&amp;loop=0" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="704" height="396"></embed></object>
<p><a href="http://vimeo.com/34866706">Code Racer: Day One</a> from <a href="http://vimeo.com/teamtreehouse">Treehouse</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>I spent most of Day 1 setting up the project and then building a game matchmaking system where when you start a game, you join a lobby until that game reaches capacity. When the game reaches capacity it begins, and a new game is created for the next set of players.</p>
<h2 id="day_two_interface">Day Two &#8211; Interface</h2>
<p>The second day for me was all about the front-end. By Tuesday we were able to connect to a lobby and start multiple games on the same server. Next on the list was creating the interface. There are a lot of moving parts in the game that must react to information sent from the server and the player.</p>
<p>When a new player joins, we have to add them to the page, which includes an editor, a tab in the players bar, and an entry in the lobby screen. When a player updates their code, it must be sent to the server, which will notify all the players in the game. Each player must take these notifications and update the code for the other player&#8217;s editor. Being able to watch someone else code was one of our top priority features.</p>
<p>Getting all of the information moving around the different client models and controllers, through the sockets to the server and back down to the clients was the most difficult problem to tackle. By Tuesday night we were able to see other players&#8217; code as they typed it. Many of the other game elements like the timer, player list, and scores were also being displayed.</p>
<p><object width="700" height="394"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=34969494&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00adef&amp;fullscreen=1&amp;autoplay=0&amp;loop=0" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=34969494&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00adef&amp;fullscreen=1&amp;autoplay=0&amp;loop=0" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="700" height="394"></embed></object>
<p><a href="http://vimeo.com/34969494">Code Racer: Day Two</a> from <a href="http://vimeo.com/teamtreehouse">Treehouse</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>It was about this time I had to step away from the code for a while. Trying to hold all of the server and client interactions in my head was causing me to mentally fatigue, and I could tell I was becoming less effective. Fortunately Alan jumped in and spent Tuesday night working on getting the game logic up and running. I was amazed at how quickly it turned from a small prototype of live-coding into something that really looked like a game.</p>
<p>While I stepped back from the game logic and architecture, I was finally able to go around the office and see what everyone else was up to. It was awesome to see what was getting done. Amit had a working system for creating challenges and verifying answers from the players. Kevin had built a bunch of awesome weapons you can use on other players that will play sounds and manipulate your screen in some way. Jason had Facebook integration up and running. The design team was doing awesome creating amazing designs and interfaces.</p>
<h2 id="day_three_integration_and_testing">Day Three &#8211; Integration and Testing</h2>
<p>By Wednesday morning we had something that resembled a game. The html layouts the design team had built had not yet been integrated into the game and there was a lot of work to do on the game logic itself. Wednesday was all about getting the game done. We had to be ready to launch by Thursday. We spent the whole day working on the game logic, testing, tweaking, and testing again.</p>
<p>We played our first game on Wednesday after lunch and the competitive taunts and gasps of excitement and defeat from the players were quite loud. For the first time we were able to see that Code Racer is actually fun to play. A huge wave or relief rolled over the whole office. It actually looks like this idea may work.</p>
<h2 id="day_four_launch">Day Four &#8211; Launch!</h2>
<p>Finally it was launch day. We spent the morning squashing bugs, polishing the UI and game play, and deploying the application. It was pretty stressful. We had a lot of things we needed to get done and almost no time to do it. </p>
<p>We sent out links to our friends to test Code Racer before the official launch. Of course this brought us a lot of feedback on improvements we could make and bugs we need to eliminate, which is how we spent Thursday.</p>
<p>As Ryan and Alan were getting ready to leave for their flights, we were able to launch Code Racer officially. We did it!. Articles from <a href="http://techcrunch.com/2012/01/12/compete-against-other-players-learning-to-code-with-treehouses-code-race/">TechCrunch</a> and <a href="http://venturebeat.com/2012/01/12/coderacer/">Venture Beat</a> went live, and tweets started flowing in. It was unreal. On Monday morning I wasn&#8217;t sure this idea was possible, but now here it was, online, with thousands of people playing it. In the first 3 days after launch over 6,800 players had played a total of over 4,500 games.</p>
<p>In less than 4 days, the team at Treehouse went from idea to product. I&#8217;m incredibly proud of all of the people who worked on Code Racer and count myself very lucky to have the opportunity to work with them.</p>
<h2> The Libraries and Tools We Used </h2>
<p>Finally, I wanted to share the (hopefully) complete list of tools we used to make Code Racer. Thanks to Jason for putting this list together!</p>
<ul>
<li><a href="http://nodejs.org/">Node.js</a></li>
<li><a href="http://expressjs.com/">express</a></li>
<li><a href="http://spinejs.com">Spine</a></li>
<li><a href="https://github.com/maccman/hem">hem</a></li>
<li><a href="https://github.com/maccman/es5-shimify">es5-shimify</a></li>
<li><a href="https://github.com/maccman/json2ify">json2ify</a></li>
<li><a href="https://github.com/sstephenson/eco">eco</a></li>
<li><a href="https://github.com/broofa/node-uuid">node-uuid</a></li>
<li><a href="http://sequelizejs.com">Sequelize</a></li>
<li><a href="https://github.com/masylum/facebook-js">facebook-js</a></li>
<li><a href="http://coffeescript.org/">CoffeeScript</a></li>
<li><a href="http://socket.io/">Socket.io</a></li>
<li><a href="http://aws.amazon.com">Amazon EC2</a></li>
<li><a href="http://github.com">GitHub</a></li>
<li><a href="http://code.google.com/p/macvim/">MacVim</a></li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vitaminmasterfeed?a=eBA0Qq8in28:YDw20dOdIGc:TJpph-hZrPI"><img src="http://feeds.feedburner.com/~ff/vitaminmasterfeed?d=TJpph-hZrPI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vitaminmasterfeed/~4/eBA0Qq8in28" height="1" width="1"/>]]></content:encoded>
		<wfw:commentRss>http://thinkvitamin.com/code/how-we-built-code-racer-in-4-days/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
					<feedburner:origLink>http://thinkvitamin.com/code/how-we-built-code-racer-in-4-days/</feedburner:origLink></item>
		<item>
		<title>CodeKit the missing tool</title>
		<link>http://feedproxy.google.com/~r/vitaminmasterfeed/~3/5cT7swgTBr4/</link>
		<comments>http://thinkvitamin.com/asides/codekit-the-missing-editor/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 20:01:23 +0000</pubDate>
		<dc:creator>Amit Bijlani</dc:creator>
				<category><![CDATA[Asides]]></category>
		<guid isPermaLink="false">http://thinkvitamin.com/?p=18074</guid>
		<content:encoded><![CDATA[<p>The web is rapidly evolving and it seems like the editors just can&#8217;t keep up. If you are web developer using Sass, Stylus, CoffeeScript or Haml then <a href="http://incident57.com/codekit/">CodeKit</a> is for you. The only drawback is that CodeKit is only available for MAC OSX Lion. </p>
<blockquote><p>CodeKit automatically compiles Less, Sass, Stylus, CoffeeScript &#038; Haml files. It effortlessly combines, minifies and error-checks Javascript. It supports Compass. It even optimizes jpeg &#038; png images, auto-reloads your browser and lets you use the same files across many projects. And that&#8217;s just the first paragraph.</p></blockquote>
<p><a href="http://incident57.com/codekit/"><img src="http://incident57.com/codekit/images/hero-window.png" alt="CodeKit" title="CodeKit" ></a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vitaminmasterfeed?a=5cT7swgTBr4:w4Sj1XAec94:TJpph-hZrPI"><img src="http://feeds.feedburner.com/~ff/vitaminmasterfeed?d=TJpph-hZrPI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vitaminmasterfeed/~4/5cT7swgTBr4" height="1" width="1"/>]]></content:encoded>
		<wfw:commentRss>http://thinkvitamin.com/asides/codekit-the-missing-editor/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
					<feedburner:origLink>http://thinkvitamin.com/asides/codekit-the-missing-editor/</feedburner:origLink></item>
		<item>
		<title>Free Video: Installing Ruby</title>
		<link>http://feedproxy.google.com/~r/vitaminmasterfeed/~3/z8ixv8kt2oM/</link>
		<comments>http://thinkvitamin.com/code/ruby/free-video-installing-ruby/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 14:00:40 +0000</pubDate>
		<dc:creator>Jason Seifer</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<guid isPermaLink="false">http://thinkvitamin.com/?p=18038</guid>
		<content:encoded><![CDATA[<p>In this <a href="http://teamtreehouse.com/library/ruby-foundations/introduction/installing-ruby/play?cid=193">8 minute video</a>, you will learn how to install Ruby on both Mac OS X and on Windows. This will let you get IRB up and running and is the basis for running Ruby programs on your own computer.</p>
<p><a href="http://teamtreehouse.com/library/ruby-foundations/introduction/installing-ruby/play?cid=193"><img src="http://thinkvitamin.com/wp-content/uploads/2012/01/Installing-Ruby-Treehouse.png" alt="Installing Ruby Video" title="Installing Ruby - Treehouse" width="704" height="397" alt="A screenshot from the Installing Ruby video that shows how to install Ruby on Macs and Windows." /></a></p>
<p>This video is from <a href="http://teamtreehouse.com/?cid=193">Treehouse</a>, a high-quality video training site with hundreds of short videos on topics like &#8230;</p>
<ul>
<li><a href="http://teamtreehouse.com/library/accessibility/?cid=193">Accessibility</a></li>
<li><a href="http://teamtreehouse.com/library/design-foundations/css3?cid=193">CSS3</a></li>
<li><a href="http://teamtreehouse.com/library/design-foundations/aesthetic-foundations?cid=193">Aesthetic Foundations</a></li>
<li><a href="http://teamtreehouse.com/library/django/?cid=193">Django</a></li>
<li><a href="http://teamtreehouse.com/library/design-foundations/html/?cid=193">HTML</a></li>
<li><a href="http://teamtreehouse.com/library/design-foundations/css-foundations/?cid=193">CSS</a></li>
<li><a href="http://teamtreehouse.com/library/html5-foundations/?cid=193">HTML5</a></li>
<li><a href="http://teamtreehouse.com/library/ios-4-foundations/?cid=193">iOS Development</a></li>
<li><a href="http://teamtreehouse.com/library/javascript/?cid=193">JavaScript</a></li>
<li><a href="http://teamtreehouse.com/library/jquery/?cid=193">jQuery</a></li>
<li><a href="http://teamtreehouse.com/library/nosql/?cid=193">NoSQL</a></li>
<li><a href="http://teamtreehouse.com/library/php/?cid=193">PHP</a></li>
<li><a href="http://teamtreehouse.com/library/design-foundations/rwd-foundations/?cid=193">Responsive Web Design</a></li>
<li><a href="http://teamtreehouse.com/library/ruby/?cid=193">Ruby</a></li>
<li><a href="http://teamtreehouse.com/library/ruby-on-rails/?cid=193">Ruby on Rails</a></li>
<li><a href="http://teamtreehouse.com/library/archive/ux-foundations/?cid=193">UX</a></li>
<li><a href="http://teamtreehouse.com/library/version-control?cid=193">Version Control</a></li>
<li><a href="http://teamtreehouse.com/library/wordpress?cid=193">WordPress Theme Design</a></li>
</ul>
<p>New videos are added regularly, so it&#8217;s a great way to stay up-to-date on all the latest technology and methods. Browse the entire <a href="http://teamtreehouse.com/library/?cid=193">library of videos</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vitaminmasterfeed?a=z8ixv8kt2oM:rPmKP7KKUsk:TJpph-hZrPI"><img src="http://feeds.feedburner.com/~ff/vitaminmasterfeed?d=TJpph-hZrPI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vitaminmasterfeed/~4/z8ixv8kt2oM" height="1" width="1"/>]]></content:encoded>
		<wfw:commentRss>http://thinkvitamin.com/code/ruby/free-video-installing-ruby/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
					<feedburner:origLink>http://thinkvitamin.com/code/ruby/free-video-installing-ruby/</feedburner:origLink></item>
		<item>
		<title>Customizing the design of UIPopoverController</title>
		<link>http://feedproxy.google.com/~r/vitaminmasterfeed/~3/NY71RVz62_I/</link>
		<comments>http://thinkvitamin.com/code/ios/customizing-the-design-of-uipopovercontroller/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 19:27:57 +0000</pubDate>
		<dc:creator>Amit Bijlani</dc:creator>
				<category><![CDATA[iOS]]></category>
		<guid isPermaLink="false">http://thinkvitamin.com/?p=18021</guid>
		<content:encoded><![CDATA[<p>Popovers are very common within the iPad user interface but you were restricted to the design provided by Apple. With iOS 5 came a little known class called <code>UIPopoverBackgroundView</code> which allows you to provide a custom border and arrow for the popover. </p>
<p><span id="more-18021"></span></p>
<h2>The popover</h2>
<p>The <code>UIPopoverController</code> is the class that facilitates the popover view. It takes a custom view controller and then displays it with a neat border and arrow, where the arrow points to its origin. It is ideal for displaying contextual information. The popover user interface is essentially made of three main parts: the border, content, and arrow.</p>
<p><img src="https://img.skitch.com/20120118-kpkht8t5dxpk6du9frya4hup1t.jpg" alt="UIPopoverController" /></p>
<h2>Images</h2>
<p>Before we look at the <code>UIPopoverBackgroundView</code> you will need two images to customize your popover. One image for the <a href="https://img.skitch.com/20120118-bmkyb1xq8atuhepaadfabhni6.png" title="Border">border</a> and the other for the <a href="https://img.skitch.com/20120118-pheehhdtp8i368ds8hi3w98nqk.png" title="Arrow">arrow</a>. </p>
<p><img src="https://img.skitch.com/20120118-bypr27ru341q5pe3jdkwpn15cb.jpg"></p>
<h3>Dissecting the background image</h3>
<p>When designing the background image it is important to note that the image will be stretched. <code>UIImage</code> allows you to create a stretchable image by defining cap insets. These caps define portions of the image that will not be rescaled whereas the rest of the image is easily tiled when stretched. As seen in the image below the dark area is what will be tiled and the colored corners will not.</p>
<p><img src="https://img.skitch.com/20120118-r1d25j25p234ruatay389u638f.jpg"></p>
<h2>Subclassing UIPopoverBackgroundView</h2>
<p>The <code>UIPopoverBackgroundView</code> is an abstract class which has no implementation. We need to subclass it and provide implementations for all its methods and properties. You can read the Apple documentation on all its properties and methods. What is not in the documentation is how to layout the border and arrow using the method <code>layoutSubviews</code>. </p>
<p>First let&#8217;s start by creating an <code>Interface</code> and subclassing the <code>UIPopoverBackgroundView</code>.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #6e371a;">#import &lt;UIKit/UIPopoverBackgroundView.h&gt;</span>
&nbsp;
<span style="color: #a61390;">@interface</span> CustomPopoverBackgroundView <span style="color: #002200;">:</span> UIPopoverBackgroundView <span style="color: #002200;">&#123;</span>
    UIImageView <span style="color: #002200;">*</span>_borderImageView;
    UIImageView <span style="color: #002200;">*</span>_arrowView;
    CGFloat _arrowOffset;
    UIPopoverArrowDirection _arrowDirection;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #a61390;">@end</span></pre></td></tr></table></div>

<p>Make sure to specify your import statement or else the code will not compile. An explanation for each of the instance variables:</p>
<ul>
<li><code>_borderImageView</code>: contains the image for the border</li>
<li><code>_arrowView</code>: contains the image for the arrow</li>
<li><code>_arrowOffset</code>: used for the property <code>arrowOffset</code> specified in the <code>Interface</code> for <code>UIPopoverBackgroundView</code>. We will see later how this value is used to calculate the position for the arrow.</li>
<li><code>_arrowDirection</code>: used for the property <code>arrowDirection</code> specified in the <code>Interface</code> for <code>UIPopoverBackgroundView</code></li>
</ul>
<p>Let&#8217;s fill out the implementation, starting with the designated initializer</p>

<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
</pre></td><td class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #6e371a;">#import &quot;CustomPopoverBackgroundView.h&quot;</span>
&nbsp;
<span style="color: #6e371a;">#define CONTENT_INSET 10.0</span>
<span style="color: #6e371a;">#define CAP_INSET 25.0</span>
<span style="color: #6e371a;">#define ARROW_BASE 25.0</span>
<span style="color: #6e371a;">#define ARROW_HEIGHT 25.0</span>
&nbsp;
<span style="color: #a61390;">@implementation</span> CustomPopoverBackgroundView
&nbsp;
&nbsp;
<span style="color: #002200;">-</span><span style="color: #002200;">&#40;</span><span style="color: #a61390;">id</span><span style="color: #002200;">&#41;</span>initWithFrame<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span>CGRect<span style="color: #002200;">&#41;</span>frame<span style="color: #002200;">&#123;</span>
    <span style="color: #a61390;">if</span> <span style="color: #002200;">&#40;</span>self <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>super initWithFrame<span style="color: #002200;">:</span>frame<span style="color: #002200;">&#93;</span><span style="color: #002200;">&#41;</span> <span style="color: #002200;">&#123;</span>
        _borderImageView <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>UIImageView alloc<span style="color: #002200;">&#93;</span> initWithImage<span style="color: #002200;">:</span><span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>UIImage imageNamed<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;popover-bg.png&quot;</span><span style="color: #002200;">&#93;</span> resizableImageWithCapInsets<span style="color: #002200;">:</span>UIEdgeInsetsMake<span style="color: #002200;">&#40;</span>CAP_INSET,CAP_INSET,CAP_INSET,CAP_INSET<span style="color: #002200;">&#41;</span><span style="color: #002200;">&#93;</span><span style="color: #002200;">&#93;</span>;
&nbsp;
        _arrowView <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>UIImageView alloc<span style="color: #002200;">&#93;</span> initWithImage<span style="color: #002200;">:</span><span style="color: #002200;">&#91;</span>UIImage imageNamed<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;arrow.png&quot;</span><span style="color: #002200;">&#93;</span><span style="color: #002200;">&#93;</span>;
&nbsp;
        <span style="color: #002200;">&#91;</span>self addSubview<span style="color: #002200;">:</span>_borderImageView<span style="color: #002200;">&#93;</span>;
        <span style="color: #002200;">&#91;</span>self addSubview<span style="color: #002200;">:</span>_arrowView<span style="color: #002200;">&#93;</span>;
&nbsp;
    <span style="color: #002200;">&#125;</span>
    <span style="color: #a61390;">return</span> self;
<span style="color: #002200;">&#125;</span></pre></td></tr></table></div>

<p>Basically we are allocating and initializing the two views and adding them as subviews. Notice how the background image is defined with cap insets. Next, let&#8217;s implement all the required methods including the getters and setters for the properties.</p>

<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
</pre></td><td class="code"><pre class="objc" style="font-family:monospace;">&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span>CGFloat<span style="color: #002200;">&#41;</span> arrowOffset <span style="color: #002200;">&#123;</span>    
    <span style="color: #a61390;">return</span> _arrowOffset;    
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span> setArrowOffset<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span>CGFloat<span style="color: #002200;">&#41;</span>arrowOffset <span style="color: #002200;">&#123;</span>    
    _arrowOffset <span style="color: #002200;">=</span> arrowOffset;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span>UIPopoverArrowDirection<span style="color: #002200;">&#41;</span>arrowDirection <span style="color: #002200;">&#123;</span>    
    <span style="color: #a61390;">return</span> _arrowDirection;    
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>setArrowDirection<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span>UIPopoverArrowDirection<span style="color: #002200;">&#41;</span>arrowDirection <span style="color: #002200;">&#123;</span>    
    _arrowDirection <span style="color: #002200;">=</span> arrowDirection;
<span style="color: #002200;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #002200;">+</span><span style="color: #002200;">&#40;</span>UIEdgeInsets<span style="color: #002200;">&#41;</span>contentViewInsets<span style="color: #002200;">&#123;</span>
    <span style="color: #a61390;">return</span> UIEdgeInsetsMake<span style="color: #002200;">&#40;</span>CONTENT_INSET, CONTENT_INSET, CONTENT_INSET, CONTENT_INSET<span style="color: #002200;">&#41;</span>;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #002200;">+</span><span style="color: #002200;">&#40;</span>CGFloat<span style="color: #002200;">&#41;</span>arrowHeight<span style="color: #002200;">&#123;</span>
    <span style="color: #a61390;">return</span> ARROW_HEIGHT;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #002200;">+</span><span style="color: #002200;">&#40;</span>CGFloat<span style="color: #002200;">&#41;</span>arrowBase<span style="color: #002200;">&#123;</span>
    <span style="color: #a61390;">return</span> ARROW_BASE;
<span style="color: #002200;">&#125;</span></pre></td></tr></table></div>

<p>The above methods are fairly straightforward with the exception of <code>contentViewInsets</code>. This method determines the thickness of your border. The higher the number the thicker your border. Finally, the method that lays out our two subviews in their appropriate sizes and location.</p>

<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="objc" style="font-family:monospace;">&nbsp;
<span style="color: #002200;">-</span>  <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>layoutSubviews <span style="color: #002200;">&#123;</span>
    <span style="color: #002200;">&#91;</span>super layoutSubviews<span style="color: #002200;">&#93;</span>;
&nbsp;
    CGFloat _height <span style="color: #002200;">=</span> self.frame.size.height;
    CGFloat _width <span style="color: #002200;">=</span> self.frame.size.width;
    CGFloat _left <span style="color: #002200;">=</span> <span style="color: #2400d9;">0.0</span>;
    CGFloat _top <span style="color: #002200;">=</span> <span style="color: #2400d9;">0.0</span>;
    CGFloat _coordinate <span style="color: #002200;">=</span> <span style="color: #2400d9;">0.0</span>;
    CGAffineTransform _rotation <span style="color: #002200;">=</span> CGAffineTransformIdentity;
&nbsp;
&nbsp;
    <span style="color: #a61390;">switch</span> <span style="color: #002200;">&#40;</span>self.arrowDirection<span style="color: #002200;">&#41;</span> <span style="color: #002200;">&#123;</span>
        <span style="color: #a61390;">case</span> UIPopoverArrowDirectionUp<span style="color: #002200;">:</span>
            _top <span style="color: #002200;">+=</span> ARROW_HEIGHT;
            _height <span style="color: #002200;">-=</span> ARROW_HEIGHT;
            _coordinate <span style="color: #002200;">=</span> <span style="color: #002200;">&#40;</span><span style="color: #002200;">&#40;</span>self.frame.size.width <span style="color: #002200;">/</span> <span style="color: #2400d9;">2</span><span style="color: #002200;">&#41;</span> <span style="color: #002200;">+</span> self.arrowOffset<span style="color: #002200;">&#41;</span> <span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span>ARROW_BASE<span style="color: #002200;">/</span><span style="color: #2400d9;">2</span><span style="color: #002200;">&#41;</span>;
            _arrowView.frame <span style="color: #002200;">=</span> CGRectMake<span style="color: #002200;">&#40;</span>_coordinate, <span style="color: #2400d9;">0</span>, ARROW_BASE, ARROW_HEIGHT<span style="color: #002200;">&#41;</span>;            
            <span style="color: #a61390;">break</span>;
&nbsp;
&nbsp;
        <span style="color: #a61390;">case</span> UIPopoverArrowDirectionDown<span style="color: #002200;">:</span>
            _height <span style="color: #002200;">-=</span> ARROW_HEIGHT;
            _coordinate <span style="color: #002200;">=</span> <span style="color: #002200;">&#40;</span><span style="color: #002200;">&#40;</span>self.frame.size.width <span style="color: #002200;">/</span> <span style="color: #2400d9;">2</span><span style="color: #002200;">&#41;</span> <span style="color: #002200;">+</span> self.arrowOffset<span style="color: #002200;">&#41;</span> <span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span>ARROW_BASE<span style="color: #002200;">/</span><span style="color: #2400d9;">2</span><span style="color: #002200;">&#41;</span>;
            _arrowView.frame <span style="color: #002200;">=</span> CGRectMake<span style="color: #002200;">&#40;</span>_coordinate, _height, ARROW_BASE, ARROW_HEIGHT<span style="color: #002200;">&#41;</span>; 
            _rotation <span style="color: #002200;">=</span> CGAffineTransformMakeRotation<span style="color: #002200;">&#40;</span> M_PI <span style="color: #002200;">&#41;</span>;
            <span style="color: #a61390;">break</span>;
&nbsp;
        <span style="color: #a61390;">case</span> UIPopoverArrowDirectionLeft<span style="color: #002200;">:</span>
            _left <span style="color: #002200;">+=</span> ARROW_BASE;
            _width <span style="color: #002200;">-=</span> ARROW_BASE;
            _coordinate <span style="color: #002200;">=</span> <span style="color: #002200;">&#40;</span><span style="color: #002200;">&#40;</span>self.frame.size.height <span style="color: #002200;">/</span> <span style="color: #2400d9;">2</span><span style="color: #002200;">&#41;</span> <span style="color: #002200;">+</span> self.arrowOffset<span style="color: #002200;">&#41;</span> <span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span>ARROW_HEIGHT<span style="color: #002200;">/</span><span style="color: #2400d9;">2</span><span style="color: #002200;">&#41;</span>;
            _arrowView.frame <span style="color: #002200;">=</span> CGRectMake<span style="color: #002200;">&#40;</span><span style="color: #2400d9;">0</span>, _coordinate, ARROW_BASE, ARROW_HEIGHT<span style="color: #002200;">&#41;</span>; 
            _rotation <span style="color: #002200;">=</span> CGAffineTransformMakeRotation<span style="color: #002200;">&#40;</span> <span style="color: #002200;">-</span>M_PI_2 <span style="color: #002200;">&#41;</span>;
            <span style="color: #a61390;">break</span>;
&nbsp;
        <span style="color: #a61390;">case</span> UIPopoverArrowDirectionRight<span style="color: #002200;">:</span>
            _width <span style="color: #002200;">-=</span> ARROW_BASE;
            _coordinate <span style="color: #002200;">=</span> <span style="color: #002200;">&#40;</span><span style="color: #002200;">&#40;</span>self.frame.size.height <span style="color: #002200;">/</span> <span style="color: #2400d9;">2</span><span style="color: #002200;">&#41;</span> <span style="color: #002200;">+</span> self.arrowOffset<span style="color: #002200;">&#41;</span><span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span>ARROW_HEIGHT<span style="color: #002200;">/</span><span style="color: #2400d9;">2</span><span style="color: #002200;">&#41;</span>;
            _arrowView.frame <span style="color: #002200;">=</span> CGRectMake<span style="color: #002200;">&#40;</span>_width, _coordinate, ARROW_BASE, ARROW_HEIGHT<span style="color: #002200;">&#41;</span>; 
            _rotation <span style="color: #002200;">=</span> CGAffineTransformMakeRotation<span style="color: #002200;">&#40;</span> M_PI_2 <span style="color: #002200;">&#41;</span>;
&nbsp;
            <span style="color: #a61390;">break</span>;
&nbsp;
    <span style="color: #002200;">&#125;</span>
&nbsp;
    _borderImageView.frame <span style="color: #002200;">=</span>  CGRectMake<span style="color: #002200;">&#40;</span>_left, _top, _width, _height<span style="color: #002200;">&#41;</span>;
&nbsp;
&nbsp;
    <span style="color: #002200;">&#91;</span>_arrowView setTransform<span style="color: #002200;">:</span>_rotation<span style="color: #002200;">&#93;</span>;
&nbsp;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #a61390;">@end</span></pre></td></tr></table></div>

<p>The switch statement determines the direction of the arrow and then calculates the location of the arrow and its rotation. Our default arrow image points upwards so we need to change its rotation using an affine transform which takes in radians. The <code>arrowOffset</code> is calculated and set by the <code>UIPopoverController</code> which essentially tells us the distance of the arrow from the center of content view. We also have to adjust the height and width of our border view to account for the arrow. </p>
<h2>Using the CustomPopoverBackgroundView</h2>
<p>Now that we have created the <code>CustomPopoverBackgroundView</code> we need to set it when creating an instance of the <code>UIPopoverController</code></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="objc" style="font-family:monospace;">UIPopoverController <span style="color: #002200;">*</span>popoverController <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>UIPopoverController alloc<span style="color: #002200;">&#93;</span> initWithContentViewController<span style="color: #002200;">:</span>contentViewController<span style="color: #002200;">&#93;</span> ;
&nbsp;
popoverController.popoverBackgroundViewClass <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>CustomPopoverBackgroundView class<span style="color: #002200;">&#93;</span>;</pre></td></tr></table></div>

<p>Note: the above code will work only in iOS 5</p>
<p>Now run your app and marvel at your newly designed popover.</p>
<p><img src="https://img.skitch.com/20120118-8111m9y34nqs7e6pj14w9y6a8h.jpg" alt="Subclassing UIPopoverBackgroundView" ></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vitaminmasterfeed?a=NY71RVz62_I:HfIoBI_sKqc:TJpph-hZrPI"><img src="http://feeds.feedburner.com/~ff/vitaminmasterfeed?d=TJpph-hZrPI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vitaminmasterfeed/~4/NY71RVz62_I" height="1" width="1"/>]]></content:encoded>
		<wfw:commentRss>http://thinkvitamin.com/code/ios/customizing-the-design-of-uipopovercontroller/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
					<feedburner:origLink>http://thinkvitamin.com/code/ios/customizing-the-design-of-uipopovercontroller/</feedburner:origLink></item>
		<item>
		<title>Free Video: Fieldsets and Labels</title>
		<link>http://feedproxy.google.com/~r/vitaminmasterfeed/~3/_331I7nwNlk/</link>
		<comments>http://thinkvitamin.com/uncategorized/free-video-fieldsets-and-labels/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 14:00:28 +0000</pubDate>
		<dc:creator>Nick Pettit</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">http://thinkvitamin.com/?p=18015</guid>
		<content:encoded><![CDATA[<p>In this <a href="http://teamtreehouse.com/library/design-foundations/html/forms/fieldsets-and-labels/play?cid=193">9 minute video</a>, you will learn about fieldsets and labels in HTML. These constructs will help you visually organize forms.</p>
<p><a href="http://teamtreehouse.com/library/design-foundations/html/forms/fieldsets-and-labels/play?cid=193"><img src="http://i.imgur.com/k878Y.png" alt="A screenshot from the fieldsets and labels video that shows an HTML form in a web browser."></a></p>
<p>This video is from <a href="http://teamtreehouse.com/?cid=193">Treehouse</a>, a high-quality video training site with hundreds of short videos on topics like &#8230;</p>
<ul>
<li><a href="http://teamtreehouse.com/library/accessibility/?cid=193">Accessibility</a></li>
<li><a href="http://teamtreehouse.com/library/design-foundations/css3?cid=193">CSS3</a></li>
<li><a href="http://teamtreehouse.com/library/design-foundations/aesthetic-foundations?cid=193">Aesthetic Foundations</a></li>
<li><a href="http://teamtreehouse.com/library/django/?cid=193">Django</a></li>
<li><a href="http://teamtreehouse.com/library/design-foundations/html/?cid=193">HTML</a></li>
<li><a href="http://teamtreehouse.com/library/design-foundations/css-foundations/?cid=193">CSS</a></li>
<li><a href="http://teamtreehouse.com/library/html5-foundations/?cid=193">HTML5</a></li>
<li><a href="http://teamtreehouse.com/library/ios-4-foundations/?cid=193">iOS Development</a></li>
<li><a href="http://teamtreehouse.com/library/javascript/?cid=193">JavaScript</a></li>
<li><a href="http://teamtreehouse.com/library/jquery/?cid=193">jQuery</a></li>
<li><a href="http://teamtreehouse.com/library/nosql/?cid=193">NoSQL</a></li>
<li><a href="http://teamtreehouse.com/library/php/?cid=193">PHP</a></li>
<li><a href="http://teamtreehouse.com/library/design-foundations/rwd-foundations/?cid=193">Responsive Web Design</a></li>
<li><a href="http://teamtreehouse.com/library/ruby/?cid=193">Ruby</a></li>
<li><a href="http://teamtreehouse.com/library/ruby-on-rails/?cid=193">Ruby on Rails</a></li>
<li><a href="http://teamtreehouse.com/library/archive/ux-foundations/?cid=193">UX</a></li>
<li><a href="http://teamtreehouse.com/library/version-control?cid=193">Version Control</a></li>
<li><a href="http://teamtreehouse.com/library/wordpress?cid=193">WordPress Theme Design</a></li>
</ul>
<p>New videos are added regularly, so it&#8217;s a great way to stay up-to-date on all the latest technology and methods. Browse the entire <a href="http://teamtreehouse.com/library/?cid=193">library of videos</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vitaminmasterfeed?a=_331I7nwNlk:Rfz7NyehFDc:TJpph-hZrPI"><img src="http://feeds.feedburner.com/~ff/vitaminmasterfeed?d=TJpph-hZrPI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vitaminmasterfeed/~4/_331I7nwNlk" height="1" width="1"/>]]></content:encoded>
		<wfw:commentRss>http://thinkvitamin.com/uncategorized/free-video-fieldsets-and-labels/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
					<feedburner:origLink>http://thinkvitamin.com/uncategorized/free-video-fieldsets-and-labels/</feedburner:origLink></item>
		<item>
		<title>Impress.js – Create presentations with open web standards</title>
		<link>http://feedproxy.google.com/~r/vitaminmasterfeed/~3/xOs2QxZjJTM/</link>
		<comments>http://thinkvitamin.com/asides/impress-js-create-presentations-with-open-web-standards/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 21:42:56 +0000</pubDate>
		<dc:creator>Nick Pettit</dc:creator>
				<category><![CDATA[Asides]]></category>
		<guid isPermaLink="false">http://thinkvitamin.com/?p=18011</guid>
		<content:encoded><![CDATA[<p>I&#8217;m a big fan of CSS3 transitions and animations, so naturally I&#8217;m very impressed with <a href="https://github.com/bartaz/impress.js">impress.js</a> (sorry&#8230; that one was a little too easy).</p>
<p><img src="http://i.imgur.com/vUJDQ.jpg" alt="A screenshot from the Impress presentation software."></p>
<p>Impress.js is a presentation framework that takes its inspiration from Prezi, another popular presentation platform. The difference is, impress.js uses open web standards. <a href="https://github.com/bartaz/impress.js">Check out the source for impress.js, on GitHub</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/vitaminmasterfeed?a=xOs2QxZjJTM:PAiRFEACvKw:TJpph-hZrPI"><img src="http://feeds.feedburner.com/~ff/vitaminmasterfeed?d=TJpph-hZrPI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/vitaminmasterfeed/~4/xOs2QxZjJTM" height="1" width="1"/>]]></content:encoded>
		<wfw:commentRss>http://thinkvitamin.com/asides/impress-js-create-presentations-with-open-web-standards/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
					<feedburner:origLink>http://thinkvitamin.com/asides/impress-js-create-presentations-with-open-web-standards/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic page generated in 1.710 seconds. --><!-- Cached page generated by WP-Super-Cache on 2012-02-09 18:06:06 -->

