<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>Fearless Flyer Web Design &#187; Websites</title> <atom:link href="http://fearlessflyer.com/category/websites/feed/" rel="self" type="application/rss+xml" /><link>http://fearlessflyer.com</link> <description>Fearless flyer is a blog that focuses on the latest topics of web design. This includes Wordpress, SEO, Photoshop, jQuery, PHP and CSS. Fearless flyer is owned and operated by Michael Soriano, a seasoned web developer living in Southern California.</description> <lastBuildDate>Tue, 07 Sep 2010 21:02:16 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Five Easy Steps to a Faster Website</title><link>http://fearlessflyer.com/2010/02/five-easy-steps-to-a-faster-website/</link> <comments>http://fearlessflyer.com/2010/02/five-easy-steps-to-a-faster-website/#comments</comments> <pubDate>Wed, 17 Feb 2010 04:46:03 +0000</pubDate> <dc:creator>michael soriano</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[Websites]]></category> <category><![CDATA[fast sites]]></category> <category><![CDATA[lazy load]]></category> <category><![CDATA[load faster pages]]></category> <category><![CDATA[smushit]]></category> <category><![CDATA[speedy pages]]></category> <category><![CDATA[yslow]]></category><guid isPermaLink="false">http://fearlessflyer.com/?p=1271</guid> <description><![CDATA[The speed of a web page is a strong determinant of your website’s success. The faster your page loads &#8211; the happier your viewers are. Well, that may not entirely be true (happy viewers result from good content) – but what good is good content if it takes too long to load? As we all [...]]]></description> <content:encoded><![CDATA[<p>The speed of a web page is a strong determinant of your website’s success.  The faster your page loads &#8211; the happier your viewers are. Well, that may not entirely be true (happy viewers result from good content) – but what good is good content if it takes too long to load?</p><p>As we all may know &#8211; Web 101 includes a plethora of venues for better performing sites:  SEO being one of them.  Speed is another.  As a matter of fact –<a href="http://mashable.com/2009/11/15/google-ranking-speed/"> speed may one day affect your page rankings in search engines</a>. Now before we scour our HTML for bloated code, check out these quick and easy tips on how to make your web pages faster:</p><h3>Smush.It</h3><p>Smush.It is Yahoo’s proprietary image compression tool. If you haven’t yet noticed, web sites nowadays are getting fancier. Plenty of images – large backgrounds, slideshows, thumbnails – they’re all accomplished by embedding images into the pages. The problem is &#8211; images are huge in kilobytes. Smush.It takes care of that by compressing your images, hence “Smush” – but without loss of quality.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/02/smushit.jpg" alt="" title="My Background Image was Smushed to 65 Percent" width="576" height="203" class="alignnone size-full wp-image-1272" /></p><p>Simply go to <a href="http://smush.it">Smush.it </a>and upload your images. No code to download, no plugin to install – Yahoo has provided this service for anyone to use online.</p><h5>For WordPress Users:</h5><p>A beautiful plugin known as WP Smush.it developed by the folks from <a href="http://dialect.ca/code/wp-smushit/">Dialect.ca</a>. The plugin automatically compresses images uploaded to your posts behind the scenes – using the Smush.it API. What’s great about this plugin is – you can go back to your image library and Smush your older images – how neat is that!</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/02/smushit2.jpg" alt="" title="Screenshot of Media Library with Smushit Plugin" width="576" height="203" class="alignnone size-full wp-image-1273" /></p><h3>Use Lazy Load</h3><p>You ever notice those mega websites with tons of images in an article – but each image only load when you scroll to that part? This effect is achieved through Javascript (jQuery) and a little plugin called Lazy Load. Lazy Load is developed by Mika Tuupola with the main purpose of delaying the loading of images below the viewable screen area.  Thus making pages load faster – especially helpful for long pages with plenty of images.</p><p>Installing Lazy Load is very easy.  There are two scripts you need included in your page – the jquery.js file and the plugin script itself (which can be downloaded from this<a href="http://www.appelsiini.net/projects/lazyload"> link</a>)</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;script src=&quot;jquery.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;jquery.lazyload.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</pre></td></tr></table></div><p>You can assign all images to automatically load lazy:</p><div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;img&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">lazyload</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p>Or  only specify specific images:</p><div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#main-container img&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">lazyload</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><h3>CSS Sprites</h3><p>No, not another flavor of that clear soda pop – CSS Sprites is the process of using a single image for a web component such as navigation or rollover buttons. The idea is one image source greatly reduces the amount of HTTP requests compared to using multiple images; thus, decreasing page load times.  Web designers may have started using sprites for buttons, but I’ve seen many websites using it on any static image such as maps, rating scales and logos. My main navigation bar is using CSS Sprites:</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/02/css-sprites.jpg" alt="" title="My Page Navigation with Sprites" width="576" height="163" class="alignnone size-full wp-image-1274" /></p><p>While many think CSS Sprites are daunting to make &#8211; it certainly becomes much easier once you get the hang of it. Check out my tutorial on <a href="http://fearlessflyer.com/2009/05/create-a-subscribe-bar-with-css-sprites/">How to make a Subscribe Bar using CSS sprites</a>.</p><h3>Combine those Stylesheets</h3><p>As mentioned previously &#8211; Reducing the number of HTTP requests is key to a speedier page.  Different calls for external stylesheets is no different. Having just a single external stylesheet will definitely improve your page performance. This may not apply to smaller single page portfolios, but if you run a blog or a CMS with countless dynamic pages – having multiple stylesheets is very common.  Combine those styles into one giant stylesheet. <del datetime="2010-02-25T06:49:49+00:00">Better yet – include an @imports statement inside your main css file:</del></p><p><strong>Update!</strong> &#8211; It turns out that using @imports may have a negative impact on the overall performance of your websites. Thanks to Max Zero &#8211; who led me to <a href="http://www.stevesouders.com/blog/2009/04/09/dont-use-import/">this article</a> which outlines performance lags including IE issues by using @imports.</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@import url('/css/another.css') screen; </span>
<span style="color: #a1a100;">@import url('/css/another1.css') screen; </span>
<span style="color: #a1a100;">@import url('/css/another2.css') screen; </span>
<span style="color: #a1a100;">@import url('/css/print.css') print;</span></pre></td></tr></table></div><p>Import statements include other stylesheets into your main css. So you can still use multiple sheets – but in your HTML – you just call the main file:</p><div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/css/styles.css&quot; /&gt;</pre></div></div><h5>For WordPress Users:</h5><p>Many of you may not know that most plugins come with their own css file. The more plugins you have – the more HTTP request for those stylesheets get appended in your HTML – slowing your pages down multi-fold. Read this <a href="http://www.wprecipes.com/wordpress-trick-disable-plugin-stylesheet">article by WPRecipes</a> on how to deregister plugin css files. Once you have the css deregistered, simply copy those stylesheets it into your main styles.css file. This eliminates the need for those additional stylesheets.</p><h3>Use Speed Testers</h3><p>The final tip for web swiftness –use online speed testers. These are special websites that determine your page load times. Of course this alone won’t make your website fast – you have to go through the analysis and recommendations on HOW to speed up your website.  What’s good about these websites are not only that they’re designed specifically for this purpose – but also, they’re free! So take advantage of speed testers and see their suggestions on how to fix and fine tune your site. I think of them as pit stops for web pages – sound corny? I think so too.</p><p>Personally, I use a firefox add-on known as <a href="https://addons.mozilla.org/en-US/firefox/addon/5369">YSlow</a>. YSlow analyzes your pages based on the strict Yahoo rules for high website performance.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/02/speed-testers.jpg" alt="" title="Speed Testing Websites" width="576" height="225" class="alignnone size-full wp-image-1275" /></p><p> Other online web page speed testing services include: <a href="http://tools.pingdom.com/">http://tools.pingdom.com/</a> and <a href="http://www.websiteoptimization.com/services/analyze/">http://www.websiteoptimization.com/services/analyze/</a>.</p><h3>Conclusion:</h3><p>Now apply these techniques to you web pages and I guarantee a significant increase in performance.  What about you? Do you have tips on how to make web pages faster? Feel free to leave a comment below:</p> ]]></content:encoded> <wfw:commentRss>http://fearlessflyer.com/2010/02/five-easy-steps-to-a-faster-website/feed/</wfw:commentRss> <slash:comments>9</slash:comments> </item> <item><title>16 Beautiful Restaurant Websites</title><link>http://fearlessflyer.com/2010/01/16-beautiful-restaurant-websites/</link> <comments>http://fearlessflyer.com/2010/01/16-beautiful-restaurant-websites/#comments</comments> <pubDate>Fri, 22 Jan 2010 20:23:34 +0000</pubDate> <dc:creator>michael soriano</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[Inspiration]]></category> <category><![CDATA[Websites]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[Design]]></category> <category><![CDATA[food]]></category> <category><![CDATA[menu]]></category> <category><![CDATA[Photoshop]]></category> <category><![CDATA[restaurant]]></category> <category><![CDATA[Wordpress]]></category><guid isPermaLink="false">http://fearlessflyer.com/?p=1196</guid> <description><![CDATA[One of the challenging parts of web design is to provide exactly what your client needs. Some of them look to advertise a product. Others offer some kind of service, while the rest want a website for general information about their organization. Recently, I had to design for a local restaurant. Restaurant owners are quite [...]]]></description> <content:encoded><![CDATA[<p>One of the challenging parts of web design is to provide exactly what your client needs. Some of them look to advertise a product. Others offer some kind of service, while the rest want a website for general information about their organization. Recently, I had to design for a local restaurant. Restaurant owners are quite the hybrid of all the clientele types I mentioned because they:  1) want a website to advertise their products *usually in a menu form, 2) promote their services and friendly staff and 3) show the world about their fine establishment.</p><p>As I was searching the net for good restaurant websites, I stumbled upon these 16 sites which had all the elements that my client needed.  In addition, some of these websites look so good – that it would inspire many of you designers out there. Note that I included my work in the list (its my blog &#8211; I can do whatever I want).</p><p><strong><a href="http://thenoodlebox.net/">http://thenoodlebox.net/</a></strong><br /> <a href="http://thenoodlebox.net/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/the-noodle-box.jpg" alt="the-noodle-box" width="576" height="323" class="alignnone size-full wp-image-1211" /></a></p><p><strong><a href="http://www.rubytuesday.com/">http://www.rubytuesday.com</a></strong><br /> <a href="http://www.rubytuesday.com/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/ruby-tuesdays.jpg" alt="ruby-tuesdays" width="576" height="323" class="alignnone size-full wp-image-1208" /></a></p><p><strong><a href="http://www.twelve-restaurant.co.uk/">http://www.twelve-restaurant.co.uk/</a></strong><br /> <a href="http://www.twelve-restaurant.co.uk/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/twelve-restaurant.jpg" alt="twelve-restaurant" width="576" height="323" class="alignnone size-full wp-image-1213" /></a></p><p><strong><a href="http://www.pizzaza.ca/">http://www.pizzaza.ca/</a></strong><br /> <a href="http://www.pizzaza.ca/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/pizzaza.jpg" alt="pizzaza" width="576" height="323" class="alignnone size-full wp-image-1206" /></a></p><p><strong><a href="http://www.nuevo-aurich.de/">http://www.nuevo-aurich.de/</a></strong><br /> <a href="http://www.nuevo-aurich.de/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/nuevo-aurich.jpg" alt="nuevo-aurich" width="576" height="323" class="alignnone size-full wp-image-1205" /></a></p><p><strong><a href="http://www.pomonavalleyminingco.com/">http://www.pomonavalleyminingco.com/</a></strong><br /> <a href="http://www.pomonavalleyminingco.com/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/pomona-valley-mining.jpg" alt="pomona-valley-mining" width="576" height="323" class="alignnone size-full wp-image-1207" /></a></p><p><strong><a href="http://www.lapizarraproject.com/">http://www.lapizarraproject.com/</a></strong><br /> <a href="http://www.lapizarraproject.com/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/la-pizarra.jpg" alt="la-pizarra" width="576" height="323" class="alignnone size-full wp-image-1204" /></a></p><p><strong><a href="http://www.villagerkent.com/">http://www.villagerkent.com/</a></strong><br /> <a href="http://www.villagerkent.com/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/the-villager.jpg" alt="the-villager" width="576" height="323" class="alignnone size-full wp-image-1212" /></a></p><p><strong><a href="http://www.bertoldis.ca/">http://www.bertoldis.ca/</a></strong><br /> <a href="http://www.bertoldis.ca/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/bertoldis.jpg" alt="bertoldis" width="576" height="323" class="alignnone size-full wp-image-1198" /></a></p><p><strong><a href="http://www.caferouge.co.uk/">http://www.caferouge.co.uk/</a></strong><br /> <a href="http://www.caferouge.co.uk/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/cafe-rouge.jpg" alt="cafe-rouge" width="576" height="323" class="alignnone size-full wp-image-1199" /></a></p><p><strong><a href="http://jakesrh.net/">http://jakesrh.net/</a></strong><br /> <a href="http://jakesrh.net/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/jakes-roadhouse.jpg" alt="" title="I did this!" width="576" height="323" class="alignnone size-full wp-image-1203" /></a></p><p><strong><a href="http://www.belgo-restaurants.co.uk/">http://www.belgo-restaurants.co.uk/</a></strong><br /> <a href="http://www.belgo-restaurants.co.uk/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/belgo.jpg" alt="belgo" width="576" height="323" class="alignnone size-full wp-image-1197" /></a></p><p><strong><a href="http://www.giraffe.net/">http://www.giraffe.net/</a></strong><br /> <a href="http://www.giraffe.net/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/giraffe.jpg" alt="giraffe" width="576" height="323" class="alignnone size-full wp-image-1200" /></a></p><p><strong><a href="http://www.sandiegobrewing.com/">http://www.sandiegobrewing.com/</a></strong><br /> <a href="http://www.sandiegobrewing.com/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/san-diego-brewing.jpg" alt="san-diego-brewing" width="576" height="323" class="alignnone size-full wp-image-1209" /></a></p><p><strong><a href="http://www.hoddows-gastwerk.de/">http://www.hoddows-gastwerk.de/</a></strong><br /> <a href="http://www.hoddows-gastwerk.de/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/hoddows.jpg" alt="hoddows" width="576" height="323" class="alignnone size-full wp-image-1201" /></a></p><p><strong><a href="http://www.strada.co.uk/">http://www.strada.co.uk/</a></strong><br /> <a href="http://www.strada.co.uk/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/strada.jpg" alt="strada" width="576" height="323" class="alignnone size-full wp-image-1210" /></a></p> ]]></content:encoded> <wfw:commentRss>http://fearlessflyer.com/2010/01/16-beautiful-restaurant-websites/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>Create a Single Page Portfolio from Scratch &#8211; Part 2: HTML and CSS</title><link>http://fearlessflyer.com/2009/12/create-a-single-page-portfolio-from-scratch-part-2-html-and-css/</link> <comments>http://fearlessflyer.com/2009/12/create-a-single-page-portfolio-from-scratch-part-2-html-and-css/#comments</comments> <pubDate>Sun, 13 Dec 2009 23:30:22 +0000</pubDate> <dc:creator>michael soriano</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[Websites]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[html]]></category> <category><![CDATA[Photoshop]]></category> <category><![CDATA[php]]></category> <category><![CDATA[single page portfolio]]></category> <category><![CDATA[tutorial]]></category><guid isPermaLink="false">http://fearlessflyer.com/?p=1035</guid> <description><![CDATA[Now we have come to part 2 of this series on how to create a single page portfolio from scratch. This part focuses on the HTML and CSS mark up to convert our .psd file to a living web page. The tools we need for this is of course &#8211; Photoshop, an HTML editor (in [...]]]></description> <content:encoded><![CDATA[<p>Now we have come to part 2 of this series on how to create a single page portfolio from scratch. This part focuses on the HTML and CSS mark up to convert our .psd file to a living web page. The tools we need for this is of course &#8211; Photoshop, an HTML editor (in my case I’m using Dreamweaver) and multiple browsers for page testing. We’re also going to toggle between these tools a lot so be prepared to switch programs by using alt + tab often.</p><div class="viewdemo"> <a href="http://demo.fearlessflyer.com/html/demo/one/">View the Demo:</a></div><div class="special"> This tutorial is part 2 of three parts: 1) <strong><a href="http://fearlessflyer.com/2009/11/create-a-single-page-portfolio-from-scratch-part-1-photoshop-mockup/">the Photoshop Mock up</a></strong>, 2) <strong><a href="http://fearlessflyer.com/2009/12/create-a-single-page-portfolio-from-scratch-part-2-html-and-css/">Coding the HTML / CSS</a></strong> and finally 3) <strong><a href="http://fearlessflyer.com/2010/04/create-a-single-page-portfolio-from-scratch-part-3-jquery-and-php/">Adding PHP / jQuery</a>.</strong></div><p>To preview what we are going to build &#8211; <strong><a href="http://fearlessflyer.com/main/wp-content/uploads/demo/one-page-portfolio/">see the demo page</a></strong>. Just in case you missed the first tutorial, click <strong><a href="http://fearlessflyer.com/2009/11/create-a-single-page-portfolio-from-scratch-part-1-photoshop-mockup/">here</a></strong>. So are you ready to get started? Let’s begin:</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/part2.jpg" alt="part2" title="This is Part 2 of a 3 part series" width="576" height="189" class="alignnone size-full wp-image-1122" style="border:0;" /></p><h3>The Wrap, Header and Feature Divs</h3><p>First of all, you will notice that our layout doesn’t really have anything in the header. This is because I’m sure you will use your own logo for your design &#8211; so I left that out. Second, is there really is no need for a navigation bar because we’re only building a single page. Although we may include some anchors in this area so we can quickly jump from one section of the page to another. Also important to recognize that most modern websites now have a large “feature” section which packs the main message of the website. This effect is proven to be pretty effective &#8211; that’s why we’re applying the same concept to our portfolio site.</p><p>In Dreamweaver, create a new HTML page, name it “<strong>index.html</strong>” and save it.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp1.jpg" alt="sp1" title="New HTML document in Dreamweaver" width="576" height="478" class="alignnone size-full wp-image-1037" /></p><p>Create a CSS document &#8211; name it “<strong>styles.css</strong>” and save it in the same location as “index.html”. Link to the stylesheet from index.html by using a link tag:</p><div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">&lt;link type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span>  href<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;styles.css&quot;</span> rel<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> /<span style="color: #00AA00;">&gt;</span></pre></div></div><p>Now, we create the main DIV &#8211; we’ll call this the “<strong>wrap</strong>”. In this DIV we’ll house almost all of our elements (all but one: the footer &#8211; which I’ll explain later). In index.html, enter the code:</p><div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">&lt;div id<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;wrap&quot;</span><span style="color: #00AA00;">&gt;</span>  &lt;/div<span style="color: #00AA00;">&gt;</span>&lt;!--wrap--<span style="color: #00AA00;">&gt;</span></pre></div></div><p>Next, we grab the body style of our page. Go to Photoshop and open our mockup. Flatten the image (“<strong>Layer</strong>” > “<strong>Flatten Image</strong>”) and grab a piece of background:</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp2.jpg" alt="sp2" title="Grab a piece for the background" width="576" height="334" class="alignnone size-full wp-image-1038" /></p><p>Still in Photoshop, press Ctrl + C to copy the selected area, create a new document &#8211; and paste (this will be our HTML body background that will span horizontally). Save this file as “<strong>body-bg.gif</strong>” inside a folder called “<strong>images</strong>” in our root directory.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp3.jpg" alt="sp3" title="Save as body-bg.gif" width="576" height="478" class="alignnone size-full wp-image-1039" /></p><p>Next is we apply some fixin’s to our CSS:</p><div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #00AA00;">*</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">&#125;</span>
  body<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/body-bg.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat-x</span> <span style="color: #cc00cc;">#f3f2ed</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div><p>The above code tells everything to reset to 0 padding and 0 margin. It also applies the body background to the image we just created, repeat it horizontally and apply the color #f3f2ed everywhere else. View your file in the browser, you should have something like below:</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp4.jpg" alt="sp4" title="This is how our HTML looks so far" width="576" height="454" class="alignnone size-full wp-image-1040" /></p><p>Now remember we created the main div? That is just sitting in somewhere in the page. Let’s apply some standard measurements to it and align it so it settles perfectly in the middle of our browser.</p><p>Note that in the beginning of this tutorial &#8211; I was going to use the <strong>960.gs</strong> framework, but feel as though I’m cheating because the tutorial calls for “<strong>from scratch</strong>”. So I decided, I’m not using the framework and code everything by hand, hence &#8211; “<strong>from scratch</strong>”.</p><p>Add this code to your style.css:</p><div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#wrap</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">960px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#CCCCCC</span><span style="color: #00AA00;">;</span>  <span style="color: #000000; font-weight: bold;">min-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">500px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div><p>This centers our wrap in the middle of the page, as well as set the default 960 pixels width. The background color and the minimum height properties are added temporarily so we can tell from the browser what we’re working with. Refresh your page and you should have something like below:</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp5.jpg" alt="sp5" title="Our Wrap DIV in gray background" width="576" height="349" class="alignnone size-full wp-image-1041" /></p><p>Go back to index.html and add the <strong>header </strong>div inside the wrap div:</p><div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div  id=&quot;header&quot;&gt;&lt;/div&gt;&lt;!--header--&gt;</pre></div></div><p>Back to our style.css &#8211; add this piece of code:</p><div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#header</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">32px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#333333</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div><p>Refresh your browser &#8211; and you can see where our header sits nicely on top. The background color again is temporary.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp6.jpg" alt="sp6" title="See the Header?" width="576" height="349" class="alignnone size-full wp-image-1042" /></p><p>Next is our feature div. Create a new div tag in your index.html with the id of “<strong>feature</strong>”, place in between the “feature” divs. Add two paragraph tags inside with your own text. In my case &#8211; I’m using the default Lorem latin filler text:</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;feature&quot;&gt;
&lt;p id=&quot;slogan&quot;&gt;&lt;!--your fantastic slogan goes here--&gt;&lt;/p&gt;
&lt;p&gt;&lt;!--followed by a smaller, but also fantastic slogan here--&gt;&lt;/p&gt;
&lt;/div&gt;&lt;!--feature--&gt;</pre></td></tr></table></div><p>Notice the first paragraph tag has an id of “<strong>slogan</strong>”. This is because this is the primary text that we are going to style with an image. We are treating it as regular text for SEO purposes.</p><p>Go back to your mock up in Photoshop and press “<strong>Step Backward</strong>” (ctrl + z + alt) several times until you get the fully layered version once again. Make sure the guides are showing &#8211; select the feature section like below:</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp7.jpg" alt="sp7" title="Grab our Feature Area in Photohsop" width="576" height="454" class="alignnone size-full wp-image-1043" /></p><p>In your layers panel, make sure you hide all the layers that shouldn’t be shown. This includes all the background layers and text elements. The only layer that should remain is the large feature image and the borders and glow to the left. Select the feature area and hit crop (“image” > “crop”). Save this as “<strong>feature.png</strong>” inside our images folder. This will be our feature div background image:</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp8.jpg" alt="sp8" title="Save as feature.png" width="576" height="413" class="alignnone size-full wp-image-1044" /></p><p>Now in our styles.css &#8211; add the following code:</p><div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#feature</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/feature.png</span><span style="color: #00AA00;">&#41;</span>  <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">394px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div><p>Go back to your mockup and click “<strong>Step Backward</strong>” (“Edit” > “Step Backward”) to uncrop. Unhide the slogan layer and select it according to the guides. Crop once again and save this as “<strong>slogan.png</strong>”.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp9.jpg" alt="sp9" title="Save as slogan.png" width="576" height="454" class="alignnone size-full wp-image-1045" /></p><p>Now add this code to your styles.css:</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#feature</span> p<span style="color: #cc00cc;">#slogan</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/slogan.png</span><span style="color: #00AA00;">&#41;</span>  <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">390px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">192px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">-9999px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>  <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">30px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#feature</span> p <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span>verdana<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: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">320px</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;">20px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">48px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">28px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div><p>The above code styles the two paragraph tags inside the feature div. The first one with a background image, and the next one as plain text. Now when search engines crawl our page &#8211; it still thinks both are plain text &#8211; which is a good thing.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp10.jpg" alt="sp10" title="Voila! Our HTML is coming along!" width="576" height="387" class="alignnone size-full wp-image-1046" /></p><p>I’ve also taken out the color property in our wrap div to see how our feature looks like. Another thing to remember is that since our feature sits in its own div &#8211; it will be easy to add a slideshow or something to that effect as replacement.</p><p>Now that our wrap, header and feature is in place, we’re ready to move to the next sections: <strong>Testimonials and Previous Work:</strong></p><h3>Testimonials and Previous Work Sections</h3><p>If the feature section is our hard hitter &#8211; a testimonials area is our “<strong>counter punch</strong>”. Testimonials are a sure fire way of telling our viewers: “<em>we’re good &#8211; read what others are saying about me!</em>”. Also another proven way of increasing business, it is also the reason why we’re putting testimonials right below our feature section. Ready to continue coding? Let’s keep going.</p><p>In our index.html, add the code for our testimonials. Place this directly below our feature div:</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="html" style="font-family:monospace;">&lt;div class=&quot;column first&quot;&gt;
&lt;p&gt;&lt;!--your content here--&gt;&lt;/p&gt;&lt;strong&gt;&lt;!--author here--&gt;&lt;/strong&gt;
&lt;/div&gt;&lt;!--column--&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;p&gt;&lt;!--your content here--&gt;&lt;/p&gt;&lt;strong&gt;&lt;!--author here--&gt;&lt;/strong&gt;
&lt;/div&gt;&lt;!--column--&gt;
&lt;div class=&quot;column last&quot;&gt;
&lt;p&gt;&lt;!--your content here--&gt;&lt;/p&gt;&lt;strong&gt;&lt;!--author here--&gt;&lt;/strong&gt;
&lt;/div&gt;&lt;!--column--&gt;
&lt;/div&gt;&lt;!--testimonials--&gt;</pre></td></tr></table></div><p>Of course, you substitute real testimonials and authors in its place. Notice the “first” and “last” additional classes to the columns &#8211; we need this to fix our margins in our css. Next, go back to Photoshop and go backwards again so you get back to the original uncropped file. Select the Testimonials title all the way to the rightmost guide. Crop and save as “<strong>testimonials-title.jpg</strong>” inside our images folder.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp11.jpg" alt="sp11" title="Our Headings Background - Testimonials" width="576" height="454" class="alignnone size-full wp-image-1047" /></p><p>Inside styles.css, append the below code:</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#testimonials</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: #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/testimonials-title.jpg</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #000000; font-weight: bold;">top</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>  <span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">65px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#testimonials</span> <span style="color: #6666ff;">.column</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;">260px</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;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #3333ff;">:georgia</span><span style="color: #00AA00;">,</span> helvetica<span style="color: #00AA00;">,</span>  arial<span style="color: #00AA00;">,</span> <span style="color: #993333;">serif</span><span style="color: #00AA00;">;</span> <span style="color: #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;">19px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#testimonials</span> <span style="color: #6666ff;">.column</span><span style="color: #6666ff;">.first</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#testimonials</span> <span style="color: #6666ff;">.column</span><span style="color: #6666ff;">.last</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div><p>This code adds the background image that we just created to the main testimonials div. It also adds proper styling to the columns inside the div, and fixes to the margins so it remains inside our imaginary grid.</p><p><strong>The optional “more” tab</strong></p><p>The more tab is only necessary if you have more than 3 columns of testimonials that you would like to show. The point is just show 3 columns at first, and by clicking the “<strong>more</strong>” tab &#8211; more testimonial columns will slide below &#8211; most likely to be achieved by jQuery (I haven’t gotten there yet &#8211; remember &#8211; I’m writing this tutorial as I go!).</p><p>To add a more tab &#8211; add this code to your HMTL, right underneath the last column div:</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;div class=&quot;more&quot;&gt;
&lt;a id=&quot;more-testimonials&quot;&gt;More  Testimonials&lt;/a&gt;
&lt;/div&gt;&lt;span id=&quot;more-1035&quot;&gt;&lt;/span&gt;</pre></td></tr></table></div><p>Note that we used a class for our div instead of an id. This is because this div can actually be reused in another section of our page.</p><p>Go back to your Photoshop file &#8211; click “<strong>Step Backwards</strong>” to the uncropped version &#8211; select the section that shows the “<strong>more testimonials</strong>” border and button according to your guides. Remember to hide the text layer over the button.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp12.jpg" alt="sp12" title="Our More Tab in the bottom of the section" width="576" height="454" class="alignnone size-full wp-image-1048" /></p><p>Crop and save this as “<strong>more-bg.jpg</strong>” inside the images folder. Add the code below to your .css file:</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.more</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: #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/more-bg.jpg</span><span style="color: #00AA00;">&#41;</span>  <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">31px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.more</span> a<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span>verdana<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.more</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;">#999999</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
a<span style="color: #cc00cc;">#more-testimonials</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span> <span style="color: #933;">16px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div><p>For the “<strong>Previous Work</strong>” section &#8211; it’s pretty much the same process as testimonials. The difference is &#8211; we are actually using an unordered list instead of div columns. Add the following code inside your HTML:</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;previous-work&quot;&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a  href=&quot;images/thumbnail.jpg&quot;&gt;&lt;img  src=&quot;images/thumbnail.jpg&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;images/thumbnail.jpg&quot;&gt;&lt;img  src=&quot;images/thumbnail.jpg&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a  href=&quot;images/thumbnail.jpg&quot;&gt;&lt;img  src=&quot;images/thumbnail.jpg&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;last&quot;&gt;&lt;a  href=&quot;images/thumbnail.jpg&quot;&gt;&lt;img  src=&quot;images/thumbnail.jpg&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;more&quot;&gt;
&lt;a id=&quot;more-previous-work&quot;&gt;More Previous  Work&lt;/a&gt;
&lt;/div&gt;&lt;!--more--&gt;
&lt;/div&gt;&lt;!--previous-work--&gt;</pre></td></tr></table></div><p>The thumbnail sizes are going to be 200 pixels width by152 pixels height. My sample code contains dummy thumbnails along with temporary images for the bigger image. We are incorporating a light box effect in the final product so users do not actually leave the page when viewing your gallery. Notice the addition of the “<strong>more</strong>” tab &#8211; which is again, purely optional.</p><p>For the “<strong>Previous Work</strong>” title &#8211; you do the same exact process in Photoshop as you did previously in the Testimonials title. Save this image in the images folder &#8211; name it: “<strong>previous-work-title.jpg</strong>”.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp13.jpg" alt="sp13" title="Our other Heading Image - Previous Work" width="576" height="454" class="alignnone size-full wp-image-1049" /></p><p>Now we add some styling to the list items, thumbnails and the entire div section:</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#previous-work</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: #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/previous-work-title.jpg</span><span style="color: #00AA00;">&#41;</span>  <span style="color: #993333;">no-repeat</span> <span style="color: #000000; font-weight: bold;">top</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">65px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>  <span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#previous-work</span> ul <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">padding-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">7px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#previous-work</span> ul li<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;">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;">20px</span> <span style="color: #933;">15px</span> <span style="color: #933;">20px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#previous-work</span> ul li<span style="color: #6666ff;">.last</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">20px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#previous-work</span> ul li a<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/thumb-bg.jpg</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>  <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">209px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">165px</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;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">11px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#previous-work</span> ul li a<span style="color: #3333ff;">:hover  </span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/thumb-bg-hover.jpg</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#previous-work</span> ul li a img <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</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><span style="color: #00AA00;">&#125;</span>
a<span style="color: #cc00cc;">#more-previous-work</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span> <span style="color: #933;">10px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div><p>I also created a couple of thumbnail image backgrounds for the active and hover states. Again this is purely optional and I won’t go over in this tutorial.</p><p>Now refresh your page in your browser. You should have something like the image below. It is also good practice to start viewing your page in different browsers. This way &#8211; you can start fixing bugs this early in the development process. Next stop is the <strong>footer</strong>.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp14.jpg" alt="sp14" title="The fold and below the fold become unfolded" width="576" height="566" class="alignnone size-full wp-image-1050" /></p><h3>The Footer</h3><p>Let’s go back to our Photoshop file &#8211; you may have to go back in history a couple of times to get you to the uncropped, fully layered version. Another thing to remember is <strong>NOT</strong> to save your original mock up file. This file is to stay in its original form &#8211; we are just cropping, hiding layers as we go to get the parts we want. But in the whole, this mockup .psd file remains in its original state. Select the footer area &#8211; starting from the guide a few pixels above the dark brown area.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp15.jpg" alt="sp15" title="Our Footer in Photoshop" width="576" height="566" class="alignnone size-full wp-image-1051" /></p><p>Once selected &#8211; crop the selection &#8211; but don’t save as of yet; we’re going to save a couple of images from this selection &#8211; one is the footer wrap, the other is the actual footer background.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp16.jpg" alt="sp16" title="Grab a piece for our background" width="576" height="204" class="alignnone size-full wp-image-1052" /></p><p>Once cropped, select the first 20 pixels from the left and crop once again. Save this file as “<strong>footer-wrap.gif</strong>” inside our images folder. Now go back to the Photoshop file and step backwards a couple of times to bring us to entire cropped footer image. Hide the layer group named “<strong>form</strong>”, as well as all the text layers in the footer area.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp17.jpg" alt="sp17" title="Hide Layers and save as the main footer background" width="576" height="388" class="alignnone size-full wp-image-1053" /></p><p>Save this file as “<strong>footer.jpg</strong>” in the images folder. Unhide the text layer that says “Hire Me for Professional Work”, and hide all the background layers so you get full transparency. Select the text area using the rectangular marquee tool and crop. Save this file as “<strong>slogan2.png</strong>” in our images folder.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp18.jpg" alt="sp18" title="Our slogan as .png image" width="576" height="194" class="alignnone size-full wp-image-1054" /></p><p>Now hit “<strong>Step Backward</strong>” (ctrl + alt + z) a couple of times to get to the uncropped footer image and unhide the “<strong>form</strong>” group of layers. Make sure you hide all the layers inside the form &#8211; all we need is the rounded container that embodies the form. Select this area, crop and save this file as “<strong>form-bg.png</strong>” in our images folder.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp19.jpg" alt="sp19" title="Our Form background - save as form-bg.png" width="576" height="269" class="alignnone size-full wp-image-1055" /></p><p>Finally, unhide the button text, shape and glow. Create guides that surround the button image and select accordingly. Crop and save as “<strong>submit.png</strong>” in our images folder.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp20.jpg" alt="sp20" title="Thats one kick ass submit button!" width="576" height="192" class="alignnone size-full wp-image-1056" /></p><p>Now go back to our index.html, add the following code right underneath the entire wrap div.</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="html" style="font-family:monospace;">&lt;div id=&quot;footer-wrap&quot;&gt;
&lt;div id=&quot;footer&quot;&gt;
&lt;div id=&quot;left-container&quot;&gt;
&lt;p id=&quot;slogan2&quot;&gt;Hire Me for Professional  Work&lt;/p&gt;
&lt;p&gt;&lt;!--your footer slogan in this section&lt;/p&gt;
&lt;/div&gt;&lt;!--left-container--&gt;
&nbsp;
&lt;form id=&quot;contact-form&quot;&gt;
&nbsp;
&lt;div id=&quot;split-left&quot;&gt;
  &lt;label  for=&quot;name&quot;&gt;Name:&lt;/label&gt;&lt;br/&gt;
  &lt;input name=&quot;name&quot; id=&quot;name&quot;  type=&quot;text&quot; class=&quot;formbox&quot;/&gt;&lt;br /&gt;
  &lt;label  for=&quot;email&quot;&gt;Email:&lt;/label&gt;&lt;br /&gt;
  &lt;input name=&quot;email&quot; id=&quot;email&quot;  type=&quot;text&quot; class=&quot;formbox&quot; /&gt;&lt;br /&gt;
&lt;/div&gt;&lt;!--split-left--&gt;
  &lt;label  for=&quot;comments&quot;&gt;Comments:&lt;/label&gt;&lt;br /&gt;
  &lt;textarea name=&quot;comments&quot;  id=&quot;comments&quot; type=&quot;textarea&quot; class=&quot;formbox&quot;  /&gt;&lt;/textarea&gt;
  &lt;input name=&quot;send&quot; id=&quot;send&quot;  type=&quot;submit&quot; value=&quot;&quot; class=&quot;send&quot;  /&gt;
&lt;/form&gt;
&nbsp;
&lt;/div&gt;&lt;!--footer--&gt;
&lt;/div&gt;&lt;!--footer-wrap--&gt;</pre></td></tr></table></div><p>The above code sets up all the content in the footer. This includes the two paragraphs on the left side and the contact form. Note that the form is still static. We will be converting this into a working form once we convert this to PHP.</p><p>Next up, is to style the contact form. Add the following code to your styles.css:</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#footer-wrap</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: #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/footer-wrap.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat-x</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">377px</span><span style="color: #00AA00;">;</span>  <span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#footer</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;">940px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>  <span style="color: #000000; font-weight: bold;">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/footer.jpg</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">377px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#footer</span> <span style="color: #cc00cc;">#left-container</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">400px</span><span style="color: #00AA00;">;</span> <span style="color: #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>
<span style="color: #cc00cc;">#contact-form</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/form-bg.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>  <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">427px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">169px</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;">right</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">40px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">78px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#split-left</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;">170px</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;">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;">30px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#contact-form</span> label<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#9e876b</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span>verdana<span style="color: #00AA00;">;</span>  <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#contact-form</span> <span style="color: #6666ff;">.formbox</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">4px</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">7px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
input<span style="color: #6666ff;">.send</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/submit.png</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">101px</span><span style="color: #00AA00;">;</span>  <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">37px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
input<span style="color: #3333ff;">:hover</span><span style="color: #6666ff;">.send</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>images/submit2.png<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div><p>The above code sets up our footer wrap to span the entire width of the page with its own background image repeating horizontally. Now you understand why we excluded this from the main wrap div? The rest of the code applies the styling to the footer and contact form &#8211; tied to the images we created in the previous steps.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp21.jpg" alt="sp21" title="With all the form elements in place - it looks like a form!" width="576" height="252" class="alignnone size-full wp-image-1057" /></p><p>Finally, we add the final touches to the two paragraph tags on the left side. Add this code to your styles.css:</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#footer</span> p<span style="color: #cc00cc;">#slogan2</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>images/slogan2.png<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>  <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">400px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">123px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">-9999px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#footer</span> p <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">400px</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;">font-family</span><span style="color: #00AA00;">:</span>verdana<span style="color: #00AA00;">;</span>  <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>  <span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#000</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: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp22.jpg" alt="sp22" title="Our SEO aware slogan and mini slogan" width="576" height="252" class="alignnone size-full wp-image-1036" /></p><p>That concludes are HTML and CSS tutorial on our single page portfolio. Remember, we still have the scripting side to do &#8211; which is handled by PHP and jQuery, which we&#8217;ll cover in the next series. <strong><a href="http://fearlessflyer.com/main/wp-content/uploads/demo/one-page-portfolio/">Click Here to see the DEMO Version</a></strong> of what we just created. The <strong><a href="http://fearlessflyer.com/downloads/Single-Page-Portfolio-HTML.zip">source code is also available to download</a></strong> &#8211; which includes all the files covered in this tutorial.</p><div class="special"> This tutorial is part 2 of three parts: 1) <strong><a href="http://fearlessflyer.com/2009/11/create-a-single-page-portfolio-from-scratch-part-1-photoshop-mockup/">the Photoshop Mock up</a></strong>, 2) <strong><a href="http://fearlessflyer.com/2009/12/create-a-single-page-portfolio-from-scratch-part-2-html-and-css/">Coding the HTML / CSS</a></strong> and finally 3) <strong><a href="http://fearlessflyer.com/2010/04/create-a-single-page-portfolio-from-scratch-part-3-jquery-and-php/">Adding PHP / jQuery</a>.</strong></div> ]]></content:encoded> <wfw:commentRss>http://fearlessflyer.com/2009/12/create-a-single-page-portfolio-from-scratch-part-2-html-and-css/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Cufonize Your Pages &#8211; How to add Cufon to your Web Design</title><link>http://fearlessflyer.com/2009/10/cufonize-your-pages-how-to-add-cufon-to-your-web-design/</link> <comments>http://fearlessflyer.com/2009/10/cufonize-your-pages-how-to-add-cufon-to-your-web-design/#comments</comments> <pubDate>Wed, 14 Oct 2009 04:08:40 +0000</pubDate> <dc:creator>michael soriano</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[Websites]]></category> <category><![CDATA[cufon]]></category> <category><![CDATA[custom text]]></category> <category><![CDATA[sifr alternative]]></category> <category><![CDATA[text replacement]]></category><guid isPermaLink="false">http://fearlessflyer.com/?p=781</guid> <description><![CDATA[I’m a big fan of Woothemes. It seems that each time they come out with a theme &#8211; they push the boundaries of web design. Take a look at their latest creation: Therapy – I can’t help but fall in love with the fine background gradients, smooth and seamless transparencies and nice rounded edges. But [...]]]></description> <content:encoded><![CDATA[<p>I’m a big fan of <a href="http://woothemes.com">Woothemes</a>. It seems that each time they come out with a theme &#8211; they push the boundaries of web design. Take a look at their latest creation: <a href="http://www.woothemes.com/2009/10/therapy/">Therapy</a> – I can’t help but fall in love with the fine background gradients, smooth and seamless transparencies and nice rounded edges. But what I really like about Therapy is it&#8217;s amazing typography. I said to myself: <strong>“that’s excellent utilization of sIFR”.</strong> So I right clicked on a post title, expecting to see the <strong>“About Macromedia Flash” </strong>entry – but didn’t see it. So I asked my confused self: <strong>“if it’s not sIFR, then what is converting all this dynamic text?&#8221;</strong></p><p><a href="http://demo.fearlessflyer.com/html/demo/cufonize.html" style="padding-bottom:15px; border:0px;"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/08/seethedemo.png" style="border:0px;" /></a></p><p>I inspect element in Firebug – then I see span class “<strong>cufon</strong>” everywhere.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/10/cufon-1.jpg" alt="cufon-1" title="A view of the source code for Therapy - Cufon all over the place" width="576" height="323" class="alignnone size-full wp-image-785" /></p><h3>So What in the world is Cufon?</h3><p>Cufon is defined as <strong>&#8220;fast text replacement with canvas and VML&#8221;</strong>. It also claims to be a worthy alternative to sIFR – which is, to those who are not familiar – stands for Scalable Inman Flash Replacement. sIFR is the technology used by web designers to replace dynamic text with non-web safe fonts. Although sIFR has done an okay job with text replacement – it has proven to be quite tricky to set up. I’ve used sIFR in a few projects in the past and do admit that it is not the easiest thing to get going. On top of that – sIFR seems a bit buggy, as well as slows down page loads. These are serious consequences to consider for the price of using a unique font for your pages.</p><p>So I went ahead and tried Cufon. To my amazement, the following steps is all that it takes to fully &#8220;Cufonize&#8221; your web pages. *Forgive the use of the term &#8220;cufonize&#8221; &#8211; it may sound funny, but after you try these steps, you too will &#8220;cufonize&#8221; your pages.</p><h3>Step 1: Get Cufon</h3><p>The first thing you need is to download the core javascript file which is responsible for the rendering of your custom font inside your HTML. Head on to <a href="http://cufon.shoqolate.com/generate/">http://cufon.shoqolate.com/generate/</a> and right click the “<strong>Download</strong>” tab – choose “<strong>Save Link As…</strong>” Save <strong>cufon-yui.js</strong> into a local directory in your machine.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/10/cufon-2.jpg" alt="cufon-2" title="Download the core code" width="576" height="323" class="alignnone size-full wp-image-786" /></p><h3>Step 2: Generate your Font</h3><p>On the same page at <a href="http://cufon.shoqolate.com/generate/">http://cufon.shoqolate.com/generate/</a> &#8211; click on the “<strong>Regular typeface</strong>” field – and browse to your desired font in your local machine.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/10/cufon-3.jpg" alt="cufon-3" title="Create the code for your font" width="576" height="323" class="alignnone size-full wp-image-787" /></p><p>The rest of the upload fields are optional. I left all of them default for the sake of making this tutorial short. Just make sure – you are using a font that is legit to use, check off the EULAs and the Terms of Agreement. Click on the <strong>“Let’s Do This</strong>” Button at the very end of that page.</p><p>This should generate a custom font javascript code for you – depending on your font choice. In my case, I picked something very un-extraordinary: Gigi.TTF – which produced a file named Gigi_400.font.js.</p><p>Go ahead and save this file in the same directory where you saved the core Cufon-yui.js file and we’re ready to build your page:</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/10/cufon-4.png" alt="cufon-4" title="Once created, save the js file locally" width="573" height="178" class="alignnone size-full wp-image-788" style="border:0px;" /></p><h3>Step 3: Cufonize your Page</h3><p>All you really need to do from this point is to link to these javascript files in the head section of your HTML. Also make sure that cufon-yui.js is called before the font.js file:</p><div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span> src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;cufon-yui.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span>  src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Gigi_400.font.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div><p>To begin the replacement process – create a custom script like below:</p><div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>  
    Cufon.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'h3, p'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div><p>The above script is telling the cufon to replace all H3 and P tags to our custom font.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/10/cufon-5.jpg" alt="cufon-5" title="Refresh your page and Voila!" width="576" height="323" class="alignnone size-full wp-image-789" /></p><p>Note that if you want to target specific elements in your page the same way you assign CSS classes and Ids, you have to use a framework such as jQuery that’ll let you do such a thing. To download jQuery, go to <a href="http://docs.jquery.com/Downloading_jQuery">http://docs.jquery.com/Downloading_jQuery</a>. Make sure you link to this file BEFORE the core cufon-yui.js in your header.</p><p>With the jQuery library in place, now you can select more specific elements in your page (hashtags for IDs and periods for classes). See example code below:</p><div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>  
    Cufon.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'h3#convert-me, p#convert-me-too'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div><p>The above code will Cufonize only the h3 tags with the id of “convert-me”, and p tags with the id of “convert-me-too”.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/10/cufon-6.jpg" alt="cufon-6" title="Use jQuery Selectors to target elements" width="576" height="494" class="alignnone size-full wp-image-784" /></p><h3>Conclusion:</h3><p>That’s basically it! That’s all it takes for you to use any font you like in your web pages. What I like best about Cufon is that it’s quick and it works. You will also find that general CSS properties such as color, size and positioning still applies on the transformed font.  To find out more about the specifics of Cufon styling &#8211; see <a href="http://wiki.github.com/sorccu/cufon/styling">http://wiki.github.com/sorccu/cufon/styling</a>.</p><p>Much respect to the people who created Cufon. I&#8217;m sure this marks a new trend in web typography. To the folks at Woothemes: keep pushing the boundaries &#8211; your work is pure inspiration to web artists everywhere.</p><p><a href="http://demo.fearlessflyer.com/html/demo/cufonize.html" style="padding-bottom:15px; border:0px;"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/08/seethedemo.png" style="border:0px;" /></a></p><h3>Who&#8217;s Using Cufon?</h3><p>The following list of websites are already using Cufon text replacement in their pages:</p><p><strong>Healthy Valdosta</strong></p><p><a href="http://www.healthyvaldosta.com/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/10/healthyvaldosta.jpg" alt="healthyvaldosta" title="healthyvaldosta" width="576" height="300" class="alignnone size-full wp-image-797" /></a></p><p><strong>Press75</strong></p><p><a href="http://www.press75.com/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/10/press75.jpg" alt="press75" title="press75" width="576" height="300" class="alignnone size-full wp-image-798" /></a></p><p><strong>International Rugby Academy</strong></p><p><a href="http://www.internationalrugbyacademy.com/new-zealand/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/10/intlrugby.jpg" alt="intlrugby" title="intlrugby" width="576" height="300" class="alignnone size-full wp-image-799" /></a></p><p><strong>Zen Desk</strong></p><p><a href="http://www.zendesk.com/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/10/zenddesk.jpg" alt="zenddesk" title="zenddesk" width="576" height="300" class="alignnone size-full wp-image-800" /></a></p><p><strong>Rock Beats Paper</strong></p><p><a href="http://rockbeatspaper.com/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/10/rockbeatspaper.jpg" alt="rockbeatspaper" title="rockbeatspaper" width="576" height="300" class="alignnone size-full wp-image-802" /></a></p><p><strong>Shopify</strong></p><p><a href="http://www.shopify.com/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/10/shopify.jpg" alt="shopify" title="shopify" width="576" height="300" class="alignnone size-full wp-image-803" /></a></p> ]]></content:encoded> <wfw:commentRss>http://fearlessflyer.com/2009/10/cufonize-your-pages-how-to-add-cufon-to-your-web-design/feed/</wfw:commentRss> <slash:comments>11</slash:comments> </item> <item><title>Free PSD &#8211; Elementary School Website</title><link>http://fearlessflyer.com/2009/04/free-psd-elementary-school-website/</link> <comments>http://fearlessflyer.com/2009/04/free-psd-elementary-school-website/#comments</comments> <pubDate>Fri, 01 May 2009 00:02:08 +0000</pubDate> <dc:creator>michael soriano</dc:creator> <category><![CDATA[Freebies]]></category> <category><![CDATA[General]]></category> <category><![CDATA[HTML and PSD]]></category> <category><![CDATA[Websites]]></category> <category><![CDATA[Design]]></category> <category><![CDATA[free]]></category> <category><![CDATA[free psd]]></category> <category><![CDATA[magazine]]></category> <category><![CDATA[Photoshop]]></category> <category><![CDATA[PSD]]></category> <category><![CDATA[the grid]]></category> <category><![CDATA[Web 2.0]]></category><guid isPermaLink="false">http://fearlessflyer.com/?p=468</guid> <description><![CDATA[Another one to give away to my fellow designers looking for a quick way to mock up a website. In this case &#8211; an elementary school. This is one of those contest that ooooh, came sooo close to winning. The contest I refer to are the ones similar to crowdspring and 99designs. Its an entire [...]]]></description> <content:encoded><![CDATA[<p>Another one to give away to my fellow designers looking for a quick way to mock up a website. In this case &#8211; an elementary school. This is one of those contest that ooooh, came sooo close to winning. The contest I refer to are the ones similar to crowdspring and 99designs. Its an entire school district, needing a makeover for their string of websites (like that&#8217;s something new) &#8211; seems that all school websites I encounter need a desperate makeover. The district needed new everything: colors, logos, layout &#8211; it was a big project. The winning design was to lead the way of an entire line of re-branding for their business. So the contest was a big deal; because not only for the cash prize &#8211; but the long needed work that comes with it. Not to mention &#8211; your logos will be plastered in several schools across the country. Regardless, I didn&#8217;t get the job &#8211; so I&#8217;m giving one of my mock ups for free.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/04/elementary3.jpg" alt="elementary3" title="elementary3" width="576" height="1002" class="alignnone size-full wp-image-470" /></p><p>The design uses a base of burgundy and splashes of tan for the color scheme. The icons used are from the coquette collection in <a href="http://smashingmagazine.com">smashingmagazine</a>, while fonts are Georgia and Helvetica Nueu. The file is of high quality, fully layered and grouped. All I ask in return is for you to leave a comment below or follow me in <strong><a href="http://twitter.com/mks6804">Twitter</a></strong>.</p><p><strong>To download &#8211; simply click <a href="http://fearlessflyer.com/downloads/elementary-school.zip">here</a>. </strong>Have fun designing!</p> ]]></content:encoded> <wfw:commentRss>http://fearlessflyer.com/2009/04/free-psd-elementary-school-website/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Free PSD file &#8211; Traffic Home Page</title><link>http://fearlessflyer.com/2009/04/free-psd-file-traffic-home-page/</link> <comments>http://fearlessflyer.com/2009/04/free-psd-file-traffic-home-page/#comments</comments> <pubDate>Mon, 06 Apr 2009 03:10:39 +0000</pubDate> <dc:creator>michael soriano</dc:creator> <category><![CDATA[Freebies]]></category> <category><![CDATA[General]]></category> <category><![CDATA[HTML and PSD]]></category> <category><![CDATA[Photoshop]]></category> <category><![CDATA[Websites]]></category> <category><![CDATA[free]]></category> <category><![CDATA[free psd]]></category> <category><![CDATA[template]]></category><guid isPermaLink="false">http://fearlessflyer.com/?p=403</guid> <description><![CDATA[I have decided to give away my mock ups for clients that didn&#8217;t work out. Since I have a grip of them just taking up space in my hard drive &#8211; I&#8217;ve decided to let the public have it. They are complete layered Photoshop files. The layers are organized into groups, vectors etc. Icons and [...]]]></description> <content:encoded><![CDATA[<p>I have decided to give away my mock ups for clients that didn&#8217;t work out. Since I have a grip of them just taking up space in my hard drive &#8211; I&#8217;ve decided to let the public have it. They are complete layered Photoshop files. The layers are organized into groups, vectors etc. Icons and images used are 100% royalty free, so you don&#8217;t have to worry about that legal stuff. Most of these files are leftovers from design contests in websites such as 99designs and CrowdSpring. In this case, the client was a web analytics software company &#8211; Traffic. They launched a home page contest a while back and this is my entry that didn&#8217;t win. The screen shot below is a preview of how it looks:</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/04/traffichome-page.jpg" alt="traffichome-feature" title="traffichome-feature" class="alignnone size-full wp-image-408" /></p><p>The Traffic Logo is done by another designer which was required to stay intact. <strong>You can download the .psd files from this <a href="http://fearlessflyer.com/downloads/traffic-files.zip">link</a></strong>. Please feel free to comment below or follow me in <strong><a href="http://twitter.com/mks6804">Twitter</a></strong>.</p> ]]></content:encoded> <wfw:commentRss>http://fearlessflyer.com/2009/04/free-psd-file-traffic-home-page/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)

Served from: fearlessflyer.com @ 2010-09-09 11:26:12 -->