<?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>Valen Designs &#187; Tutorials</title>
	<atom:link href="http://valendesigns.com/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://valendesigns.com</link>
	<description>Build Market Empower</description>
	<lastBuildDate>Mon, 26 Jul 2010 12:07:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CSS Sliding Doors Gone Wild</title>
		<link>http://valendesigns.com/tutorials/css-sliding-doors-gone-wild/</link>
		<comments>http://valendesigns.com/tutorials/css-sliding-doors-gone-wild/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 03:43:17 +0000</pubDate>
		<dc:creator>Derek Herman</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Navigation]]></category>
		<category><![CDATA[Sliding Doors]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://valendesigns.com/?p=41</guid>
		<description><![CDATA[
There are tons of tutorials on the web these days about how to develop a horizontal navigation menu, but few of them are very reliable across browsers when it comes to their CSS. Undoubtedly you have come across a tutorial that works great in Firefox and the most recent versions of Internet Explorer but if [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://valendesigns.com/wp-content/uploads/2008/07/css-navigation.png" alt="css-navigation" title="css-navigation" width="460" height="50" class="alignnone size-full wp-image-266" /><br />
<span class="large">T</span>here are tons of tutorials on the web these days about how to develop a horizontal navigation menu, but few of them are very reliable across browsers when it comes to their CSS. Undoubtedly you have come across a tutorial that works great in Firefox and the most recent versions of Internet Explorer but if you look at IE6 and below things start to get weird. This tutorial will show you how to create a CSS cross-browser horizontal menu navigation very quickly and easily.</p>
<p>In this tutorial I am going to explain some of the pitfalls and offer you a solution for tabbed navigation that has been tested and will render exactly the same in IE5.5+, Firefox, Opera, Safari and Netscape. We will write only valid CSS level 2.1 for this demonstration. However, where things may be slightly different than other tutorials is the use of a small JavaScript snippet that helps to correct the anchored CSS image hover issue in IE5.5 and IE6. This is to correct the hover state of your tabs and force them to render correctly. The only problem is if the users JavaScript is turned off the hover will not work in those browsers, but it will still look like the tabs above.</p>
<p>A side note, this markup and CSS is designed for the Wordpress CMS and uses its built in CSS classes to define the current active page and show an active state. However, this will work for any CMS or system you currently implement. The only changes that need to be made are anywhere that &#8220;current_page_item&#8221; is used change it to reflect your CSS class (i.e. active). Everything will work just like before but now with your new classes for the currently active page.</p>
<h3>Sliding Doors Gone Wild</h3>
<p>Some of the ideas behind this technique come from Douglas Bowman&#8217;s article on the popular <strong>A List Apart</strong> web site titled &#8220;<a rel="external" href="http://www.alistapart.com/articles/slidingdoors/">Sliding Doors of CSS</a>.&#8221; However, where we differ is with the hover state. Obviously the CSS is different too and I like to think mine is a bit more modern because it allows your tabs to have state change, where as, the original Sliding Doors did not allow anything more than the active tab.</p>
<h3>Semantic Markup</h3>
<p>First you will need to create a .html or .htm file in your favorite editor (I prefer Dreamweaver CS3), then you will create a header <strong>&lt;div&gt; </strong>that will hold your navigation and next add an unordered list <strong>&lt;ul&gt; </strong>to hold the links inside the header. Below you will find the HTML markup for the menu.</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 id=&quot;header&quot;&gt;
  &lt;ul id=&quot;navigation&quot;&gt;
    &lt;li class=&quot;current_page_item&quot;&gt;&lt;a href=&quot;#&quot;&gt;Link&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
&lt;/div&gt;</pre></td></tr></table></div>

<p>You&#8217;ll need to replace the href=&#8221;<strong>#</strong>&#8221; to point to the proper url and change the &#8220;Link&#8221; text to reflect the pages on your site. This simple code will create a very basic navigation list, but completely style free. If you loaded it in your browser you would see a very unattractive bulleted list of links. Don&#8217;t worry we will get to make it look nice in a few more steps.</p>
<h3>The Images</h3>
<p><img src="http://valendesigns.com/wp-content/uploads/2008/07/css-navigation-image-example.png" alt="CSS Navigation Example" title="CSS Navigation Example" width="460" height="500" class="alignnone size-full wp-image-268" /><br />
As you can see here, portions of the images are hidden and only are displayed when the text size is made larger, making the tabs fluid and unbreakable for the most part.</p>
<p>I have included in the zip file an Adobe Photoshop tabs template where you can edit the gradients to match your site so you don’t have to try and rebuild the navigation from scratch, juts edit the color. You will need three images for the navigation to look like the example at the top of the page. Two images for the tabs (left and right), and an image for the navigation background, in this case it is a solid 1&#215;1 pixel to give the navigation a bottom border and still allow the active tab to spill over and cover the border. Basically this will let you create a way to do what we did in our navigation, more about that later.</p>
<p>One more thing about the images before I move on to the CSS, when you save your image files make sure that the left image doesn’t have a transparency. What will happen is the right image will show through behind it and you will loose your rounded edge on the left side. I like to save both the images with a solid background color in that tiny space up in the corners so there isn’t any problems later. And now for the goods!!!</p>
<h3>The CSS</h3>

<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="css" style="font-family:monospace;"><span style="color: #00AA00;">*</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
    <span style="color: #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: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1em</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
body <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">62.5</span>%</span> Verdana<span style="color: #00AA00;">,</span> Arial<span style="color: #00AA00;">,</span> Helvetica<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>These are the basic CSS resets &amp; styles for the wild card &amp; body tags. The font is set to 62.5% to reset it to 10px and allow us to resize things using em&#8217;s where 1.2em would be 12px.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>11
12
13
14
15
16
</pre></td><td 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;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5em</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/border-bottom.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat-x</span> <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>This block of CSS deals with styling the &#8220;header&#8221; division. The navigation is sitting inside of this header so we will set it to position: relative; which allows us to manipulate the the navigation to exactly where we want it down to the pixel. You can change the height to anything you want and the navigation will remain stuck to the bottom. However, if you use &#8220;em&#8221; the height will expand but if you use &#8220;px&#8221; to define the height it will remain constant while everything else expands. The background image is a 1&#215;1 solid pixel that is repeated on the x axis to form a bottom border.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>17
18
19
20
21
22
23
24
25
26
27
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#navigation</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">999</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: #00AA00;">&#125;</span>
<span style="color: #00AA00;">*</span> html <span style="color: #cc00cc;">#navigation</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Targets IE 5.5 only */</span>
    bo\ttom<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Targets IE 6.0 only */</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Now here is where the navigation style starts to take place. We first set position: absolute; to allow us to move our navigation around at will. Since the parent division (header) is relative the absolute position of the navigation is relative to that. Meaning bottom: 0; is the bottom of the header division and not the page. The z-index just make sure that nothing gets in the way of our navigation. We certainly don&#8217;t want something from another element leaking in and not allowing us to click a link. The * html #navigation portion just targets IE6 and 5.5 to set the position, otherwise there would be a crack in the navigation by one pixel in IE5.5. The first rule sets IE5.5 and fixes the problem and the second one sets it back for IE6 so it doesn&#8217;t break that browser.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>28
29
30
31
32
33
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#navigation</span> 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;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</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/right-tab.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Here the <strong>&lt;li&gt; </strong> tag is getting styled. To make the standard vertical list into a horizontal one, we have to float each list item to the left. This will cause the list items to stack horizontally side by side. The margin on the left is to give your tabs some space between them. The background is set to no-repeat with a position that reads right top corner for those interested. The font is set to 15px and not 1.5em&#8217;s to allow browsers to shirk the font as well as expand it.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>34
35
36
37
38
39
40
41
42
43
44
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#navigation</span> li 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;">left</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2.4em</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Targets IE 5.5 only */</span>
    hei\ght<span style="color: #00AA00;">:</span> <span style="color: #933;">1.8em</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* All Other Browsers */</span>
    <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0.7em</span> <span style="color: #933;">1.5em</span> <span style="color: #933;">0em</span> <span style="color: #933;">1.4em</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/left-tab.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #933;"><span style="color: #cc66cc;">0</span>%</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#777</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>This anchor <strong>&lt;a&gt; </strong> tag is floating left and set to block to allow the <strong>&lt;li&gt; </strong> tag to wrap around it and shrink to its size which is set to 1.8em for normal browsers and 2.4em for IE5.5. This has to do with the box model and how padding is handled in IE5.5. It&#8217;s a little out of the scope of this tutorial but rest assured that this make it look the same height as all the other browsers. The padding is top right bottom left and should be pretty self explanatory. It pushes the text into the middle for those who don&#8217;t know.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#navigation</span> li<span style="color: #6666ff;">.current_page_item</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span> <span style="color: #933;">-150px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#navigation</span> li<span style="color: #6666ff;">.current_page_item</span> a <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">0</span>%</span> <span style="color: #933;">-150px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#040404</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">padding-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#navigation</span> li<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#navigation</span> li<span style="color: #6666ff;">.ieHover</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span> <span style="color: #933;">-150px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#navigation</span> li<span style="color: #3333ff;">:hover </span>a<span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#navigation</span> li<span style="color: #6666ff;">.ieHover</span> a <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">0</span>%</span> <span style="color: #933;">-150px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#040404</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>These last set of selectors are mostly to position the tab images during resting, active and hover states. One important thing to note is when the padding on the bottom is set to 1px it will bypass the header image that acts as a bottom border for all the resting tabs and spill the active and hovering tabs beyond the edge of the division by 1px, which is just enough to cover up that bottom border. Everything else is just color or the position of an image. To demonstrate, if the image says 0% -150px it means all the way left and down 150 pixels to the top of the hover portion of the image. The reason the image is one and not two different images for separate states is because two images have a tendency to flicker. If you put the images together and utilize the positioning you can avoid any flickers in your sites images when they hover and it also loads faster.</p>
<h3>The JavaScript</h3>
<p>The only reason for this is to make IE6 and 5.5 hover.Otherwise you will have a menu that doesn&#8217;t change the position of the image and doesn&#8217;t properly function like we want it to. The JavaScript is very small and should go in the head of your document. If you don&#8217;t know what to do, there is a full working version of this menu that you can download below with the JavaScript implemented properly.</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
</pre></td><td 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>
<span style="color: #009966; font-style: italic;">/* &lt;![CDATA[ */</span>
ieHover <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> ieReplace <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;navigation&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;li&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> i<span style="color: #339933;">&lt;</span>ieReplace.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	    ieReplace<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">onmouseover</span><span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	        <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">className</span><span style="color: #339933;">+=</span><span style="color: #3366CC;">&quot; ieHover&quot;</span><span style="color: #339933;">;</span>
	    <span style="color: #009900;">&#125;</span>
	ieReplace<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">onmouseout</span><span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	    <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">className</span><span style="color: #339933;">=</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">className</span>.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">new</span> RegExp<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot; ieHover<span style="color: #000099; font-weight: bold;">\\</span>b&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>window.<span style="color: #660066;">attachEvent</span><span style="color: #009900;">&#41;</span> window.<span style="color: #660066;">attachEvent</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;onload&quot;</span><span style="color: #339933;">,</span> ieHover<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009966; font-style: italic;">/* ]]&gt; */</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<h3>The Wrap Up &amp; Download</h3>
<p>So hopefully you read the post and found it interesting and are now downloading the files so you can edit the .psd file and change your colors and get started playing with your new menu. And hopefully you didn&#8217;t just skip my whole article and go straight for the goods. Anyhow, I hope this was informative and can solve a problem you were facing with your navigation. I know this is years of experience all wrapped up in a little neat little zip file all completed and ready to use, but me personally, I would miss getting my hands dirty. Anyhow, have fun and let me know if you launch a site using this navigation, I would enjoy seeing your take on it.<br />
<ul class="notebook-file"><li><a title="Download File" href="http://valendesigns.com/downloads/css-sliding-doors-gone-wild.zip">Download Files</a></li></ul> <h3>Donations</h3><ul class="notebook-donate"><li>Make a <a class="donateLink" href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=accounts@valendesigns.com&item_name=Donation+for+Code+Snippet" rel="external">donation</a> and help keep the awesomeness flowing.</li></ul> <h3>Disclaimer</h3><div class="disclaimer"><p>Valen Designs grants you a nonexclusive copyright license to use all programming code examples from which you can generate similar function tailored to your own specific needs.</p> <p>Valen Designs, cannot guarantee or imply reliability, serviceability, or function of these programs.</p> <p>All programs contained herein are provided to you "AS IS" without any warranties of any kind. The implied warranties of non-infringement, merchantability and fitness for a particular purpose are expressly disclaimed.</p></div></p>
]]></content:encoded>
			<wfw:commentRss>http://valendesigns.com/tutorials/css-sliding-doors-gone-wild/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>E-Book Cover Tutorial</title>
		<link>http://valendesigns.com/tutorials/e-book-cover-tutorial/</link>
		<comments>http://valendesigns.com/tutorials/e-book-cover-tutorial/#comments</comments>
		<pubDate>Thu, 21 Feb 2008 23:13:22 +0000</pubDate>
		<dc:creator>Derek Herman</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[e-book]]></category>
		<category><![CDATA[Graphic Design]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://valendesigns.com/?p=25</guid>
		<description><![CDATA[This Adobe Photoshop tutorial demonstrates how to convert a simple, flyer-style 2D image into an impressive 3D e-book cover. This is a very easy process and will take approximately 5-20 minutes depending on your cover art and how intricate you want to make it look.
1) Start with the artwork for the cover. Open a new [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://valendesigns.com/wp-content/uploads/2008/02/book-example.jpg" alt="book-example" title="book-example" width="460" height="150" class="alignnone size-full wp-image-276" />This Adobe Photoshop tutorial demonstrates how to convert a simple, flyer-style 2D image into an impressive 3D e-book cover. This is a very easy process and will take approximately 5-20 minutes depending on your cover art and how intricate you want to make it look.</p>
<p><strong>1) </strong>Start with the artwork for the cover. Open a new file and set the image size in Adobe Photoshop to 510×592 pixels and design a beautiful cover for your book. Don’t worry, we will be going from the flyer to the e-book in a few quick and painless steps.</p>
<p><strong>Note:</strong> the spine should be roughly 75-80 pixels wide. Once you have finished your e-book cover art, move on to the next step.</p>
<p><strong>2) </strong>Open the ebookoutline.psd (download the source file below). The layers are separate and the colors can be changed to suit your e-book cover art by selecting a layer, double clicking it and changing the Color Overlay in the Layer Styles menu.<em> Note: if you don’t have the layers panel open you can open it by clicking (F7) or going to Window -&gt; Layers</em></p>
<p><img src="http://valendesigns.com/wp-content/uploads/2008/02/outlinetop.jpg" alt="E-Book Example Top" title="E-Book Example Top" width="460" height="150" class="alignnone size-full wp-image-278" /></p>
<p><strong>3) </strong>Now that you have a finished cover you need to flatten the image temporarily so you can Cut &amp; Paste the finished cover for your book into the ebookoutline.psd. After you paste the cover there, undo the image flatten so you can still edit the cover later. Next, cut the left part of your art work using the marquee tool and paste in back into the ebookoutline.psd. Name it <strong>Spine </strong>in the layers panel and name the right side <strong>Cover</strong>.</p>
<p><img src="http://valendesigns.com/wp-content/uploads/2008/02/top-marquee.jpg" alt="E-Book Marquee Top" title="E-Book Marquee Top" width="460" height="150" class="alignnone size-full wp-image-280" /></p>
<p><strong>4) </strong>Next, align the Spine &amp; Cover layers with the bottom right (Spine) and bottom left (Cover) corners touching where the spine meets the cover. Then, go to Edit -&gt; Transform -&gt; Distort. Left click and drag the <em>Top Right</em> corner to distort the image. Then proceed to <em>Top Left</em> and Bottom corners using the same steps.</p>
<p><img src="http://valendesigns.com/wp-content/uploads/2008/02/edit-distort.jpg" alt="E-Book Edit Distort" title="E-Book Edit Distort" width="460" height="150" class="alignnone size-full wp-image-281" /></p>
<p>You’re all finished. Enjoy your new e-book.<br />
<ul class="notebook-file"><li><a title="Download File" href="http://valendesigns.com/downloads/ebookoutline.psd">Download E-Book Outline PSD</a></li></ul> <h3>Donations</h3><ul class="notebook-donate"><li>Make a <a class="donateLink" href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=accounts@valendesigns.com&item_name=Donation+for+Code+Snippet" rel="external">donation</a> and help keep the awesomeness flowing.</li></ul> <h3>Disclaimer</h3><div class="disclaimer"><p>Valen Designs grants you a nonexclusive copyright license to use all programming code examples from which you can generate similar function tailored to your own specific needs.</p> <p>Valen Designs, cannot guarantee or imply reliability, serviceability, or function of these programs.</p> <p>All programs contained herein are provided to you "AS IS" without any warranties of any kind. The implied warranties of non-infringement, merchantability and fitness for a particular purpose are expressly disclaimed.</p></div></p>
]]></content:encoded>
			<wfw:commentRss>http://valendesigns.com/tutorials/e-book-cover-tutorial/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

