<?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>J.P. McGarrity.com &#187; css/html</title>
	<atom:link href="http://jpmcgarrity.com/blog/category/csshtml/feed/" rel="self" type="application/rss+xml" />
	<link>http://jpmcgarrity.com/blog</link>
	<description>Focusing on the Front End</description>
	<lastBuildDate>Sat, 30 Apr 2011 16:40:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>JavaScript Event Listener with CSS3 Webkit Animations</title>
		<link>http://jpmcgarrity.com/blog/2011/03/javascript-event-listener-with-css3-webkit-animations/</link>
		<comments>http://jpmcgarrity.com/blog/2011/03/javascript-event-listener-with-css3-webkit-animations/#comments</comments>
		<pubDate>Sun, 13 Mar 2011 07:10:46 +0000</pubDate>
		<dc:creator>J.P.</dc:creator>
				<category><![CDATA[CSS 3]]></category>
		<category><![CDATA[IOS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[css/html]]></category>

		<guid isPermaLink="false">http://jpmcgarrity.com/blog/?p=743</guid>
		<description><![CDATA[CSS3 has a property called &#8220;webkitAnimationEnd&#8221; which can be used as an event lister in JavaScript.
function cssAnimationEnd() {
	//looks for the ID box from the css and fires the event listen when the animation is complete.
    box.addEventListener( 'webkitAnimationEnd', function( event ){
		alert( "Finished animation!" );
	}, false );
}
Working with event listers like this it is [...]]]></description>
			<content:encoded><![CDATA[<p>CSS3 has a property called &#8220;webkitAnimationEnd&#8221; which can be used as an event lister in JavaScript.</p>
<p><code>function cssAnimationEnd() {<br />
	//looks for the ID box from the css and fires the event listen when the animation is complete.<br />
    box.addEventListener( 'webkitAnimationEnd', function( event ){<br />
		alert( "Finished animation!" );<br />
	}, false );<br />
}</code></p>
<p>Working with event listers like this it is possible to chain CSS animations. This is a great method to use on IOS devices to improve animation frames compared to only working wth JavaScript.</p>
]]></content:encoded>
			<wfw:commentRss>http://jpmcgarrity.com/blog/2011/03/javascript-event-listener-with-css3-webkit-animations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Transform Tool</title>
		<link>http://jpmcgarrity.com/blog/2011/03/css-transform-tool/</link>
		<comments>http://jpmcgarrity.com/blog/2011/03/css-transform-tool/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 19:35:15 +0000</pubDate>
		<dc:creator>J.P.</dc:creator>
				<category><![CDATA[CSS 3]]></category>
		<category><![CDATA[css/html]]></category>
		<category><![CDATA[css/xhtml]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://jpmcgarrity.com/blog/?p=701</guid>
		<description><![CDATA[
Here is a rough proof of concept demo I created to show the CSS3 transform property.
Click here to see demo
]]></description>
			<content:encoded><![CDATA[<p><img src="http://jpmcgarrity.com/blog/wp-content/uploads/2011/03/transfrom.png" alt="transfrom" title="transfrom" width="328" height="405" class="alignnone size-full wp-image-702" /><br />
Here is a rough proof of concept demo I created to show the CSS3 transform property.</p>
<p><a href="http://jpmcgarrity.com/examples/css/transform/transform.html">Click here to see demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jpmcgarrity.com/blog/2011/03/css-transform-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pseudo Elements :before and :after with CSS 2.1</title>
		<link>http://jpmcgarrity.com/blog/2011/03/pseudo-elements-before-and-after-with-css-2-1/</link>
		<comments>http://jpmcgarrity.com/blog/2011/03/pseudo-elements-before-and-after-with-css-2-1/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 13:10:43 +0000</pubDate>
		<dc:creator>J.P.</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[css 2.1]]></category>
		<category><![CDATA[css/html]]></category>
		<category><![CDATA[css/xhtml]]></category>

		<guid isPermaLink="false">http://jpmcgarrity.com/blog/?p=698</guid>
		<description><![CDATA[Here is a quick example of how to use Pseudo elements &#8220;:before&#8221; and &#8220;:after&#8221; with css.
			li{
				display:block;
			}
			li:before{
				content:"This is red from :before";
				color:red;
			}
			li:after{
				content:"This is blue from after";
				color:blue;
			}
Click here for the demo page
]]></description>
			<content:encoded><![CDATA[<p>Here is a quick example of how to use Pseudo elements &#8220;:before&#8221; and &#8220;:after&#8221; with css.<br />
<code>			li{<br />
				display:block;<br />
			}<br />
			li:before{<br />
				content:"This is red from :before";<br />
				color:red;<br />
			}<br />
			li:after{<br />
				content:"This is blue from after";<br />
				color:blue;<br />
			}</code></p>
<p><a href="http://jpmcgarrity.com/examples/css/pseudo/pseudoBeforeAfter.html">Click here for the demo page</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jpmcgarrity.com/blog/2011/03/pseudo-elements-before-and-after-with-css-2-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pseudo CSS first-child, last-child</title>
		<link>http://jpmcgarrity.com/blog/2010/09/pseudo-css-first-child-last-child/</link>
		<comments>http://jpmcgarrity.com/blog/2010/09/pseudo-css-first-child-last-child/#comments</comments>
		<pubDate>Sun, 26 Sep 2010 04:24:46 +0000</pubDate>
		<dc:creator>J.P.</dc:creator>
				<category><![CDATA[CSS 3]]></category>
		<category><![CDATA[css 2.1]]></category>
		<category><![CDATA[css/html]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://jpmcgarrity.com/blog/?p=626</guid>
		<description><![CDATA[In CSS 2.1 the &#8220;first-child&#8221; and CSS 3 adds &#8220;last-child&#8221; pseudo-class implementation. These allow for specific stlyes to be added to beginning and ending elements. This can be extremely helpful for navigation and other common list types. The one draw back of using these pseudo-classes is ie6 will not support them. Here is a short [...]]]></description>
			<content:encoded><![CDATA[<p>In CSS 2.1 the &#8220;first-child&#8221; and CSS 3 adds &#8220;last-child&#8221; pseudo-class implementation. These allow for specific stlyes to be added to beginning and ending elements. This can be extremely helpful for navigation and other common list types. The one draw back of using these pseudo-classes is ie6 will not support them. Here is a short script that can been used in the head of a page to support ie6.<br />
<br />
<code>		$(document).ready(function() {<br />
			$('li:first-child').addClass('first-child');<br />
			$('li:last-child').addClass('last-child');<br />
		});</code><br />
<br />
In CSS 3 &#8220;:nth-child(N)&#8221; was added. <a href="http://reference.sitepoint.com/css/pseudoclass-nthchild">Here</a> is a great read on SitePoint with examples of &#8220;:nth-child(N)&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://jpmcgarrity.com/blog/2010/09/pseudo-css-first-child-last-child/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS3 Gradient Code Generator</title>
		<link>http://jpmcgarrity.com/blog/2010/09/css3-gradient-code-generator/</link>
		<comments>http://jpmcgarrity.com/blog/2010/09/css3-gradient-code-generator/#comments</comments>
		<pubDate>Sun, 12 Sep 2010 04:44:57 +0000</pubDate>
		<dc:creator>J.P.</dc:creator>
				<category><![CDATA[CSS 3]]></category>
		<category><![CDATA[coding tool]]></category>
		<category><![CDATA[css/html]]></category>
		<category><![CDATA[html5]]></category>

		<guid isPermaLink="false">http://jpmcgarrity.com/blog/?p=623</guid>
		<description><![CDATA[
Checkout the CCS gradient code generator I created this morning.
Click Here
]]></description>
			<content:encoded><![CDATA[<p><img src="http://jpmcgarrity.com/blog/wp-content/uploads/2010/09/css3Generator1.jpg" alt="css3Generator" title="css3Generator" width="675" height="402" class="aligncenter size-full wp-image-624" /></p>
<p>Checkout the CCS gradient code generator I created this morning.</p>
<p><a href="/examples/html5/gradientCreator.html">Click Here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jpmcgarrity.com/blog/2010/09/css3-gradient-code-generator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Adjacent Sibling Combinators With Text</title>
		<link>http://jpmcgarrity.com/blog/2009/08/css-adjacent-sibling-combinators-with-text/</link>
		<comments>http://jpmcgarrity.com/blog/2009/08/css-adjacent-sibling-combinators-with-text/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 21:59:09 +0000</pubDate>
		<dc:creator>J.P.</dc:creator>
				<category><![CDATA[css/html]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css text]]></category>
		<category><![CDATA[sibling combinators]]></category>

		<guid isPermaLink="false">http://jpmcgarrity.com/blog/?p=538</guid>
		<description><![CDATA[
Here is a short and sweet post demonstrating the use of adjacent sibling combinators with text is an easy way to work with unique spacing with headers and copy in general.
Basic Example Code
h1 + p{
 padding:20px 0 0;
}
h2 + p{
  padding:0px 0 0;
	}
h3 + p{
 padding:0px 0 0;
}
Here is a link with 3 different [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://jpmcgarrity.com/blog/wp-content/uploads/2009/08/siblings_011.jpg" alt="siblings_01" title="siblings_01" width="611" height="404" class="aligncenter size-full wp-image-549" /><br />
Here is a short and sweet post demonstrating the use of adjacent sibling combinators with text is an easy way to work with unique spacing with headers and copy in general.</p>
<p>Basic Example Code<br />
<code>h1 + p{<br />
 padding:20px 0 0;<br />
}<br />
h2 + p{<br />
  padding:0px 0 0;<br />
	}<br />
h3 + p{<br />
 padding:0px 0 0;<br />
}</code></p>
<p><a href="http://jpmcgarrity.com/examples/css/sibling_combinators/">Here</a> is a link with 3 different headers and style demoing how convenient this approach is.</p>
<p>Eaching header has a unique spacing when followed by a &lt;p/&gt; tag.</p>
]]></content:encoded>
			<wfw:commentRss>http://jpmcgarrity.com/blog/2009/08/css-adjacent-sibling-combinators-with-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML 5 Wordpress Theme (Naked)</title>
		<link>http://jpmcgarrity.com/blog/2009/07/html-5-wordpress-theme-naked/</link>
		<comments>http://jpmcgarrity.com/blog/2009/07/html-5-wordpress-theme-naked/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 20:07:53 +0000</pubDate>
		<dc:creator>J.P.</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[css/html]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[wordpress theme]]></category>

		<guid isPermaLink="false">http://jpmcgarrity.com/blog/?p=399</guid>
		<description><![CDATA[
Here is an updated version of the Naked Wordpress theme to support HTML5.
Wordpress Naked has been put together by us as a simple Wordpress theme to assist developers that need to quickly implement a blog using Wordpress but don&#8217;t really have the time to spend looking under the hood in any detail or reading documentation [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-402" title="naked" src="http://jpmcgarrity.com/blog/wp-content/uploads/2009/07/naked1.jpg" alt="naked" width="630" height="254" /></p>
<p>Here is an updated version of the Naked Wordpress theme to support HTML5.</p>
<blockquote><p><strong>Wordpress Naked</strong> has been put together by us as a simple <strong>Wordpress theme</strong> to assist developers that need to quickly implement a blog using <a href="http://wordpres.org/">Wordpress</a> but don&#8217;t really have the time to spend looking under the hood in any detail or reading documentation when it comes to applying a custom theme (e.g. their clients&#8217; design).</p></blockquote>
<p>Find out more about the <a href="http://www.siftware.co.uk/services/wordpress/blank-wordpress-theme/">original theme</a>.</p>
<p><a href="http://jpmcgarrity.com/blog/wp-content/uploads/2009/07/naked_html5.zip">Download HTML5 Theme</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jpmcgarrity.com/blog/2009/07/html-5-wordpress-theme-naked/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>HTML 5 Bundle For Textmate</title>
		<link>http://jpmcgarrity.com/blog/2009/07/html-5-bundle-for-textmate/</link>
		<comments>http://jpmcgarrity.com/blog/2009/07/html-5-bundle-for-textmate/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 20:50:01 +0000</pubDate>
		<dc:creator>J.P.</dc:creator>
				<category><![CDATA[applications]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[css/html]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[textmate bundle]]></category>

		<guid isPermaLink="false">http://jpmcgarrity.com/blog/?p=395</guid>
		<description><![CDATA[
Here is a download to the HTML 5 Bundle I have started for Textmate. This is my first attempt at creating a bundle from scratch please provide feedback and requests and I will add them.
Download Here
Update 7/19/2009

Updated 3/21/2010
Added localStorage Snippets
The bundle has also been uploaded to Github.
View Repository 

]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-396" title="html5_bundle_icon1" src="http://jpmcgarrity.com/blog/wp-content/uploads/2009/07/html5_bundle_icon11.gif" alt="html5_bundle_icon1" width="264" height="144" /></p>
<p>Here is a download to the HTML 5 Bundle I have started for Textmate. This is my first attempt at creating a bundle from scratch please provide feedback and requests and I will add them.</p>
<p><a title="html 5 bundle" href="http://jpmcgarrity.com/downloads/HTML5.tmbundle.zip">Download Here</a></p>
<p><strong>Update 7/19/2009<br />
</strong></p>
<p><strong>Updated 3/21/2010</strong><br />
Added localStorage Snippets</p>
<p>The bundle has also been uploaded to <a href="http://github.com">Github</a>.</p>
<p><a href="http://github.com/bingeboy/TextMate-HTML5-Bundle/tree/master">View Repository</a> <strong><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://jpmcgarrity.com/blog/2009/07/html-5-bundle-for-textmate/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Video Player with HTML 5</title>
		<link>http://jpmcgarrity.com/blog/2009/06/video-player-with-html-5/</link>
		<comments>http://jpmcgarrity.com/blog/2009/06/video-player-with-html-5/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 22:54:20 +0000</pubDate>
		<dc:creator>J.P.</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[css/html]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://jpmcgarrity.com/blog/?p=341</guid>
		<description><![CDATA[With some of the latest browsers supporting HTML 5 I thought I go ahead and take a stab at trying to create a very basic video player using some of the new tags. What&#8217;s interesting is many times when flash would be needed for video and audio HTML 5 will be able to support such [...]]]></description>
			<content:encoded><![CDATA[<p>With some of the latest browsers supporting HTML 5 I thought I go ahead and take a stab at trying to create a very basic video player using some of the new tags. What&#8217;s interesting is many times when flash would be needed for video and audio HTML 5 will be able to support such media types with just a little JS.</p>
<p>Here is a <a href="/html5Tests/html5_videoplayer.html">sample player</a> using HTML 5 (Note this is at a very early stage and only has play/pause functionality).</p>
<p><a href="/html5Tests/html5_videoplayer.html" class="none"><img class="aligncenter size-full wp-image-346" title="wildthingshtml5" src="http://jpmcgarrity.com/blog/wp-content/uploads/2009/06/wildthingshtml51.jpg" alt="wildthingshtml5" width="600" height="249" /></a></p>
<p><code>			&lt;div id="myVideoContainer"&gt;<br />
				&lt;video id="myVideo" src="../videos/WheretheWildThingsAre.mov" autoplay="autoplay"&gt;<br />
					&lt;p&gt;Sorry Your Browser Doesn't Support HTML 5. Safari 4 will support this video player, download it <a href="http://www.apple.com/safari/download/">here</a>&lt;/p&gt;<br />
				&lt;/video&gt;<br />
			&lt;/div&gt;</code></p>
<p>Related information:</p>
<ul>
<li><a href="http://www.youtube.com/html5">YouTube testing with html 5</a></li>
<li><a href="http://webkit.org/blog/140/html5-media-support/">Webkit html 5 media support</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://jpmcgarrity.com/blog/2009/06/video-player-with-html-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

