<?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>Endigo Design &#187; Coding</title>
	<atom:link href="http://www.endigodesign.com/category/coding/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.endigodesign.com</link>
	<description>Modern Web Design by &#60;em&#62;Chris Simmons&#60;/em&#62;.</description>
	<lastBuildDate>Tue, 19 Oct 2010 23:59:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>HTML5 Sticky Footer</title>
		<link>http://www.endigodesign.com/2010/07/html5-sticky-footer/</link>
		<comments>http://www.endigodesign.com/2010/07/html5-sticky-footer/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 20:55:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://www.endigodesign.com/?p=356</guid>
		<description><![CDATA[You may or may not be familiar with this technique but you have most likely seen it in action at some point or another. The sticky footer allows you to create a CSS footer that attaches itself to the bottom of your screen...]]></description>
			<content:encoded><![CDATA[<h3>Introduction</h3>
<p>You may or may not be familiar with this technique but you have most likely seen it in action at some point or another. The sticky footer allows you to create a CSS footer that attaches itself to the bottom of your screen yet is smart enough not to overlap your page content.</p>
<p><a title="View Ryan's Website" href="http://ryanfait.com/resources/footer-stick-to-bottom-of-page/" target="_blank">Ryan Fait</a> provides a great tutorial for using this method but has unfortunately not updated his tutorial with an HTML5 version. I was planning on updating this for my own personal use but decided to share it on here as well. So here&#8217;s the effect in action:</p>
<p><a class="button" href="http://www.endigodesign.com/wp-content/themes/endigo/demos/demo_html5stickyborder.html" target="_blank">View The Demo</a></p>
<h3>Getting Started</h3>
<p>Let&#8217;s start off by taking a look at the code.</p>
<p><strong>CSS</strong></p>
<pre class="brush: css; title: ;">
&lt;style type=&quot;text/css&quot;&gt;
	* {margin: 0;}
	html, body {height: 100%;}
	#wrap {
		min-height: 100%;
		height: auto !important;
		height: 100%;
		margin: 0 auto -100px; /* Set footer height. */
	}
	footer, .push {
		height: 100px; /* Set footer height. */
		/* clear: both; */ /* Muti-column fix.*/
	}
	footer {background: blue;}
&lt;/style&gt;
</pre>
<p><strong>HTML5</strong></p>
<pre class="brush: xml; title: ;">
&lt;!DOCTYPE HTML&gt;
&lt;html lang=&quot;en-US&quot;&gt;
&lt;head&gt;
	&lt;title&gt;HTML 5 Sticky Footer&lt;/title&gt;
	&lt;meta charset=&quot;UTF-8&quot;&gt;
&lt;/head&gt;
&lt;body&gt;

    &lt;div id=&quot;wrap&quot;&gt;
        &lt;!--Page content here...--&gt;
        &lt;div class=&quot;push&quot;&gt;&lt;!--Sticky Footer Push--&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;footer&gt;
        &lt;!--Footer content here...--&gt;
    &lt;/footer&gt;

&lt;/body&gt;
&lt;/html&gt;
</pre>
<h3>How it Works</h3>
<p>So what is happening here? We have created some basic markup that is split into two main sections, the <strong>wrap</strong> and the <strong>footer</strong>. Inside the wrap we have a div with the class of <strong>push</strong>. Simple enough so far. The magic really happens in the CSS where we set a negative bottom margin that matches  the values of our push and footer heights (note: this must include border and padding height as well!).</p>
<h3>Final Thoughts</h3>
<p>I will warn you to avoid setting a top margin on your footer, instead set the padding using your wrap tag instead. You may also notice that footer works fine without  <code><strong>height:auto !important;</strong></code><strong> </strong>and<strong> </strong><code><strong>height: 100%;</strong> As Ryan notes these are added simply as a min-height fix for IE6. If you are not targeting that browser you are free to remove those lines.</code></p>
<p><a class="button" href="http://www.endigodesign.com/wp-content/themes/endigo/demos/demo_html5stickyborder.html" target="_blank">View The Demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.endigodesign.com/2010/07/html5-sticky-footer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Learn how to use CSS3 Keyframe Animation</title>
		<link>http://www.endigodesign.com/2010/06/learn-how-to-use-css3-keyframe-animation/</link>
		<comments>http://www.endigodesign.com/2010/06/learn-how-to-use-css3-keyframe-animation/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 01:18:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://www.endigodesign.com/?p=240</guid>
		<description><![CDATA[If your viewing my site using a Webkit based browser such as Google Chrome or Apple Safari you may have noticed the subtle animated glow effect I use on the borders image links when you hover over them...]]></description>
			<content:encoded><![CDATA[<h3><span style="font-weight: normal;">Introduction</span></h3>
<p>If your viewing my site using a Webkit based browser such as Google Chrome or Apple Safari you may have noticed the subtle animated glow effect I use on the borders image links when you hover over them. Here&#8217;s a couple screenshots showing the effect:</p>
<p style="text-align: center;"><img class="aligncenter" src="http://www.endigodesign.com/wp-content/uploads/2010/06/css3_keyframe001.jpg" alt="" /></p>
<p>I have accomplished this using the awesome <strong>@-webkit-keyframes</strong> tag being introduced in the CSS3 spec. Anyone that has ever created an animated gif or used programs like Adobe Flash will immediately understand the advantage keyframes bring to animation by allowing multiple stages of changes within a set amount of time.</p>
<h3><span style="font-weight: normal;">Getting Started</span></h3>
<p>Here is what it looks like in practice, please note the comments.</p>
<pre class="brush: css; title: ;">.gallery li div:hover {
	/* Give your animation a custom name */
	-webkit-animation-name: border-animation;

	/* Set the duration, s = seconds */
	-webkit-animation-duration: 2s;

	/* How many times the animation to repeat */
	-webkit-animation-iteration-count: infinite;

	/* Several options available, use linear for this example */
	-webkit-animation-timing-function: linear;
}
/* This is the keyframe tag + custom animation name (assigned above) */
@-webkit-keyframes border-animation {
	/* Below are when each frame takes place, 50% of a 2 second duration would be 1 second or half way through the animation. */
	0% {border: 5px solid #e7eeed;}
	50% {
		border: 5px dashed #fff9b2;
		-webkit-box-shadow: 0px 0px 12px #fff9b2;
		-moz-box-shadow: 0px 0px 12px #fff9b2;
		box-shadow: 0px 0px 12px #fff9b2;
 	}
	100% {border: 5px solid #e7eeed;}
} /* &lt;--- Small syntax highlighting error here */</pre>
<p>So here&#8217;s what my custom border-animation effect does: It has the typical 5px sized light blue border, then when moused over for 1 second (50% of a 2 second duration) fades to a light yellow border with a slight CSS3 box shadow which appears as a glow effect, finally one second later returns to it&#8217;s original state. As long as you hover over the selected elements the effect will repeat forever.</p>
<h3><span style="font-weight: normal;">Final Thoughts</span></h3>
<p>One final note I might point out you will notice from my code above. Most IDE&#8217;s with syntax highlighting do not yet recognize the extra curly brackets needed for the @-webkit-keyframes tag when specifying your keyframes. In Dreamweaver for example the last curly bracket is shown in a red color rather then the normal pink. See an example below:</p>
<p style="text-align: center;"><img class="aligncenter" src="http://www.endigodesign.com/wp-content/uploads/2010/06/css3_keyframe003.jpg" alt="" /></p>
<p>For now it helps to add a comment to help remind yourself that this is intentional, I am sure this would most likely return an error if you tried to validate your code but that&#8217;s part of the game when your working with bleeding edge code specs!</p>
<p><em>Additional Notes: You can view some details about CSS3 animation with the </em><a href="http://webkit.org/blog/324/css-animation-2/" target="_blank"><em>Webkit.org CSS3 Animation Guide</em></a><em>. For the time being I am focusing on Webkit&#8217;s implementation of this effect using the proprietary -webkit- at the beginning of the tag since it is the only browser to my knowledge that can use the tag at the time of publishing this article. Opera is starting to support basic animations using -o- and Mozilla will soon start supporting animations using -moz- with their upcoming 3.7 release of Firefox. Microsoft is pushing for greater support of standards with their Internet Explorer 9 which may or may not include animation support.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.endigodesign.com/2010/06/learn-how-to-use-css3-keyframe-animation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

