<?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>ClarkLab &#187; tutorial</title>
	<atom:link href="http://clarklab.com/tag/tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://clarklab.com</link>
	<description>I try to make things that are awesome</description>
	<lastBuildDate>Thu, 02 Feb 2012 07:51:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-alpha-19719</generator>
		<item>
		<title>Animated Drop Down Menu with jQuery</title>
		<link>http://clarklab.com/posts/animated-drop-down-menu-with-jquery/</link>
		<comments>http://clarklab.com/posts/animated-drop-down-menu-with-jquery/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 01:31:39 +0000</pubDate>
		<dc:creator>clark</dc:creator>
				<category><![CDATA[posts]]></category>
		<category><![CDATA[2.0]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.clarklab.com/blog/?p=116</guid>
		<description><![CDATA[View the effect Drop down menus are a really convient way to fit a large menu into a really small initial space. For a long time people have just used a form element for standard drop downs, but with minimal effort you can create a much slicker effect using jQuery and CSS. Step 1: The [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://clarklab.com/lessons/dropdown/preview.png" alt="preview" width="200" height="200" class="alignright"/></p>
<p style="text-align:right;"><a href="http://clarklab.com/lessons/dropdown/example.html">View the effect</a></p>
<p>Drop down menus are a really convient way to fit a large menu into a really small initial space. For a long time people have just used a form element for standard drop downs, but with minimal effort you can create a much slicker effect using jQuery and CSS.</p>
<p><span id="more-116"></span></p>
<hr />
<h3>Step 1: The HTML</h3>
<p>Before we can do anything, we need to link our CSS file and our jQuery file in the header our of HTML document:</p>
<pre name="code" class="html">&lt;link href=&quot;css/style.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;jsfiles/jquery.js&quot;&gt;&lt;/script&gt;</pre>
<p>These two files will contain our styles and the javascript effect library (duh), but before we can style or animate anything, we need to build the list itself. We are going to use a simple unordered list:</p>
<pre name="code" class="html">&lt;ul class=&quot;menu_body&quot;&gt;
  &lt;li&gt;&lt;a href=&quot;#&quot;&gt;About Us&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Portfolio&lt;/a&gt;&lt;/li&gt;

  &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Clients&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Blog&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Support Forums&lt;/a&gt;&lt;/li&gt;

  &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Gallery&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Contact Us&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</pre>
<p>What we have here is as simple as it looks. We have an unordered list with the class of &quot;menu_body&quot;. Inside we have multiple list items, each containing a navigation link. Next we need to add an image above the list. This image will serve as the list&#8217;s heading an all that is visible when the drop down is collapsed. It doesn&#8217;t have to be an image, this would work exactly the same with text to launch and collapse the menu, I just wanted something visual. If you want to use mine, you can find it <a href="images/navigate.png" target="_blank">here</a>. With the image added we have our complete HTML:</p>
<pre name="code" class="html">&lt;img src=&quot;images/navigate.png&quot; width=&quot;184&quot; height=&quot;32&quot; class=&quot;menu_head&quot; /&gt;

  &lt;ul class=&quot;menu_body&quot;&gt;
  &lt;li&gt;&lt;a href=&quot;#&quot;&gt;About Us&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Portfolio&lt;/a&gt;&lt;/li&gt;

  &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Clients&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Blog&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Support Forums&lt;/a&gt;&lt;/li&gt;

  &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Gallery&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Contact Us&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</pre>
<p>We need to give our image a class name, so we have something to reference by when we start our jQuery. I used the class &quot;menu_head&quot;. Here is what we have so far, a completely unstyled list with an image on top:</p>
<p><img src="http://clarklab.com/lessons/dropdown/1.png" alt="Unstyled List" width="184" height="193" /></p>
<hr />
<h3>Step 2: The CSS</h3>
<p>Next we need to give our list some style. First, lets do our top level styling:</p>
<pre name="code" class="css">body{background:#534741;font-family:Arial, Helvetica, sans-serif; font-size:12px;}
ul, li{margin:0; padding:0; list-style:none;}</pre>
<p>Nothing too comples here, just setting a background color, font, and font size. Also, we are telling the list to have no padding, margin, or bullets. Now our list is just a heading and a neat column of links:</p>
<p><img src="http://clarklab.com/lessons/dropdown/2.png" alt="Some Style" width="184" height="193" /></p>
<p>Now we can style the heading image and each list item. Here is the CSS:</p>
<pre name="code" class="css">
.menu_head{border:1px solid #998675;}
.menu_body {width:184px;border-right:1px solid #998675;border-bottom:1px solid #998675;border-left:1px solid #998675;}
.menu_body li{background:#493e3b;}
.menu_body li a{color:#FFFFFF; text-decoration:none; padding:10px; display:block;}</pre>
<p>Here&#8217;s what we just did. We added a light tan border around the image &quot;menu_head&quot;. On the unordered list &quot;menu_body&quot; we set a width (the same width as our image), and we added a light tan border to every side but the top (there will already be a line there since we have one around our image). We set a background color for each list item and we styled each link. Every link is now white, not underlines, has a nice amount of padding, and is set to a block display (this will make the whole box around the link clickable, not just the text itself).</p>
<p>Here is what our list should look now:</p>
<p><img src="http://clarklab.com/lessons/dropdown/3.png" alt="More Style" width="188" height="282" /></p>
<hr />
<h3>Step 3: The jQuery</h3>
<p>Our first step will be to add the jQuery to tell the list items to alternate their background colors. In the head of your HTML document, add:</p>
<pre name="code" class="js">&lt;script type=&quot;text/javascript&quot;&gt;
$(document).ready(function () {$(&quot;ul.menu_body li:even&quot;).addClass(&quot;alt&quot;);
});

&lt;/script&gt;</pre>
<p>This is a basic jQuery function. When the document is ready, the function will add a special class of &quot;alt&quot; to each alternating row of our list. With the new classes applied, we can add a new CSS rule for the class &quot;alt&quot;</p>
<pre name="code" class="css">.menu_body li.alt{background:#362f2d;}</pre>
<p>Now the rows will alternate between lighter and darker shades of brown, like this:</p>
<p><img src="http://clarklab.com/lessons/dropdown/4.png" alt="Row colors" width="188" height="282" /></p>
<p>Now the the list has the overall look that we want, we can go ahead and completely hide it with CSS. In the CSS rule for &quot;menu_body&quot; add the property &quot;display:none;&quot; like this:</p>
<pre name="code" class="css">.menu_body {display:none; width:184px;border-right:1px solid #998675;border-bottom:1px solid #998675;border-left:1px solid #998675;}</pre>
<p>If you look at the page now, all you should be able to see if the heading image. For now, the menu has seemingly dissappeared. Time to bring it back with jQuery:</p>
<pre name="code" class="js">&lt;script type=&quot;text/javascript&quot;&gt;
$(document).ready(function () {
$(&quot;ul.menu_body li:even&quot;).addClass(&quot;alt&quot;);

$('img.menu_head').click(function () {

$('ul.menu_body').slideToggle('medium');

});
});
&lt;/script&gt;</pre>
<p>We added a new function that runs when the image with the class of &quot;menu_head&quot; is clicked. A click is just one of the <a href="http://docs.jquery.com/Events" target="_blank">events</a> jQuery recognizes. You could also have the function run on mouseover, a key press, or numerous other things. When a click event is registered, jQuery will use the effect slideToggle on the unordered list with the class of &quot;menu_body&quot;. jQuery has a large list of <a href="http://docs.jquery.com/Effects" target="_blank">effects</a> and various effect plugins, there is really no limit on how you can animate the list sliding open and closed. slideToggle allows you to set a speed, I chose medium, but you can also use &quot;fast&quot;, &quot;slow&quot;, or define a number in miliseconds.</p>
<p>The menu should now slide open and closed when you click on the heading image:</p>
<p><img src="http://clarklab.com/lessons/dropdown/5.png" alt="Animation" width="599" height="282" /></p>
<p>You could stop now and have a pretty decent animated menu, but with jQuery its very easy to add simple hover effects. First, we need to add some to our CSS:</p>
<pre name="code" class="css">.menu_body li a:hover{padding:15px 10px; font-weight:bold;}</pre>
<p>This will do two things. When one of our links is hovered over, the padding on the top and bottom will be expanded to 15px (making each rolled over area taller and allowing the shift) and chaning the font weight to bold.</p>
<p>Next we can add some jQuery animation:</p>
<pre name="code" class="js">&lt;script type=&quot;text/javascript&quot;&gt;
$(document).ready(function () {
$(&quot;ul.menu_body li:even&quot;).addClass(&quot;alt&quot;);

$('img.menu_head').click(function () {
$('ul.menu_body').slideToggle('medium');
});

$('ul.menu_body li a').mouseover(function () {
$(this).animate({ fontSize: &quot;14px&quot;, paddingLeft: &quot;20px&quot; }, 50 );
});


});
&lt;/script&gt;</pre>
<p>We&#8217;ve now added a mouseover function, one that runs anytime you mouseover any list item&#8217;s link within our unordered list. The function is set to run on &quot;this&quot; which just means the element will run the function on itself. We are using the jQuery effect <a href="http://docs.jquery.com/Effects/animate#paramsdurationeasingcallback" target="_blank">animate</a>, which allows for many different parameters, along with a duration of time to run them in. We&#8217;ve told the function to change the font size to 14px, change the padding-left to 20px, and to do both things in 50 miliseconds.</p>
<p>At this point, the menu can expand and collapse, and the mouseover effect on the links should be working. Now we just need to tell it to reverse the effect when we mouseoff a link. If we don&#8217;t tell it to reset each animation, the links will &quot;stick&quot; in their new font size and position. We, of course, want each link to snap back to its original position. We can easily do this like so:</p>
<pre name="code" class="js">&lt;script type=&quot;text/javascript&quot;&gt;

$(document).ready(function () {
$(&quot;ul.menu_body li:even&quot;).addClass(&quot;alt&quot;);
$('img.menu_head').click(function () {
$('ul.menu_body').slideToggle('medium');
});

$('ul.menu_body li a').mouseover(function () {
$(this).animate({ fontSize: &quot;14px&quot;, paddingLeft: &quot;20px&quot; }, 50 );

});

$('ul.menu_body li a').mouseout.(function () {
$(this).animate({ fontSize: &quot;12px&quot;, paddingLeft: &quot;10px&quot; }, 50 );
});
});
&lt;/script&gt;</pre>
<p>This is our last bit of jQuery. It is a function that runs whenever you mouseout of a list item&#8217;s link. It will reset the font to the original size (12px), change the padding-left back (to 10px). It will do both things in 50 miliseconds, the same speed as the first half of the animation.
</p>
<p>Your menu should now be fully functional. It should be able to click open and close (in a sliding animation) and each link should animate when touched with the mouse (expanding the height, text size, and left-margin). I purposely tried to keep this menu light on images, but this simple effect is really easy to dress up some. For example, each link&#8217;s hover state could have an image background. Each image could be specific to each section for a really polished, intuituve menu and it would all fit into a small rectangle when not in use.</p>
<p>You can see the finished menu <a href="http://clarklab.com/lessons/dropdown/example.html">here</a>.</p>
<p><a href="http://clarklab.com/lessons/dropdown/animateddropdown.zip">Download the source files</a></p>
<hr style="margin-top:25px;">
<h4>Introducing QuikTab, a premium CMS style WordPress theme</h4>
<p><a href="http://themeforest.net/item/quiktab/19262?ref=clarklab"><img src="http://clarklab.com/lessons/dropdown/quik.jpg" class="alignright"></a>QuikTab is a standards-compliant, one-page theme powered by WordPress and jQuery. You can buy it at <a href="http://themeforest.net/item/quiktab/19262?ref=clarklab">ThemeForest</a> for $12.</p>
]]></content:encoded>
			<wfw:commentRss>http://clarklab.com/posts/animated-drop-down-menu-with-jquery/feed/</wfw:commentRss>
		<slash:comments>371</slash:comments>
		</item>
		<item>
		<title>Photoshop Tutorial: Web 2.0 Layout Basics, From Templamatic</title>
		<link>http://clarklab.com/posts/photoshop-tutorial-another-web-20-layout/</link>
		<comments>http://clarklab.com/posts/photoshop-tutorial-another-web-20-layout/#comments</comments>
		<pubDate>Tue, 15 Apr 2008 02:43:32 +0000</pubDate>
		<dc:creator>clark</dc:creator>
				<category><![CDATA[posts]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[web 2.0]]></category>

		<guid isPermaLink="false">http://www.clarklab.com/blog/?p=78</guid>
		<description><![CDATA[I posted a tutorial over at Templamatic today, and you can read the whole thing in the Templamatic Blog. The tutorial is just a basic walk through explaining important style points of web 2.0 template design. From now on, I will be posting my web design tutorials over at Templamatic, but I&#8217;ll always make a [...]]]></description>
			<content:encoded><![CDATA[<p><a href='http://www.templamatic.com/blog.asp?BlogID=17'><img src="http://www.clarklab.com/blog/wp-content/uploads/2008/04/tut.jpg" alt="" title="tut" width="299" height="230" class="alignright size-full wp-image-79" /></a>I posted a tutorial over at <a href="http://templamatic.com">Templamatic</a> today, and you can read the whole thing in the <a href="http://www.templamatic.com/blog.asp?BlogID=17">Templamatic Blog</a>. The tutorial is just a basic walk through explaining important style points of web 2.0 template design. From now on, I will be posting my web design tutorials over at Templamatic, but I&#8217;ll always make a little alert here to make sure everyone sees it.</p>
]]></content:encoded>
			<wfw:commentRss>http://clarklab.com/posts/photoshop-tutorial-another-web-20-layout/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Photoshop Tutorial: Web 2.0 Layout</title>
		<link>http://clarklab.com/posts/photoshop-tutorial-web-20-layout/</link>
		<comments>http://clarklab.com/posts/photoshop-tutorial-web-20-layout/#comments</comments>
		<pubDate>Sun, 30 Mar 2008 05:31:21 +0000</pubDate>
		<dc:creator>clark</dc:creator>
				<category><![CDATA[posts]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[web 2.0]]></category>

		<guid isPermaLink="false">http://www.clarklab.com/blog/?p=47</guid>
		<description><![CDATA[Despite the fact that its quickly becoming a cliche, the style of web 2.0 still has a lot of nice techniques that are worth learning. This layout utilizes all the big web 2.0 standards: bright colors, gradient fades, drop shadows, and rounded edges. The key to all of these things is mastering selections. It sounds [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.clarklab.com/blog/wp-content/uploads/2008/03/web20.png" alt="" title="web20" width="299" height="230" class="imageright" />Despite the fact that its quickly becoming a cliche, the style of web 2.0 still has a lot of nice techniques that are worth learning. This layout utilizes all the big web 2.0 standards: bright colors, gradient fades, drop shadows, and rounded edges. The key to all of these things is mastering selections. It sounds weird, but the key to good web design with Photoshop is making good selections. Almost every step of this tutorial includes making a selection. </p>
<p><span id="more-47"></span></p>
<p><strong>Note:</strong> This was originally written for <a href="http://psdtuts.com">PSDTuts.com</a>, so that is why it has that title all over it, but here is the effect we are going for:</p>
<p><img src="http://clarklab.com/lessons/web20/13.jpg" width="600" height="360" /></p>
<p>This layout consists of four main sections. The header (the brightly colored top of the page), the sidebar (the narrow left column), the navigation (links to other areas of the site), and the content (where all the good stuff goes). As you make more layouts, you will find almost every page you create will require these same basic sections.</p>
<hr />
<p><strong>Step 1:</strong></p>
<p><img src="http://clarklab.com/lessons/web20/1.png" width="600" height="360" /></p>
<p>First, let me start by saying that for this tutorial, I&#8217;m making sort of a &#8216;mini&#8217; layout. It needs to be small to fit on this page, but when you make yours, make it any size you want, most likely larger. To make things easier, just pretend the examples are the size of a real website. To get started, make a new layer (name it &#8216;White&#8217;), and create a selection with the Rectangle Marquee Tool right in the middle of your workspace. Fill it with white, then double click on the layer to bring up the Blending Options and give it a Drop Shadow with the above settings.</p>
<hr />
<p><strong>Step 2</strong></p>
<p><img src="http://clarklab.com/lessons/web20/2.png" width="600" height="360" /></p>
<p>Still with the Rectangle Marquee Tool, select an area to be the header, and press Delete to remove the selection, leaving a hole through the layer.</p>
<hr />
<p><strong>Step 3:</strong></p>
<p><img src="http://clarklab.com/lessons/web20/3.png" width="600" height="360" /></p>
<p>To create the small rounded edge sidebar, we need to make two new selections. First, with the Elliptical Marquee Tool, make a circle hanging out over the edge of the header section (hold shift to make sure the circle stays perfectly round). Next, switch back to the Rectangular Marquee Tool, and, while holding Shift, select the area from the top of the circle out to the edge of the header area. Its alright if the selections hang over the edges a tiny bit, because now we are going to fill them with white. Your &#8216;White&#8217; layer is now complete.</p>
<hr />
<p><strong>Step 4:</strong></p>
<p><img src="http://clarklab.com/lessons/web20/4.png" width="600" height="360" /></p>
<p>Next, under the &#8216;White&#8217; layer, create a new layer (name it &#8216;Header Color&#8217;). Using the Rectangle Marquee Tool, select an area around the hole. Use the Gradient Tool to fill the selection with a bright bit of color. I chose to use a fade from a bright gold to a orange color. </p>
<hr />
<p><strong>Step 5:</strong></p>
<p><img src="http://clarklab.com/lessons/web20/5.png" width="600" height="360" /></p>
<p>Next we need to make the bright rays in the header. Create a new layer above the &#8216;Header Color&#8217; layer and name it &#8216;Rays.&#8217; We are going to make white rays using the Custom Shape Tool. Find the shape named &#8216;Registration Target 2.&#8217; Since you only need a section of the whole shape, zoom way out (I zoomed out to 25%). Click and drag the shape, covering the whole workspace and most of the document window. Since the header is going to feature a shot of the website, I made the shape a little off center, so the rays will look like they are coming from behind it.</p>
<hr />
<p><strong>Step 6:</strong></p>
<p><img src="http://clarklab.com/lessons/web20/6.png" width="600" height="360" /></p>
<p>Ctrl + Click on the &#8216;Header Color&#8217; layer to select it, then hit Select &gt; Inverse and hit delete, getting rid of the extra rays that filled the image. Lower the opacity down a bit, I chose 20%.</p>
<hr />
<p><strong>Step 7:</strong></p>
<p><img src="http://clarklab.com/lessons/web20/7.png" width="600" height="360" /></p>
<p>Next we need to make a small drop shadow to separate the sidebar area from the content area. Make a new layer above &#8216;White&#8217; and name it &#8216;Shadow.&#8217; Using the Gradient Tool (with a &#8216;Foreground to Transparent&#8217; fade), click and drag from outside the selection into the center. Lower the opacity to 30%, and you should have the main sections of the layout done. We now have a clearly defined header, content, and sidebar area.</p>
<hr />
<p><strong>Step 8:</strong></p>
<p><img src="http://clarklab.com/lessons/web20/8.jpg" width="600" height="360" /></p>
<p>The header area needs an image, and I&#8217;m going to use a shot of the PSDTuts website, but you can use whatever you want. I pasted the screen shot onto a new layer above &#8216;Rays&#8217; and named it &#8216;Website.&#8217; I used Edit &gt; Free Transform to tilt and size down the shot a little bit, then added a thick, low opacity stroke, just to make it stand out a bit.</p>
<hr />
<p><strong>Step 9:</strong></p>
<p><img src="http://clarklab.com/lessons/web20/9.jpg" width="600" height="360" /></p>
<p>Next, with the Type Tool, add in the text layers. For my title text, I added a Gradient Overlay and a Stroke, both of which are found in the Blending Options. With the subtitle text, I dropped the opacity down to 50% to make it fit in a little better.</p>
<hr />
<p><strong>Step 10:</strong></p>
<p><img src="http://clarklab.com/lessons/web20/10.jpg" width="600" height="360" /></p>
<p>Next we need to add in the site&#8217;s navigation. Using the Rectangle Marquee Tool, make a selection around the area of the navigation. Hit Select &gt; Modify &gt; Smooth &gt; 10px. It should round off all the corner, and now you can use the arrow keys to move the selection into place, a little bit up and to the left.</p>
<hr />
<p><strong>Step 11:</strong></p>
<p><img src="http://clarklab.com/lessons/web20/11.jpg" width="600" height="360" /></p>
<p>With practice, making pixel perfect selections by eye get easier, but if you are now, you might want to zoom in a little on this step. Still with the Rectangular Marquee Tool, hold Alt and drag over the top part of the selection. It will remove that part from your selection. Again, do the same thing to the overlap on the left of your selection. Hold Alt, and snip off the little bit of extra. You should have a selection that fits perfectly in the space. </p>
<hr />
<p><strong>Step 12:</strong></p>
<p><img src="http://clarklab.com/lessons/web20/12.jpg" alt="" width="600" height="360" /></p>
<p>Make a new layer named &#8216;Navigation&#8217; (making sure its under the &#8216;Shadow&#8217; layer to give the layout a little more depth). Fill the selection with a light tan, then double click the layer to bring up the Blending Options and add a Gradient Overlay.</p>
<hr />
<p><strong>Step 13:</strong></p>
<p><img src="http://clarklab.com/lessons/web20/13.jpg" alt="" width="600" height="360" /></p>
<p>Using the Type Tool, I added some Navigation links. That&#8217;s pretty much it. Filling in the sidebar and content areas isn&#8217;t really something I can cover in a tutorial, since coming up with content for a site is really up to you, but that&#8217;s the fun part! This simple layout has all the bits that make Web 2.0 a great visual style. Its clean, bright, and looks inviting, and it was made mostly by only creating and filling selections. This method gets easier with practice, so after you finish one, start another. Once you fine tune your skills, its easy to mock up a whole site in just a few minutes.</p>
]]></content:encoded>
			<wfw:commentRss>http://clarklab.com/posts/photoshop-tutorial-web-20-layout/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Photoshop Tutorial &#8211; Drop Shadow Overhang</title>
		<link>http://clarklab.com/posts/photoshop-tutorial-drop-shadow-overhang/</link>
		<comments>http://clarklab.com/posts/photoshop-tutorial-drop-shadow-overhang/#comments</comments>
		<pubDate>Thu, 06 Mar 2008 23:07:44 +0000</pubDate>
		<dc:creator>clark</dc:creator>
				<category><![CDATA[posts]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.clarklab.com/blog/posts/photoshop-tutorial-drop-shadow-overhang/</guid>
		<description><![CDATA[This is a very popular look, and I&#8217;m not sure if it has an official name, so I&#8217;m going to just call it a &#8216;drop shadow overhang&#8217; just because I don&#8217;t know what else to call it. Its basically a bar of color across the top of the page, with a box of white jetting [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://www.clarklab.com/blog/wp-content/uploads/2008/03/overhang.jpg' alt='overhang.jpg' class='imageright' />This is a very popular look, and I&#8217;m not sure if it has an official name, so I&#8217;m going to just call it a &#8216;drop shadow overhang&#8217; just because I don&#8217;t know what else to call it. Its basically a bar of color across the top of the page, with a box of white jetting up over the edge. Its got a web 2.0 look, so its been getting a lot of use.</p>
<p><span id="more-30"></span></p>
<p><strong>Note:</strong> This was originally written for PSDTuts.com, so that is why it has that title all over it, but here is the effect we are going for:</p>
<p><img src="http://www.clarklab.com/lessons/overhang/10.jpg" width="600" height="400" /></p>
<p>The look and techniques used here are very flexible, so this is a good skill to pick up.</p>
<hr />
<p><strong>Step 1:</strong></p>
<p><img src="http://www.clarklab.com/lessons/overhang/1.png" width="600" height="400" /></p>
<p>I&#8217;ve started with a 600&#215;400 space, but if you are doing this for a real website, it should be larger. Create a new layer, and use the Rectangular Marquee Tool to make a selection across the top of the image. Select the Gradient Tool and pick two colors you like that are slightly lighter and darker shades of the same color. I went with a cool blue, but you can use whatever colors you want.</p>
<hr />
<p><strong>Step 2</strong></p>
<p><img src="http://www.clarklab.com/lessons/overhang/2.png" width="600" height="400" /></p>
<p>Click and drag within the selection, and it should fill with a gradient. Holding down Shift while you drag will make sure your resulting gradient is straight. Now we need a pattern to lay over the blue. I made some <a href="pat.gif">diagonal stripes</a> you can use, just open the file in Photoshop, and click Edit &gt; Define Pattern. Now, back in the other file (with the rectangular selection still active) make a new layer, then click Edit &gt; Fill and select your new pattern. If you don&#8217;t like the stripes&#8230; experiment! This is a good step to add a personal touch. Scanlines, pinstripes, and even old looking victorian patterns are popular now.</p>
<hr />
<p><strong>Step 3:</strong></p>
<p><img src="http://www.clarklab.com/lessons/overhang/3.png" width="600" height="400" /></p>
<p>Adjust the opacity of the pattern layer. I dropped mine way down to 15%. Create a new layer, and make a thin selection along the bottom of blue bar, and fill it with black.</p>
<hr />
<p><strong>Step 4:</strong></p>
<p><img src="http://www.clarklab.com/lessons/overhang/4.png" width="600" height="400" />Create a new layer, and use the Rectangular Marquee Tool to make a selection and fill it with white (this will be the main body of our layout).</p>
<hr />
<p><strong>Step 5:</strong></p>
<p><img src="http://www.clarklab.com/lessons/overhang/5.png" width="600" height="400" /></p>
<p>Add a drop shadow to the white layer the Blending Options panel (In the layers palette, double click on the white layer, or right click the white layer and select &#8216;Blending Options&#8217;). Use the settings in the image.</p>
<hr />
<p><strong>Step 6:</strong></p>
<p><img src="http://www.clarklab.com/lessons/overhang/6.png" width="600" height="400" /></p>
<p>Now we need to flatten the Blending Options to change them from being a layer effect to being part of the actual layer. Create a new layer, then CTRL + Click on both layer titles. Now you can merge the two layers (CTRL + E, or click Layer &gt; Merge Down).</p>
<hr />
<p><strong>Step 7:</strong></p>
<p><img src="http://www.clarklab.com/lessons/overhang/7.png" width="600" height="400" /></p>
<p>With your new flattened white layer, click Add Layer Mask at the bottom of the Layers Palette. Select the gradient tool and set your colors to plain black and white.</p>
<hr />
<p><strong>Step 8:</strong></p>
<p><img src="http://www.clarklab.com/lessons/overhang/8.png" width="600" height="400" /></p>
<p>Click and drag to make the bottom half of the white layer fade out. That&#8217;s the basic drop shadow overhang, now its time to turn it into a layout.</p>
<hr />
<p><strong>Step 9:</strong></p>
<p><img src="http://www.clarklab.com/lessons/overhang/9.png" width="600" height="400" /></p>
<p>Add title text with the type tool. I added a reflective effect using the same methods as the overhang. To achieve this, I duplicated the type, hit Edit &gt; Transform &gt; Flip Vertical, placed it underneath, clicked Add Layer Mask in the layers palette, and used the gradient tool to fade off the bottom half. Lower the opacity a bit and you get a nice reflection. See what I mean about this being a flexible technique? Layer masks make it easy to pull off an otherwise complex effect.</p>
<hr />
<p><strong>Final:</strong></p>
<p><img src="http://www.clarklab.com/lessons/overhang/10.jpg" width="600" height="400" /></p>
<p>Add a line of text for a menu, or try something else, maybe buttons or tabs. Fill it with some content and you are on your way to having a finished layout featuring the Drop Shadow Overhang.</p>
]]></content:encoded>
			<wfw:commentRss>http://clarklab.com/posts/photoshop-tutorial-drop-shadow-overhang/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

