<?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>John Hirchak</title>
	<atom:link href="http://www.blog.johnnyjazz.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blog.johnnyjazz.com</link>
	<description>Online Portfolio and Resource Blog</description>
	<lastBuildDate>Thu, 12 Jan 2012 14:54:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>DarkLab Productions Redesign:</title>
		<link>http://www.blog.johnnyjazz.com/2012/01/darklab-productions-redesign/</link>
		<comments>http://www.blog.johnnyjazz.com/2012/01/darklab-productions-redesign/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 21:37:17 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.blog.johnnyjazz.com/?p=341</guid>
		<description><![CDATA[I have redesigned my company website to look super minimalistic. Have a look at http://www.darklabproductions.com]]></description>
			<content:encoded><![CDATA[<div class="mceTemp">
<dl id="attachment_342" class="wp-caption alignnone" style="width: 429px;">
<dt class="wp-caption-dt"><a href="http://www.blog.johnnyjazz.com/2012/01/darklab-productions-redesign/"><img class="size-full wp-image-342" title="DarkLab Productions" src="http://www.blog.johnnyjazz.com/wp-content/uploads/2012/01/darklab-productions-post.png" alt="DarkLab Productions" width="419" height="298" /></a></dt>
</dl>
</div>
<p>I have redesigned my company website to look super minimalistic. Have a look at <a href="http://www.darklabproductions.com">http://www.darklabproductions.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.johnnyjazz.com/2012/01/darklab-productions-redesign/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS: Embedding Fonts with @font-face</title>
		<link>http://www.blog.johnnyjazz.com/2012/01/css-embedding-fonts-with-font-face/</link>
		<comments>http://www.blog.johnnyjazz.com/2012/01/css-embedding-fonts-with-font-face/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 16:37:23 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.blog.johnnyjazz.com/?p=329</guid>
		<description><![CDATA[Here is fast and effective way of embedding fonts into your webpage without having to use graphical images. First we must declare the font: @font-face { font-family: amputa; src: url('amputa.ttf'); } @font-face { font-family: amputa; font-weight: bold; src: url('amputa.ttf'); } Now we are able to call it using &#8220;font-family&#8221; h1 { font-family: amputa, sans-serif; } [...]]]></description>
			<content:encoded><![CDATA[<p>Here is fast and effective way of embedding fonts into your webpage without having to use graphical images.</p>
<h3 class="dottedBorder">First we must declare the font:</h3>
<pre>
@font-face { font-family: amputa; src: url('amputa.ttf'); }
@font-face { font-family: amputa;
font-weight: bold; src: url('amputa.ttf'); }
</pre>
<h3 class="dottedBorder">Now we are able to call it using <em>&#8220;font-family&#8221;</em></h3>
<pre>
h1 { font-family: amputa, sans-serif; }
</pre>
<p><a href="http://www.john-hirchak.com/resources/tutorials/embedding-fonts/" class="big-link" target="_blank">View Results</a></p>
<p>Download the font used in this example:<br />
<a href="http://quiccs.deviantart.com/art/Amputa-Bangiz-Standard-TTF-122444794" target="_blank">Amputa Bangiz Standard TTF</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.johnnyjazz.com/2012/01/css-embedding-fonts-with-font-face/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS: Centering a Div Vertically</title>
		<link>http://www.blog.johnnyjazz.com/2011/12/css-centering-a-div-vertically/</link>
		<comments>http://www.blog.johnnyjazz.com/2011/12/css-centering-a-div-vertically/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 15:18:40 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.blog.johnnyjazz.com/?p=317</guid>
		<description><![CDATA[In order to vertically center a block level element, we need to give it an absolute position. This will detach the element from its surroundings and will allow us to give it a specific position related to the browser window. By offsetting the div by 50% from the top and left, we are positioning upper-left [...]]]></description>
			<content:encoded><![CDATA[<p>In order to vertically center a block level element, we need to give it an <strong><em>absolute</em></strong> position. This will detach the element from its surroundings and will allow us to give it a specific position related to the browser window.</p>
<p>By offsetting the div by 50% from the top and left, we are positioning upper-left corner to the center of the page. The last step is to move the div to the left and top by using half of its dimensions in a negative margin.</p>
<p>For example, if the width of the element is 960px, then set the left margin to -480px. If the height of the element is 600px, then set the top margin to -300px.</p>
<h3 class="dottedBorder">
HTML Structure<br />
</h3>
<pre>
&lt;div id=&quot;main&quot;&gt;
  &lt;div id=&quot;header&quot;&gt; Header &lt;/div&gt;
  &lt;div id=&quot;content&quot;&gt; content &lt;/div&gt;
&lt;/div&gt;
</pre>
<h3 class="dottedBorder">
CSS<br />
</h3>
<pre>
body {
	background: url("bg.gif");
	font-family: Arial, Verdana, sans-serif;
}
#main {
	width: 960px;
	height: 400px;
	background: #f1f1f1;
	text-align: left;
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -200px 0 0 -480px;
}
#header {
	background: #000;
	padding: 10px;
	color: #fff;
}
#content {
	padding: 10px;
}
</pre>
<p><a href="http://www.john-hirchak.com/resources/tutorials/center-div-vertically" target="_blank" class="big-link">Click here for the final result</a></p>
<p><strong>Related Article: <a href="http://www.blog.johnnyjazz.com/2011/11/css-center-a-div-using-absolute-positioning">CSS: Center a Div Using Absolute Positioning</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.johnnyjazz.com/2011/12/css-centering-a-div-vertically/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery: Chaining Multiple Effects With a Fade In</title>
		<link>http://www.blog.johnnyjazz.com/2011/12/jquery-chaining-multiple-effects-with-a-fade-in/</link>
		<comments>http://www.blog.johnnyjazz.com/2011/12/jquery-chaining-multiple-effects-with-a-fade-in/#comments</comments>
		<pubDate>Wed, 07 Dec 2011 16:23:39 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.blog.johnnyjazz.com/?p=280</guid>
		<description><![CDATA[Here is a simple jQuery tutorial that I think many beginners will find useful. I am going to fade in a box while it drops down. This effect seems very easy to do in flash, but to some, it can be a very difficult task to achieve in jQuery. I will also add a subtle [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a simple jQuery tutorial that I think many beginners will find useful. I am going to fade in a box while it drops down. This effect seems very easy to do in flash, but to some, it can be a very difficult task to achieve in jQuery. I will also add a subtle bouncing effect just for fun. </p>
<p><a href="http://www.john-hirchak.com/resources/tutorials/jquery-chaining-animations+fade-in/step4.html" class="big-link marginTop30" target="_blank">Final Results</a><br />
<span id="more-280"></span></p>
<h3 class="dottedBorder">HTML Structure</h3>
<pre>
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
    &lt;head&gt;
        &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot; /&gt;
        &lt;title&gt;John Hirchak - jQuery: Chaining Multiple Effects With a Fade In&lt;/title&gt;
        &lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&quot;&gt;&lt;/script&gt;
        &lt;style type=&quot;text/css&quot;&gt;
            body {
                background: url(&quot;bg.gif&quot;);
                font-family: Arial, Verdana, sans-serif;
                margin-top: 0px;
            }
            #main {
                width: 960px;
                margin: auto;
                background: #f1f1f1;
                text-align: left;
            }
            #header{
                background: #000;
                height: 100px;
                padding: 10px;
                color: #fff;
                position: relative;
            }
            #content {
                padding: 10px;
                height: 500px;
            }
            #footer {
                background: #000;
                height: 40px;
                padding: 10px;
                color: #fff;
            }
            h1 {
                padding: 10px;
                border: 2px dashed #fff;
                background: #333;
                width: 300px;
                position: absolute;
            }
            p {
                width: 100px;
                height: 100px;
                background: red;
            }
            #title {
                top: -50px;
            }
        &lt;/style&gt;
    &lt;/head&gt;

    &lt;body&gt;

        &lt;!-- Begin Wrapper --&gt;
        &lt;div id=&quot;main&quot;&gt;

            &lt;!-- Begin Header --&gt;
            &lt;div id=&quot;header&quot;&gt;

                &lt;h1 id=&quot;title&quot;&gt;Header&lt;/h1&gt;

            &lt;/div&gt;
            &lt;!-- End Header --&gt;

            &lt;!-- Begin Content --&gt;
            &lt;div id=&quot;content&quot;&gt;

            &lt;/div&gt;
            &lt;!-- End Content --&gt;

            &lt;!-- Begin Footer --&gt;
            &lt;div id=&quot;footer&quot;&gt;

                This is the Footer

            &lt;/div&gt;

            &lt;!-- End Footer --&gt;

        &lt;/div&gt;
        &lt;!-- End Wrapper --&gt;

    &lt;/body&gt;
&lt;/html&gt;
</pre>
<h3 class="dottedBorder">jquery Step 1</h3>
<pre>
         &lt;script type=&quot;text/javascript&quot;&gt;
            $(document).ready(function () {
                $(&quot;#title&quot;).animate({top: &quot;+=55&quot;, opacity:1},600);
            });
        &lt;/script&gt;
</pre>
<p>Here we simply grab the #title, and bump it down 84px. The Opacity is already set to 100% and the length of this animation is 1200 milliseconds long.<br />
<a href="http://www.john-hirchak.com/resources/tutorials/jquery-chaining-animations+fade-in/step1.html" class="big-link marginTop30" target="_blank">View jQuery Step 1</a></p>
<h3 class="dottedBorder">jquery Step 2</h3>
<pre>
        &lt;script type=&quot;text/javascript&quot;&gt;
            $(document).ready(function () {
                $(&quot;#title&quot;).animate({opacity:0},1200);
                $(&quot;#title&quot;).animate({top: &quot;+=55&quot;, opacity:1},600);
            });
        &lt;/script&gt;
</pre>
<p>We are now <strong><em>&#8220;chaining&#8221;</em></strong> animation effects together. This method of scripting is very linear, so jQuery will complete one line of the animation at a time. jQuery is fading in #title at 1200 milliseconds before it drops 55px. This is not the effect I was going for, but I am not too far off.<br />
<a href="http://www.john-hirchak.com/resources/tutorials/jquery-chaining-animations+fade-in/step2.html" class="big-link marginTop30" target="_blank">View jQuery Step 2</a></p>
<h3 class="dottedBorder">jQuery Step 3</h3>
<pre>
        &lt;script type=&quot;text/javascript&quot;&gt;
            $(document).ready(function () {
                $(&quot;#title&quot;).animate({opacity:0},0);
                $(&quot;#title&quot;).animate({top: &quot;+=55&quot;, opacity:1},600);
            });
        &lt;/script&gt;
</pre>
<p>The trick is setting the length of line #1&#8242;s animation to 0. This will remove any animation effect for that line and reduce it to a single frame. Your animation will now begin with box that is totally transparent, and it will drop down 55px.<br />
<a href="http://www.john-hirchak.com/resources/tutorials/jquery-chaining-animations+fade-in/step3.html" class="big-link marginTop30" target="_blank">jQuery Step 3</a></p>
<h3 class="dottedBorder">jQuery Step 4</h3>
<pre>
        &lt;script type=&quot;text/javascript&quot;&gt;
            $(document).ready(function () {
                $(&quot;#title&quot;).animate({opacity:0},0);
                $(&quot;#title&quot;).animate({top: &quot;+=55&quot;, opacity:1},600);
                $(&quot;#title&quot;).animate({top: &quot;-=5&quot;},100);
                $(&quot;#title&quot;).animate({top: &quot;+=5&quot;},100);
                $(&quot;#title&quot;).animate({top: &quot;-=3&quot;},200);
            });
        &lt;/script&gt;
</pre>
<p>This step is just to show off what you could do with chaining animations in jQuery.<br />
<a href="http://www.john-hirchak.com/resources/tutorials/jquery-chaining-animations+fade-in/step4.html" class="big-link marginTop25" target="_blank">Final Results</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.johnnyjazz.com/2011/12/jquery-chaining-multiple-effects-with-a-fade-in/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS: Make a Div Height 100% of the Screen</title>
		<link>http://www.blog.johnnyjazz.com/2011/12/css-make-a-div-height-100-of-the-screen/</link>
		<comments>http://www.blog.johnnyjazz.com/2011/12/css-make-a-div-height-100-of-the-screen/#comments</comments>
		<pubDate>Fri, 02 Dec 2011 18:36:19 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[DIV]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.blog.johnnyjazz.com/?p=265</guid>
		<description><![CDATA[Many designers have come across this issue several times in their career. How do you make your div fill up the entire height of your browser window? The answer is very simple, but not so obvious. HTML &#60;div id="main"&#62; &#60;div class="content"&#62; A div thats height is %100 of the screen! &#60;/div&#62; &#60;/div&#62; CSS html { [...]]]></description>
			<content:encoded><![CDATA[<p>Many designers have come across this issue several times in their career. How do you make your div fill up the entire height of your browser window? The answer is very simple, but not so obvious.</p>
<h3 class="dottedBorder">HTML</h3>
<pre>
&lt;div id="main"&gt;
     &lt;div class="content"&gt;
                A div thats height is %100 of the screen!
     &lt;/div&gt;
&lt;/div&gt;
</pre>
<h3 class="dottedBorder">CSS</h3>
<pre>
html {
	height: 100%;
}
body {
	margin: 0;
	padding: 0;
	height: 100%;
	background: url("bg.gif");
	font-family: Arial, Verdana, sans-serif;
}
#main {
	background: #f1f1f1;
	width: 960px;
	margin: auto;
	border-left: 1px solid #000;
	border-right: 1px solid #000;
	padding: 0 10px 0 10px;
	min-height: 100%;
}
.content {
	padding-top: 10px;
}
</pre>
<p><a href="http://www.john-hirchak.com/resources/tutorials/100-percent-height/index.html" class="big-link" target="_blank">Click here for the result</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.johnnyjazz.com/2011/12/css-make-a-div-height-100-of-the-screen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS: Center a Div Using Absolute Positioning</title>
		<link>http://www.blog.johnnyjazz.com/2011/11/css-center-a-div-using-absolute-positioning/</link>
		<comments>http://www.blog.johnnyjazz.com/2011/11/css-center-a-div-using-absolute-positioning/#comments</comments>
		<pubDate>Wed, 02 Nov 2011 15:11:16 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[DIV]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.blog.johnnyjazz.com/?p=243</guid>
		<description><![CDATA[Aligning divs to the center of the page is relatively easy. It&#8217;s just a matter defining its width and setting the left and right margins to &#8220;auto&#8221;. Easy does it. But what happens when your div is using absolute positioning? It won&#8217;t matter if your left and right margins are set to &#8220;auto&#8221;. I have [...]]]></description>
			<content:encoded><![CDATA[<p>Aligning divs to the center of the page is relatively easy. It&#8217;s just a matter defining its width and setting the left and right margins to &#8220;auto&#8221;. Easy does it. But what happens when your div is using absolute positioning? It won&#8217;t matter if your left and right margins are set to &#8220;auto&#8221;. I have found a simple solution that works like a charm!</p>
<h3 class="dottedBorder">HTML structure:</h3>
<pre>
&lt;div id="main"&gt;
    &lt;div id="header"&gt; Header &lt;/div&gt;
    &lt;div id="content"&gt; Body &lt;/div&gt;
    &lt;div id="footer"&gt; Footer &lt;/div&gt;
&lt;/div&gt;
</pre>
<h3 class="dottedBorder">CSS: Positioning the &#8220;main&#8221; div:</h3>
<pre>
#main {
    width: 960px;
    background: #f1f1f1;
    color: #000;
    text-align: left;
    position: absolute;
    top: 0px;
    left: 50%;
    margin-left: -480px;
}
</pre>
<p>The left position is set to 50% so that the div will <em>begin</em> at the <em>center</em> of the screen. The left margin value is -half of the size of the div we are centering. This pushes the div over to the left directly to the exact center of the page. </p>
<p><a href="http://www.john-hirchak.com/resources/tutorials/center-div-absolute/" class="big-link marginBottom5" target="_blank" />Click here for the final result</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.johnnyjazz.com/2011/11/css-center-a-div-using-absolute-positioning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>John-Hirchak.com Has Been Launched</title>
		<link>http://www.blog.johnnyjazz.com/2011/10/john-hirchak-com-has-been-launched/</link>
		<comments>http://www.blog.johnnyjazz.com/2011/10/john-hirchak-com-has-been-launched/#comments</comments>
		<pubDate>Sun, 09 Oct 2011 01:46:16 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.blog.johnnyjazz.com/?p=229</guid>
		<description><![CDATA[My portfolio site has now been launched. Click Here]]></description>
			<content:encoded><![CDATA[<div class="mceTemp">
<dl id="attachment_234" class="wp-caption alignnone" style="width: 429px;">
<dt class="wp-caption-dt"><a title="John Hirchak - Online Portfolio and Resource Blog" href="http://www.john-hirchak.com"><img class="size-full wp-image-234" title="John Hirchak - Online Portfolio and Resource Blog" src="http://www.blog.johnnyjazz.com/wp-content/uploads/2011/10/john-hirchak-post.png" alt="John Hirchak - Online Portfolio and Resource Blog" width="419" height="298" /></a></dt>
<dd class="wp-caption-dd"></dd>
</dl>
</div>
<p>My portfolio site has now been launched. <a href="http://www.john-hirchak.com">Click Here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.johnnyjazz.com/2011/10/john-hirchak-com-has-been-launched/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Photoshop: Creating Favicons Inside Photoshop</title>
		<link>http://www.blog.johnnyjazz.com/2011/10/photoshop-creating-favicons-inside-photoshop/</link>
		<comments>http://www.blog.johnnyjazz.com/2011/10/photoshop-creating-favicons-inside-photoshop/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 18:04:34 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.blog.johnnyjazz.com/?p=219</guid>
		<description><![CDATA[You can create favicons (.ico files) directly inside Photoshop by downloading the appropriate plugin at: http://www.telegraphics.com.au/sw/product/ICOFormat#icoformat]]></description>
			<content:encoded><![CDATA[<div id="attachment_225" class="wp-caption alignnone" style="width: 330px"><a title="Photoshop: Creating Favicons Inside Photoshop" href="http://www.blog.johnnyjazz.com/2011/10/photoshop-creating-favicons-inside-photoshop/"><img class="size-full wp-image-225" title="Photoshop - Create Favicon (.ico) Files" src="http://www.blog.johnnyjazz.com/wp-content/uploads/2011/10/favicon-post.jpg" alt="Photoshop - Create Favicon (.ico) Files" width="320" height="180" /></a><p class="wp-caption-text">Photoshop - Create Favicon (.ico) Files</p></div>
<p>You can create favicons (.ico files) directly inside Photoshop by downloading the appropriate plugin at:<br />
<a href="http://www.telegraphics.com.au/sw/product/ICOFormat#icoformat" target="_blank">http://www.telegraphics.com.au/sw/product/ICOFormat#icoformat</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.johnnyjazz.com/2011/10/photoshop-creating-favicons-inside-photoshop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Development: Creating 404 Error Pages</title>
		<link>http://www.blog.johnnyjazz.com/2011/09/404-error-pages/</link>
		<comments>http://www.blog.johnnyjazz.com/2011/09/404-error-pages/#comments</comments>
		<pubDate>Wed, 28 Sep 2011 17:59:00 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.blog.johnnyjazz.com/?p=175</guid>
		<description><![CDATA[A 404 page is a necessity for any professional website. As files are updated and shuffled around, there is no guarantee that search engines will be up to date with your most latest changes. By creating a 404 page, you are keeping the user experience constant throughout the entire website, even if they happen to [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_177" class="wp-caption alignnone" style="width: 330px"><a title="Web Development: Creating 404 Error Pages" href="http://www.blog.johnnyjazz.com/2011/09/404-error-pages/"><img class="size-full wp-image-177" title="404 Error Tutorial" src="http://www.blog.johnnyjazz.com/wp-content/uploads/2011/09/404-error-tutorial-post.png" alt="404 Error Tutorial" width="320" height="180" /></a><p class="wp-caption-text">404 Error Tutorial</p></div>
<p>A 404 page is a necessity for any professional website. As files are updated and shuffled around, there is no guarantee that search engines will be up to date with your most latest changes. By creating a 404 page, you are keeping the user experience constant throughout the entire website, even if they happen to run across a file or page that is missing. <span id="more-175"></span></p>
<h3 class="dottedBorder">Create HTML/CSS Template</h3>
<p>Once you have built your entire website, copy one of your site&#8217;s pages and call it <em><strong>error.html</strong></em>. Inside this HTML document, change all of the asset&#8217;s (CSS,JS,images,etc) paths to be absolute. This will ensure that your assets will always load, no matter how deep into the directory structure the user goes.</p>
<pre>&lt;link rel="stylesheet" href="http://www.john-hirchak.com/css/reset.css" /&gt;
&lt;a href="http://www.john-hirchak.com/index.php"&gt;Home&lt;/a&gt;
&lt;img src="http://www.john-hirchak.com/images/logo.png" alt="Logo" /&gt;
&lt;script type="text/javascript" src="http://www.john-hirchak.com/js/jquery-1.4.3.min.js"&gt;&lt;/script&gt;</pre>
<h3 class="dottedBorder">Create the .htaccess File</h3>
<p>To those who are unfamiliar with what an <strong><em>.htaccess</em></strong> is, review the following website: <a title="Comprehensive guide to .htaccess" href="http://httpd.apache.org/docs/1.3/howto/htaccess.html" target="_blank">http://httpd.apache.org/docs/1.3/howto/htaccess.html</a></p>
<p>Create a text file called <strong><em>htaccess.txt</em></strong> and add the following lines:</p>
<pre>ErrorDocument 404 /error.html

Options -Indexes</pre>
<p>The first line creates a rule on your web server that routes the user to the error.html page if they have come across a missing page or file.</p>
<p>The second line is responsible for hiding the contents of a directory that does not contain an index or a default file. This prevents users from rummaging through your asset directories</p>
<h3 class="dottedBorder">Rename <strong>htaccess.txt</strong><em> to <strong>.htaccess</strong></em></h3>
<p>We initially created the htaccess file as a .txt, because our computers are able to view and edit these filetypes rather easily. As soon as we rename <em><strong>htaccess.txt</strong></em> to <strong><em>.htaccess</em></strong>, the file now becomes invisible depending on your system&#8217;s settings. It is best to wait until the file has been uploaded to the server before you rename it. This prevents you from having to hide/unhide hidden files constantly. Inside your FTP application, make sure you are able to view hidden files. In FileZilla click on &#8220;<strong><em>Server/Force showing hidden files</em></strong>&#8220;. Now upload the <strong>htaccess.txt</strong><em> file and rename it <strong><em>.htaccess</em></strong>. </em></p>
<p><a class="big-link" href="http://www.john-hirchak.com/this/is/why/we/make/paths/absolute" target="_blank">404 Example:</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.johnnyjazz.com/2011/09/404-error-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS: A Set of Margin and Padding Classes</title>
		<link>http://www.blog.johnnyjazz.com/2011/09/css-a-set-of-margin-and-padding-classes/</link>
		<comments>http://www.blog.johnnyjazz.com/2011/09/css-a-set-of-margin-and-padding-classes/#comments</comments>
		<pubDate>Fri, 23 Sep 2011 14:51:03 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.blog.johnnyjazz.com/?p=149</guid>
		<description><![CDATA[I no longer add margins or padding to block level/inline elements. Instead, I use the following set of classes to space my content vertically. I think this goes perfect with the 960 grid that I am using. Feel free to add more. .marginTop0 { margin-top: 0px; } .marginTop5 { margin-top: 5px; } .marginTop10 { margin-top: 10px; [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_88" class="wp-caption alignnone" style="width: 330px"><a title="CSS: A Set of Margin and Padding Classes" href="http://www.blog.johnnyjazz.com/2011/09/css-a-set-of-margin-and-padding-classes/"><img class="size-full wp-image-88" title="HTML/CSS Tutorial and Resource" src="http://www.blog.johnnyjazz.com/wp-content/uploads/2011/09/html-css-tutorial-post.jpg" alt="HTML/CSS Tutorial and Resource" width="320" height="180" /></a><p class="wp-caption-text">HTML/CSS Tutorial and Resource</p></div>
<p>I no longer add margins or padding to block level/inline elements. Instead, I use the following set of classes to space my content vertically. I think this goes perfect with the 960 grid that I am using. Feel free to add more.<span id="more-149"></span></p>
<pre>.marginTop0 {
    margin-top: 0px;
}
.marginTop5 {
    margin-top: 5px;
}
.marginTop10 {
    margin-top: 10px;
}
.marginTop15 {
    margin-top: 15px;
}
.marginTop20 {
    margin-top: 20px;
}
.marginTop25 {
    margin-top: 25px;
}
.marginTop30 {
    margin-top: 30px;
}
.marginTop50 {
    margin-top: 50px;
}
.marginBottom0 {
    margin-bottom: 0px;
}
.marginBottom5 {
    margin-bottom: 5px;
}
.marginBottom10 {
    margin-bottom: 10px;
}
.marginBottom15 {
    margin-bottom: 15px;
}
.marginBottom20 {
    margin-bottom: 20px;
}
.marginBottom25 {
    margin-bottom: 25px;
}
.marginBottom30 {
    margin-bottom: 30px;
}
.marginBottom50 {
    margin-bottom: 50px;
}
.marginTop10_neg {
    margin-top: -10px;
}
.marginBottom10_neg {
    margin-bottom: -10px;
}
.paddingTop0 {
    padding-top: 0px;
}
.paddingTop10 {
    padding-top: 10px;
}
.paddingBottom0 {
    padding-bottom: 0px;
}
.paddingBottom10 {
    padding-bottom: 10px;
}</pre>
<p>Minimized version</p>
<pre>
.marginTop0 { margin-top: 0px; }
.marginTop5 { margin-top: 5px; }
.marginTop10 { margin-top: 10px; }
.marginTop15 { margin-top: 15px; }
.marginTop20 { margin-top: 20px; }
.marginTop25 { margin-top: 25px; }
.marginTop30 { margin-top: 30px; }
.marginTop50 { margin-top: 50px; }
.marginBottom0 { margin-bottom: 0px; }
.marginBottom5 { margin-bottom: 5px; }
.marginBottom10 { margin-bottom: 10px; }
.marginBottom15 { margin-bottom: 15px; }
.marginBottom20 { margin-bottom: 20px; }
.marginBottom25 { margin-bottom: 25px; }
.marginBottom30 { margin-bottom: 30px; }
.marginBottom50 { margin-bottom: 50px; }
.marginTop10_neg { margin-top: -10px; }
.marginBottom10_neg { margin-bottom: -10px; }
.paddingTop0 { padding-top: 0px; }
.paddingTop10 { padding-top: 10px; }
.paddingBottom0 { padding-bottom: 0px; }
.paddingBottom10 { padding-bottom: 10px; }
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.johnnyjazz.com/2011/09/css-a-set-of-margin-and-padding-classes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

