<?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>Ajaxian &#187; CSS</title>
	<atom:link href="http://ajaxian.com/by/topic/css/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Tue, 22 May 2012 21:45:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
    	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>A simple random bit on var selector</title>
		<link>http://ajaxian.com/archives/a-simple-random-bit-on-var-selector</link>
		<comments>http://ajaxian.com/archives/a-simple-random-bit-on-var-selector#comments</comments>
		<pubDate>Wed, 10 Aug 2011 00:26:21 +0000</pubDate>
		<dc:creator>jvaughan</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Front Page]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://ajaxian.com/?p=10719</guid>
		<description><![CDATA[Isobar&#8217;s Rob Larsen suggests that there is often a need to build CSS selectors dynamically when building applications. &#8221;This is typically some existing pattern paired with a loop counter or something pulled from a data attribute,&#8221; he writes on his blog. His choice is to create a variable called &#8221;selector&#8221; and &#8221;to craft the selector <a href="http://ajaxian.com/archives/a-simple-random-bit-on-var-selector">Read the rest...</a>]]></description>
			<content:encoded><![CDATA[<p>Isobar&#8217;s Rob Larsen suggests that there is often a need to build CSS selectors dynamically when building applications. &#8221;This is typically some existing pattern paired with a loop counter or something pulled from a data attribute,&#8221; he writes on his <a href="http://htmlcssjavascript.com/javascript/var-selector/">blog</a>. His choice is to create a variable called &#8221;selector&#8221; and &#8221;to craft the selector on its own line.&#8221; This is then passed into jQuery. He shows <a href="http://htmlcssjavascript.com/javascript/var-selector/">a simple example</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ajaxian.com/archives/a-simple-random-bit-on-var-selector/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>3D Slides Built with HTML5, CSS3, and SVG</title>
		<link>http://ajaxian.com/archives/3d-slides-built-with-html5-css3-and-svg</link>
		<comments>http://ajaxian.com/archives/3d-slides-built-with-html5-css3-and-svg#comments</comments>
		<pubDate>Wed, 06 Oct 2010 06:00:17 +0000</pubDate>
		<dc:creator>Brad Neuberg</dc:creator>
				<category><![CDATA[3D]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Front Page]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Presentation]]></category>

		<guid isPermaLink="false">http://ajaxian.com/?p=10409</guid>
		<description><![CDATA[Over on my personal blog I talk about a 3D slide deck I&#8217;ve created that uses HTML5, CSS3, and a bit of SVG (video). The main idea behind this deck is to be able to &#8216;zoom&#8217; into topics to as deep a level as necessary. Slides are nested, like an outline. For example, I gave <a href="http://ajaxian.com/archives/3d-slides-built-with-html5-css3-and-svg">Read the rest...</a>]]></description>
			<content:encoded><![CDATA[<p><center><iframe src="http://player.vimeo.com/video/15573974" width="400" height="300" frameborder="0"></iframe></center></p>
<p><a href="http://blog.codinginparadise.org/2010/10/3d-slides-built-with-html5-css3-and-svg.html">Over on my personal blog</a> I talk about a 3D slide deck I&#8217;ve created that uses HTML5, CSS3, and a bit of SVG (<a href="ttp://vimeo.com/15573974">video</a>). The main idea behind this deck is to be able to &#8216;zoom&#8217; into topics to as deep a level as necessary. Slides are nested, like an outline.</p>
<p>For example, I gave a talk at Future of Web Apps recently on HTML5, CSS3, and other web technologies and only had 40 minutes, so I just skimmed the surface of the slides. However, in a few days I&#8217;ll be speaking at Fronteers and will be diving deep into SVG and Canvas, so those slides can be zoomed into. The goal is for me to have a universal slide deck that can &#8216;accordian&#8217; open and closed to fill either a 40 minute session or an all day workshop, kind of like stretchtext.</p>
<p><a href="http://blog.codinginparadise.org/2010/10/3d-slides-built-with-html5-css3-and-svg.html">Read more to learn</a> about the 3D slide deck and how I built it.</p>
]]></content:encoded>
			<wfw:commentRss>http://ajaxian.com/archives/3d-slides-built-with-html5-css3-and-svg/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Simulating :hover and Double Clicks With Pure CSS on Mobile Devices</title>
		<link>http://ajaxian.com/archives/simulating-hover-and-double-clicks-with-pure-css-on-mobile-devices</link>
		<comments>http://ajaxian.com/archives/simulating-hover-and-double-clicks-with-pure-css-on-mobile-devices#comments</comments>
		<pubDate>Thu, 16 Sep 2010 12:00:07 +0000</pubDate>
		<dc:creator>Brad Neuberg</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Front Page]]></category>

		<guid isPermaLink="false">http://ajaxian.com/?p=10275</guid>
		<description><![CDATA[When creating mobile web apps on devices like the iPhone, iPad, and Android you lose the beloved CSS :hover property which can make things so much easier to create. Chris Coyier has been exploring how to respond to single and double clicks still using pure CSS even when we don't have :hover. For single clicks, Chris <a href="http://ajaxian.com/archives/simulating-hover-and-double-clicks-with-pure-css-on-mobile-devices">Read the rest...</a>]]></description>
			<content:encoded><![CDATA[<p>When creating mobile web apps on devices like the iPhone, iPad, and Android you lose the beloved CSS :hover property which can make things so much easier to create. <a href="http://css-tricks.com">Chris Coyier</a> has been exploring how to respond to single and double clicks still using pure CSS even when we don't have :hover.</p>
<p><a href="http://css-tricks.com/expanding-images-html5/">For single clicks</a>, Chris has found that you can use tabindex as a trick to simulate :hover.</p>
<p>Chris creates a sample where he has an image expand when 'hovered' over:</p>
<p style="text-align: center;"><a href="http://css-tricks.com/expanding-images-html5/"><img class="aligncenter size-full wp-image-10276" title="cssclick1" src="http://ajaxian.com/wp-content/images/cssclick1.jpg" alt="" width="205" height="233" /></a></p>
<p style="text-align: left;">Chris has the following HTML markup using HTML5 (notice the tabindex property):</p>
<div class="igBar"><a href="javascript:showCodeTxt('html-3');">PLAIN TEXT</a></div>
<div class="syntax_hilite"><span style="color:#000000; font-weight:bold;">HTML:</span>
<div id="html-3">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;">&lt;section <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"image-gallery"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #009900;">&lt;figure <span style="color: #000066;">tabindex</span>=<span style="color: #ff0000;">"1"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"images/img-1.jpg"</span> <span style="color: #000066;">alt</span>=<span style="color: #ff0000;">"jump, matey"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;figcaption <span style="color: #ff0000;">"&gt;</span>Jump!<span style="color: #009900;">&lt;/figcaption&gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #009900;">&lt;/figure&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;">&lt;/section&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p>Each image/figure is given a tabindex one higher than the last one.</p>
<p>The image/figure can then be hooked onto using the :focus property, which will work on mobile devices when a user presses their finger onto the element. When this fires some CSS will cause the outline to disappear; the image to rotate and scale larger; and a box shadow to appear:</p>
<div class="igBar"><a href="javascript:showCodeTxt('css-4');">PLAIN TEXT</a></div>
<div class="syntax_hilite"><span style="color:#000000; font-weight:bold;">CSS:</span>
<div id="css-4">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">figure<span style="color: #3333ff;">:focus </span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">outline</span>: <span style="color: #993333;">none</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; -webkit-transform: rotate<span style="color:#006600; font-weight:bold;">&#40;</span>-3deg<span style="color:#006600; font-weight:bold;">&#41;</span> scale<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;">2</span>.<span style="color:#800000;">5</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; -moz-transform: rotate<span style="color:#006600; font-weight:bold;">&#40;</span>-3deg<span style="color:#006600; font-weight:bold;">&#41;</span> scale<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;">2</span>.<span style="color:#800000;">5</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; -webkit-box-shadow: <span style="color:#800000;">0</span> 3px 10px #666; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; -moz-box-shadow: <span style="color:#800000;">0</span> 3px 10px #666;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">z-index</span>: <span style="color:#800000;">9999</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
</ol>
</div>
</div>
</div>
<p>Once he had single-click under his belt, Chris <a href="http://css-tricks.com/double-click-in-css/">moves on to trying to get a CSS solution for double-click for mobile devices</a>. He mentions that for this its a bit more CSS nerdery since JavaScript is pretty straightforward in this case:</p>
<blockquote><p>For anyone interested, “dblclick” is a native JavaScript event. If you wanted to, for example, force links to be double clicked instead of single clicked, you could bind a simple { return false; } function to the click event. Then also bind a function to dblclick that would change the window.location to the links href attribute.</p>
<p>This article isn’t about that, it’s about hardcore CSS nerdery and seeing if we can also do it without using JavaScript.</p></blockquote>
<p>See Chris' <a href="http://css-tricks.com/examples/CSSDoubleClick/">demo</a> and <a href="http://css-tricks.com/double-click-in-css/">blog post</a> for more details on the double-click CSS solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://ajaxian.com/archives/simulating-hover-and-double-clicks-with-pure-css-on-mobile-devices/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>The CSS Awards</title>
		<link>http://ajaxian.com/archives/the-css-awards</link>
		<comments>http://ajaxian.com/archives/the-css-awards#comments</comments>
		<pubDate>Thu, 16 Sep 2010 11:00:19 +0000</pubDate>
		<dc:creator>Brad Neuberg</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Front Page]]></category>

		<guid isPermaLink="false">http://ajaxian.com/?p=10236</guid>
		<description><![CDATA[CSS has always been a powerful tool in the web programmer's arsenal, especially today with CSS3, CSS Animations/Transforms/Transitions, CSS FlexBox and Columns, CSS with SVG, etc. If you're trying to do it all with JavaScript, many times you are probably doing things wrong -- a CSS solution will often be more elegant, terse, and performant. <a href="http://ajaxian.com/archives/the-css-awards">Read the rest...</a>]]></description>
			<content:encoded><![CDATA[<p>CSS has always been a powerful tool in the web programmer's arsenal, especially today with CSS3, CSS Animations/Transforms/Transitions, CSS FlexBox and Columns, CSS with SVG, etc. If you're trying to do it all with JavaScript, many times you are probably doing things wrong -- a CSS solution will often be more elegant, terse, and performant.</p>
<p><a href="http://www.thecssawards.com/"><img class="aligncenter size-full wp-image-10237" title="CSSAwards1" src="http://ajaxian.com/wp-content/images/CSSAwards1.png" alt="" width="218" height="167" /></a></p>
<p>This is why it's important to stay on top of the latest CSS work. I've found The CSS Awards web site a great way to do this. The CSS Awards is:</p>
<blockquote><p>[a] gallery of the most prestigious websites in the world created with CSS. An international jury of the top designers, agencies, and bloggers will award prizes to the best CSS websites.</p></blockquote>
<p>A new CSS website is posted every day.</p>
<p style="text-align: center;"><a href="http://www.thecssawards.com/"><img class="aligncenter size-full wp-image-10238" title="CSSAwards2" src="http://ajaxian.com/wp-content/images/CSSAwards2.png" alt="" width="377" height="248" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://ajaxian.com/archives/the-css-awards/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>CSS 3 Live: Progressive Enhancement</title>
		<link>http://ajaxian.com/archives/css-3-live-progressive-enhancement</link>
		<comments>http://ajaxian.com/archives/css-3-live-progressive-enhancement#comments</comments>
		<pubDate>Tue, 14 Sep 2010 12:00:33 +0000</pubDate>
		<dc:creator>Brad Neuberg</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Front Page]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://ajaxian.com/?p=10265</guid>
		<description><![CDATA[From SitePoint comes a nice series of videos on CSS3, called CSS Live. Here's one on Progressive Enhancement when using CSS3 features:]]></description>
			<content:encoded><![CDATA[<p>From <a href="http://www.sitepoint.com/">SitePoint</a> comes a <a href="http://www.youtube.com/watch?v=_nbWikK2nHY">nice series of videos on CSS3</a>, called CSS Live. Here's one on Progressive Enhancement when using CSS3 features:</p>
<p><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/_nbWikK2nHY?fs=1&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/_nbWikK2nHY?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://ajaxian.com/archives/css-3-live-progressive-enhancement/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Animated CSS3 cube using 3D transforms</title>
		<link>http://ajaxian.com/archives/animated-css3-cube-using-3d-transforms</link>
		<comments>http://ajaxian.com/archives/animated-css3-cube-using-3d-transforms#comments</comments>
		<pubDate>Mon, 13 Sep 2010 11:00:23 +0000</pubDate>
		<dc:creator>Brad Neuberg</dc:creator>
				<category><![CDATA[Animation]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Front Page]]></category>

		<guid isPermaLink="false">http://ajaxian.com/?p=10221</guid>
		<description><![CDATA[I've been doing alot of experimenting with HTML5/CSS3 on the iPhone doing animation, and I've been surprised with the low frame rate of animating through Canvas or SVG. If you are trying to do animation, especially 3D, on the iPhone it seems like the name of the game is to it through the GPU, and <a href="http://ajaxian.com/archives/animated-css3-cube-using-3d-transforms">Read the rest...</a>]]></description>
			<content:encoded><![CDATA[<p>I've been doing alot of experimenting with HTML5/CSS3 on the iPhone doing animation, and I've been surprised with the low frame rate of animating through Canvas or SVG. If you are trying to do animation, especially 3D, on the iPhone it seems like the name of the game is to it through the GPU, and the only way to do that these days on iOS is CSS3 Animations/Transitions/3D.</p>
<p>These experiments caused me to stumble on <a href="http://www.paulrhayes.com/2009-07/animated-css3-cube-interface-using-3d-transforms/">Paul Hayes interesting work</a> simulating a 3D animated cube using CSS3, hence they happen on the GPU on the iPhone/iPad and are quite fast:</p>
<blockquote><p>A 3D cube can be created solely in CSS, with all six faces. Using JavaScript to detect key presses and update inline styles this cube can be intuitively navigated.</p></blockquote>
<p><a href="http://www.paulrhayes.com/experiments/cube-3d/index.html">Demo (Webkit only)</a></p>
<div><a href="http://www.paulrhayes.com/experiments/cube-3d/index.html"><img class="aligncenter size-full wp-image-10222" title="fofr-online-20090717-3d-cube" src="http://ajaxian.com/wp-content/images/fofr-online-20090717-3d-cube.jpg" alt="" width="350" height="268" /></a></div>
<p>Paul achieves this by having each face of the cube be a unique DIV, each with a 'face' class and inside of a larger 'cube' class all wrapped by an 'experiment' class:</p>
<div class="igBar"><a href="javascript:showCodeTxt('html-10');">PLAIN TEXT</a></div>
<div class="syntax_hilite"><span style="color:#000000; font-weight:bold;">HTML:</span>
<div id="html-10">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"experiment"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"cube"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"face one"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; One face</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"face two"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Up, down, left, right</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"face three"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Lorem ipsum.</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"face four"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; New forms of navigation are fun.</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"face five"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Rotating 3D cube</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"face six"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; More content</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
</ol>
</div>
</div>
</div>
<p>The outer wrapper is the camera and allows you to apply perspective and where you want the perspective origin to be:</p>
<div class="igBar"><a href="javascript:showCodeTxt('css-11');">PLAIN TEXT</a></div>
<div class="syntax_hilite"><span style="color:#000000; font-weight:bold;">CSS:</span>
<div id="css-11">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #cc00cc;">#experiment <span style="color:#006600; font-weight:bold;">&#123;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; -webkit-perspective: <span style="color:#800000;">800</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; -webkit-perspective-origin: <span style="color:#800000;">50</span>% 200px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
</ol>
</div>
</div>
</div>
<p>The #cube itself is given a size, CSS transition properties so things will animate nicely, and an instruction to preserve 3D children and not 'flatten' them:</p>
<div class="igBar"><a href="javascript:showCodeTxt('css-12');">PLAIN TEXT</a></div>
<div class="syntax_hilite"><span style="color:#000000; font-weight:bold;">CSS:</span>
<div id="css-12">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #cc00cc;">#cube <span style="color:#006600; font-weight:bold;">&#123;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">position</span>: <span style="color: #993333;">relative</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">margin</span>: <span style="color:#800000;">0</span> <span style="color: #993333;">auto</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">height</span>: 400px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">width</span>: 400px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; -webkit-transition: -webkit-transform 2s linear;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; -webkit-transform-style: preserve-3d;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
</ol>
</div>
</div>
</div>
<p>Each of the faces is given some common styling:</p>
<div class="igBar"><a href="javascript:showCodeTxt('css-13');">PLAIN TEXT</a></div>
<div class="syntax_hilite"><span style="color:#000000; font-weight:bold;">CSS:</span>
<div id="css-13">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.face </span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">position</span>: <span style="color: #993333;">absolute</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">height</span>: 360px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">width</span>: 360px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">padding</span>: 20px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">background-color</span>: rgba<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;">50</span>, <span style="color:#800000;">50</span>, <span style="color:#800000;">50</span>, <span style="color:#800000;">0</span>.<span style="color:#800000;">7</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
</ol>
</div>
</div>
</div>
<p>The individual face DIVs are then rotated and translated in 3D space into their correct positions:</p>
<div class="igBar"><a href="javascript:showCodeTxt('css-14');">PLAIN TEXT</a></div>
<div class="syntax_hilite"><span style="color:#000000; font-weight:bold;">CSS:</span>
<div id="css-14">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">#cube <span style="color: #6666ff;">.one </span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; -webkit-transform: rotateX<span style="color:#006600; font-weight:bold;">&#40;</span>90deg<span style="color:#006600; font-weight:bold;">&#41;</span> translateZ<span style="color:#006600; font-weight:bold;">&#40;</span>200px<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; #cube <span style="color: #6666ff;">.two </span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; -webkit-transform: translateZ<span style="color:#006600; font-weight:bold;">&#40;</span>200px<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; #cube <span style="color: #6666ff;">.three </span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; -webkit-transform: rotateY<span style="color:#006600; font-weight:bold;">&#40;</span>90deg<span style="color:#006600; font-weight:bold;">&#41;</span> translateZ<span style="color:#006600; font-weight:bold;">&#40;</span>200px<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; #cube <span style="color: #6666ff;">.four </span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; -webkit-transform: rotateY<span style="color:#006600; font-weight:bold;">&#40;</span>180deg<span style="color:#006600; font-weight:bold;">&#41;</span> translateZ<span style="color:#006600; font-weight:bold;">&#40;</span>200px<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; #cube <span style="color: #6666ff;">.five </span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; -webkit-transform: rotateY<span style="color:#006600; font-weight:bold;">&#40;</span>-90deg<span style="color:#006600; font-weight:bold;">&#41;</span> translateZ<span style="color:#006600; font-weight:bold;">&#40;</span>200px<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; #cube <span style="color: #6666ff;">.six </span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; -webkit-transform: rotateX<span style="color:#006600; font-weight:bold;">&#40;</span>-90deg<span style="color:#006600; font-weight:bold;">&#41;</span> translateZ<span style="color:#006600; font-weight:bold;">&#40;</span>200px<span style="color:#006600; font-weight:bold;">&#41;</span> rotate<span style="color:#006600; font-weight:bold;">&#40;</span>180deg<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
</ol>
</div>
</div>
</div>
<p><a href="http://www.paulrhayes.com/2009-07/animated-css3-cube-interface-using-3d-transforms/">Read more in Paul's post.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ajaxian.com/archives/animated-css3-cube-using-3d-transforms/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe Announces HTML5/CSS3/SVG Pack for Illustrator</title>
		<link>http://ajaxian.com/archives/adobe-announces-html5css3svg-pack-for-illustrator</link>
		<comments>http://ajaxian.com/archives/adobe-announces-html5css3svg-pack-for-illustrator#comments</comments>
		<pubDate>Sun, 12 Sep 2010 10:15:44 +0000</pubDate>
		<dc:creator>Brad Neuberg</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Front Page]]></category>
		<category><![CDATA[SVG]]></category>

		<guid isPermaLink="false">http://ajaxian.com/?p=10308</guid>
		<description><![CDATA[Exciting news from Adobe; they've announced a new HTML5 Pack on Adobe Labs with support for HTML5, CSS3, and SVG: Adobe is pleased to announce the availability of the Adobe® Illustrator® CS5 HTML5 Pack. This add-on for Illustrator CS5 15.0.1 provides initial support for HTML5 and CSS3, extends SVG capability in Illustrator CS5, and helps <a href="http://ajaxian.com/archives/adobe-announces-html5css3svg-pack-for-illustrator">Read the rest...</a>]]></description>
			<content:encoded><![CDATA[<p>Exciting news from Adobe; <a href="http://labs.adobe.com/technologies/illustrator_html5/">they've announced a new HTML5 Pack on Adobe Labs</a> with support for HTML5, CSS3, and SVG:</p>
<blockquote>
<div>
<p>Adobe is pleased to announce the availability of the Adobe® Illustrator® CS5 HTML5 Pack. This add-on for<a href="http://www.adobe.com/support/downloads/detail.jsp?ftpID=4781" target="_blank"> Illustrator CS5 15.0.1</a> provides initial support for HTML5 and CSS3, extends SVG capability in  Illustrator CS5, and helps you easily design web and device content. In  combination with the HTML5 features available in the <a href="http://www.adobe.com/support/dreamweaver/downloads_updaters.html#dwcs5" target="_blank">Adobe Dreamweaver CS5 11.0.3 updater</a>, these new tools allow web designers to take advantage of the latest advancements in HTML5.</p>
<p>While HTML5 and CSS3 will not be finalized for some time, and  SVG support in browsers will continue to evolve, the extension provides  support for a set of currently implemented features.</p>
</div>
</blockquote>
<p>Some of the benefits of the HTML5 Pack:</p>
<blockquote>
<ul>
<li>Efficiently design for web and devices by exporting  Illustrator Artboards for unique screen sizes using SVG and CSS3 media  queries.</li>
<li>Create web widgets with Illustrator by generating dynamic vector art for data driven web work-flows.</li>
<li>Take advantage of the latest enhancements to SVG and Canvas to generate interactive web content.</li>
<li>Map artwork appearance attributes from designer to developer  tools—export from the Illustrator Appearance Panel to CSS3 for  streamlined styling of web pages.</li>
</ul>
</blockquote>
<p>Greg Rewis discusses it more in the video below:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="256" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="FlashVars" value="fileID=7705&amp;context=584&amp;embeded=true&amp;environment=production" /><param name="src" value="http://images.tv.adobe.com/swf/player.swf" /><param name="flashvars" value="fileID=7705&amp;context=584&amp;embeded=true&amp;environment=production" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="256" src="http://images.tv.adobe.com/swf/player.swf" flashvars="fileID=7705&amp;context=584&amp;embeded=true&amp;environment=production" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><a href="http://rwillustrator.blogspot.com/2010/09/web-designers-rejoice-adobe-releases.html?utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3A+RealWorldIllustrator+%28Real+World+Illustrator%29&amp;utm_content=Twitter">Mordy Golding has a good description</a> of some of the new features in this lab pack:</p>
<blockquote><p><strong>Parameterized SVG</strong></p>
<p>You can designate certain attributes (i.e., fill, stroke, opacity) as variables right from the Appearance panel in Illustrator. When saved as SVG, developers can easily change the variable definition to "reskin" or modify the art. You can even create global variables.</p>
<p><strong>Multi-screen SVG</strong></p>
<p>You can create multiple artboards in Illustrator at various sizes, for example to design art for different screen sizes. You might do this to create different designs for mobile, tablet, and desktop versions of a design for example. You can then save your file as SVG and include all the different artboards. Illustrator creates an HTML file and a CSS file, along with separate SVG files for each artboard. The CSS uses media queries to detect the screen size and automatically serves up the correct SVG image.</p>
<p><strong>Mark objects as canvas in SVG</strong></p>
<p>You can select an object on the Illustrator artboard and then choose Object &gt; HTML5 Canvas &gt; Make. These elements are rasterized and included as canvas elements when saved as SVG, giving developers the ability to control the elements via JavaScript.</p>
<p><strong>Export named character styles as CSS</strong></p>
<p>You can define character styles in your Illustrator document, and then export those character styles as a valid CSS file. You can do this directly from the Character Styles panel.</p>
<p><strong>Export artwork appearances as CSS</strong></p>
<p>You can select an object in Illustrator and export valid CSS directly from the Appearance panel. Of course, if you mockup an entire page in Illustrator, you can simply select all of it and export it to a single CSS file. IDs are picked up from the Layers panel (so you want to name artwork carefully), and Illustrator can export Fill, Stroke, Opacity, and Absolute Position and Dimensions.</p>
<p><strong>Include selected Graphic Styles as CSS in SVG</strong></p>
<p>You can select styles from the Graphic Styles panel and choose to have them exported when you save your file as SVG. What's really cool is that you can include styles even if they aren't applied to your artwork. This would allow you to deliver multiple styles to a developer within a single SVG, and even programmatically swap styles.</p></blockquote>
<p>Great work Adobe!</p>
]]></content:encoded>
			<wfw:commentRss>http://ajaxian.com/archives/adobe-announces-html5css3svg-pack-for-illustrator/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Create a Sticky Note Effect in 5 Easy Steps with CSS3 and HTML5</title>
		<link>http://ajaxian.com/archives/create-a-sticky-note-effect-in-5-easy-steps-with-css3-and-html5</link>
		<comments>http://ajaxian.com/archives/create-a-sticky-note-effect-in-5-easy-steps-with-css3-and-html5#comments</comments>
		<pubDate>Thu, 09 Sep 2010 10:30:35 +0000</pubDate>
		<dc:creator>Brad Neuberg</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Front Page]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://ajaxian.com/?p=10177</guid>
		<description><![CDATA[Our very own Christian Heilmann has posted a tutorial on creating a fancy sticky note effect using CSS3 and HTML5: He breaks it down in five easy steps to produce the final following demo:]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://ajaxian.com/wp-content/images/sticky_notes.jpg"><img class="aligncenter size-full wp-image-10178" title="sticky_notes" src="http://ajaxian.com/wp-content/images/sticky_notes.jpg" alt="" width="140" height="140" /></a></p>
<p>Our very own <a href="http://www.wait-till-i.com/">Christian Heilmann</a> has <a href="http://net.tutsplus.com/articles/news/create-a-sticky-note-effect-in-5-easy-steps-with-css3-and-html5/">posted a tutorial on creating a fancy sticky note effect using CSS3 and HTML5</a>:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="560" height="345" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="flashvars" value="i=94517" /><param name="allowFullScreen" value="true" /><param name="src" value="http://screenr.com/Content/assets/screenr_1116090935.swf" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="560" height="345" src="http://screenr.com/Content/assets/screenr_1116090935.swf" allowfullscreen="true" flashvars="i=94517"></embed></object></p>
<p>He breaks it down in five easy steps to produce the <a href="http://nettuts.s3.amazonaws.com/771_sticky/step5.html">final following demo</a>:</p>
<p style="text-align: center;"><a href="http://nettuts.s3.amazonaws.com/771_sticky/step5.html"><img class="aligncenter size-full wp-image-10181" title="stickynotes1" src="http://ajaxian.com/wp-content/images/stickynotes1.png" alt="" width="326" height="165" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://ajaxian.com/archives/create-a-sticky-note-effect-in-5-easy-steps-with-css3-and-html5/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe Releases Web Fonts</title>
		<link>http://ajaxian.com/archives/adobe-releases-web-fonts</link>
		<comments>http://ajaxian.com/archives/adobe-releases-web-fonts#comments</comments>
		<pubDate>Wed, 25 Aug 2010 11:00:48 +0000</pubDate>
		<dc:creator>Brad Neuberg</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Font]]></category>
		<category><![CDATA[Front Page]]></category>

		<guid isPermaLink="false">http://ajaxian.com/?p=10072</guid>
		<description><![CDATA[Last week Adobe announced they are jumping into the Web Fonts game in a partnership with Typekit: For this debut of Adobe Web Fonts, I think we’ve made some great choices. Everyone knows Myriad and Minion — pervasive workhorse sans serif and serif typefaces, respectively, which will prove to be as useful on the web as they have <a href="http://ajaxian.com/archives/adobe-releases-web-fonts">Read the rest...</a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://ajaxian.com/wp-content/images/adobewebfonts.png"><img class="size-full wp-image-10073  aligncenter" title="adobewebfonts" src="http://ajaxian.com/wp-content/images/adobewebfonts.png" alt="" width="341" height="146" /></a></p>
<p>Last week Adobe <a href="http://blogs.adobe.com/typblography/2010/08/adobe-web-fonts-2.html">announced</a> they are jumping into the Web Fonts game in a partnership with <a href="http://typekit.com/">Typekit</a>:</p>
<blockquote><p>For this debut of Adobe Web Fonts, I think we’ve made some great choices. Everyone knows <strong>Myriad</strong> and <strong>Minion</strong> — pervasive workhorse sans serif and serif typefaces, respectively, which will prove to be as useful on the web as they have been in print. Thomas Phinney’s <strong>Hypatia Sans</strong> and Carol Twombly’s <strong>Chaparral</strong> are distinctive and versatile. <strong>Adobe Text</strong> is Robert Slimbach’s newest design which a lot of people haven’t even seen yet (so far it has only been available as a registration benefit for CS5 customers) but I’m certain it will quickly establish itself as a flexible and reliable text typeface, and I’m pleased it will now get a wider audience.</p>
<p>Richard Lipton’s classic <strong>Bickham Script</strong> is one of our most popular display typefaces and a distinctive addition to the Adobe Web Fonts collection. More of Robert Slimbach’s work now available for web use include <strong>Adobe Garamond</strong>, <strong>Caflisch Script</strong>, <strong>Cronos</strong>, and the “display” designs for <strong>Garamond Premier </strong>(based on Claude Garamond’s beautiful <em>Gros Canon</em> type).</p>
<p>Speaking of which: You will find that we’ve included optical size variations for some of our typefaces. These designs are carefully crafted to look their best at small sizes (“caption”), medium- to large-size headings (“subhead”), or in headlines and other large sizes (“display”). On the web, these distinctions are less resolved than in print, but optical sizes will give you more options to find just the right font for your needs — and giving users better options for fine typography is what Adobe Originals are all about.</p>
<p>Remember, Adobe Web Fonts support the same languages and scripts as their desktop counterparts. Most are “Pro” fonts — meaning their character set supports Central European languages. Adobe Text, Garamond Premier, Hypatia Sans, Minion, and Myriad also support Greek and Cyrillic. (Select the “All Characters” Subset option in Typekit to use them.)</p></blockquote>
<p>It's exciting to see Adobe supporting web fonts!</p>
]]></content:encoded>
			<wfw:commentRss>http://ajaxian.com/archives/adobe-releases-web-fonts/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>CSS Media Queries: Bees Knees Or Spawn of Satan?</title>
		<link>http://ajaxian.com/archives/css-media-queries-bees-knees-or-spawn-of-satan</link>
		<comments>http://ajaxian.com/archives/css-media-queries-bees-knees-or-spawn-of-satan#comments</comments>
		<pubDate>Tue, 24 Aug 2010 11:00:58 +0000</pubDate>
		<dc:creator>Brad Neuberg</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Front Page]]></category>

		<guid isPermaLink="false">http://ajaxian.com/?p=10062</guid>
		<description><![CDATA[The last month has seen an interesting back and forth over CSS Media Queries. In a nutshell, CSS Media Queries make it possible to apply style sheets only if certain properties are available on the display device. For example, you could have a stylesheet only display for screen devices with a maximum screen width of <a href="http://ajaxian.com/archives/css-media-queries-bees-knees-or-spawn-of-satan">Read the rest...</a>]]></description>
			<content:encoded><![CDATA[<p>The last month has seen an interesting back and forth over <a href="https://developer.mozilla.org/en/css/media_queries">CSS Media Queries</a>. <a href="http://www.youtube.com/watch?v=jKMK3XGO27k">In a nutshell</a>, CSS Media Queries make it possible to apply style sheets only if certain properties are available on the display device. For example, you could have a stylesheet only display for screen devices with a maximum screen width of 480px (i.e. a mobile device) using the following CSS Media Query, bolded below:</p>
<div class="igBar"><a href="javascript:showCodeTxt('css-16');">PLAIN TEXT</a></div>
<div class="syntax_hilite"><span style="color:#000000; font-weight:bold;">CSS:</span>
<div id="css-16">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;link rel=<span style="color: #ff0000;">"stylesheet"</span> type=<span style="color: #ff0000;">"text/css"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; media=<span style="color: #ff0000;">"screen and (max-device-width: 480px)"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; href=<span style="color: #ff0000;">"shetland.css"</span> /&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
</ol>
</div>
</div>
</div>
<p>Things kicked off with a <a href="http://www.alistapart.com/articles/responsive-web-design/">nice introductory article</a> by <a href="http://www.alistapart.com/authors/m/emarcotte">Ethan Marcotte</a> introducing CSS Media Queries in order to have responsive and adaptable web designs.</p>
<p style="text-align: center;"><a href="http://www.alistapart.com/articles/responsive-web-design/"><img class="aligncenter size-full wp-image-10064" title="mediaquery1" src="http://ajaxian.com/wp-content/images/mediaquery1.png" alt="" width="293" height="196" /></a></p>
<p>Things started to get interesting with a counter-article by Jason Grigsby titled "<a href="http://www.cloudfour.com/css-media-query-for-mobile-is-fools-gold/">CSS Media Query for Mobile is Fool's Gold</a>". Jason claims:</p>
<blockquote><p>Unfortunately, <strong>CSS media query is fool’s gold for mobile devices</strong>. It hides tough problems and gives developers a false promise of a simple solution for designing to multiple screens.</p></blockquote>
<p style="text-align: center;"><a href="http://en.wikipedia.org/wiki/Pyrite"><img class="aligncenter size-full wp-image-10065" title="Pyrite_foolsgold" src="http://ajaxian.com/wp-content/images/Pyrite_foolsgold.jpg" alt="" width="288" height="221" /></a></p>
<p>His chief issues with CSS Media Queries can be boiled down to:</p>
<blockquote><p>The idea of adding more code—adding more to download—in order to optimize for mobile should be the first clue that this isn’t a good solution.</p></blockquote>
<p>From a high level his other objections are:</p>
<ul>
<li>That speed matters more on mobile devices</li>
<li>That letting the browser scale images for you is a bad idea since delivering images at the maximum size then scaling them down is wasteful on mobile devices</li>
<li>That resizing images on mobile browsers is cpu and memory intensive, both of which mobile devices can lack</li>
</ul>
<p>Jason also discusses some interesting workarounds people have proposed for the above issues still using CSS Media Queries, such as delivering different images at different sizes using different CSS Media Queries and using hidden CSS background images but:</p>
<blockquote><p>However, the <strong>iPhone still downloads the images</strong> even though they are not displayed.</p></blockquote>
<p>He does find some workarounds but there are issues:</p>
<blockquote><p>Two methods that appear to work are:</p>
<ul>
<li>Setting the parent of an element with a background image to display:none.</li>
<li>Using media query min-width declaration to only specify a minimum browser width for the desktop image and a max-width for the mobile image does result in only the mobile image being downloaded in Mobile Safari.</li>
</ul>
<p>These two options mean that using CSS media queries isn’t completely impossible, but using the parent element to hide images and changing existing desktop CSS to add min-width declarations are significant changes to existing CSS. It isn’t going to be as simple as adding a CSS media query for mobile and calling your job done.</p></blockquote>
<p>In the end Jason argues for separate web sites for mobile, but:</p>
<blockquote><p>There are some good uses of CSS media queries. If you’re building a discrete web application where you have more control and can make sure that the desktop web isn’t bloated, it can make sense.</p>
<p>Also, Ros Hodgekiss from Campaign Monitor wrote an exceptional article on how you can use <a href="http://www.campaignmonitor.com/blog/post/3163/optimizing-your-emails-for-mobile-devices-with-media/">media queries in html email</a> to provide a mobile optimized layout. This is perhaps the ideal use case because when you send html email, you have no choice but to send a single html document regardless of what device the recipient will be using.</p></blockquote>
<p>In response to Jason's CSS Media Query smackdown <a href="http://www.quirksmode.org/">PPK</a> wrote up an editorial titled "<a href="http://www.quirksmode.org/blog/archives/2010/08/combining_media.html">Combining Media Queries and JavaScript</a>":</p>
<blockquote><p>On Tuesday Jason Grigsby challenged the conventional view that media queries are all we need to make a website mobile-friendly. Although he’s right when he points out some serious problems, I do not think that media queries are the “fool’s gold,” as Jason says. The message seems to be more that media queries alone are not enough to make your sites mobile-friendly. An additional component is required.</p></blockquote>
<p>PPK argues that CSS Media Queries have their place:</p>
<blockquote><p>Media queries <em>are</em> silver bullets when it comes to <em>pure CSS</em>. Restricting the width of your site, moving sidebars and main navigations elsewhere, media queries can do all that and more.</p>
<p>The trick, however, is that a pure CSS approach is not enough. In addition we need a JavaScript that also reads out the media queries and uses the data to decide whether to download the complicated mapping script, whether to download the low-source or the full-source images, or possibly none.</p>
<p>As far as I know there is no direct access to media queries from JavaScript. You can’t read out whether the example media query above has fired or not.</p></blockquote>
<p>He then talks about a nifty way to pair up JS and CSS Media Queries:</p>
<blockquote><p>Fortunately, there is a pretty safe way of using JavaScript in conjunction with media queries. It turns out that <em>all browsers</em> I tested so far have paired the <code>width</code> and <code>device-width</code> media queries with the values of <code>document.documentElement. clientWidth</code> and <code>screen.width</code>, respectively.</p>
<p>This is a <em>general rule</em>. All mobile browsers that support media queries exhibit these pairings. It’s hard to believe, but I haven’t found any exceptions yet — and rest assured that I searched for them, because I could not believe that it would be this simple. And I will continue to keep an eye on this and report problems as soon as I find them.</p>
<p>...</p>
<p>When these scripts are <em>added to</em> media queries, we’re a whole lot closer to making one website that reacts to a mobile (or rather, a narrow-screen) environment both in its CSS and in its asset management.</p></blockquote>
<p>Finally, <a href="http://www.brucelawson.co.uk/">Bruce Lawson</a> tag teamed into the rumble with an article on the topic titled "<a href="http://my.opera.com/ODIN/blog/theres-more-to-mobile-than-media-queries">There's more to mobile than than media queries</a>":</p>
<blockquote><p>In our enthusiasm to try out media queries and in our rush to skim the latest articles and tutorials, it's easy to overlook caveats and restrictions. Media queries are good at what they do but are just a single tool for a job where two or three are probably needed. In particular, combining them with JavaScript as PPK and others advocate seems to me the most practical solution for web developers to adopt at the moment.</p></blockquote>
<p><center><a href="http://ajaxian.com/wp-content/images/2667481293_43cf507b5a.jpg"><img class="aligncenter size-full wp-image-10066" title="2667481293_43cf507b5a" src="http://ajaxian.com/wp-content/images/2667481293_43cf507b5a.jpg" alt="" width="351" height="500" /></a></center></p>
<p style="text-align: center;">[<a href="http://www.flickr.com/photos/vegaseddie/2667481293/">CC-A by Paolo Camera</a>]</p>
<p>Tell me below whether you think CSS Media Queries are your <a href="http://www.last.fm/music/Pixies/_/There+Goes+My+Gun">friend or foe</a>?</p>
]]></content:encoded>
			<wfw:commentRss>http://ajaxian.com/archives/css-media-queries-bees-knees-or-spawn-of-satan/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>The CSS3 Song</title>
		<link>http://ajaxian.com/archives/the-css3-song</link>
		<comments>http://ajaxian.com/archives/the-css3-song#comments</comments>
		<pubDate>Mon, 23 Aug 2010 11:00:32 +0000</pubDate>
		<dc:creator>Brad Neuberg</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Front Page]]></category>
		<category><![CDATA[Fun]]></category>

		<guid isPermaLink="false">http://ajaxian.com/?p=10058</guid>
		<description><![CDATA[Don't be bummed it's Monday, 'cuse the CSS3 Song is here to cheer you up: How can you go wrong with lyrics like this: CSS3 Web animation done properly CSS3 Degrading gracefully I had a dream, an awesome dream People surfing in the park On Windows, Linux and Mac And their page load speeds were <a href="http://ajaxian.com/archives/the-css3-song">Read the rest...</a>]]></description>
			<content:encoded><![CDATA[<p>Don't be bummed it's Monday, 'cuse the <a href="http://my.opera.com/tagawa/blog/css3-song">CSS3 Song</a> is here to cheer you up:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/5b7dNNapMCM?fs=1&amp;hl=en_US" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="385" src="http://www.youtube.com/v/5b7dNNapMCM?fs=1&amp;hl=en_US" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>How can you go wrong with lyrics like this:</p>
<blockquote><p>CSS3<br />
Web animation done properly<br />
CSS3<br />
Degrading gracefully</p>
<p>I had a dream, an awesome dream<br />
People surfing in the park<br />
On Windows, Linux and Mac<br />
And their page load speeds were oh-so-high<br />
No big JavaScript library<br />
Just to show some eye-candy</p>
<p>CSS3<br />
Web animation done properly<br />
CSS3<br />
Degrading gracefully</p>
<p>As we surf down the superhighway<br />
Did you ever even think<br />
We could replace &lt;marquee&gt; and &lt;blink&gt;?<br />
With just one, just one line of code<br />
But it's open to abuse<br />
We must be careful not to overuse it</p>
<p>CSS3<br />
Web animation done properly<br />
CSS3<br />
Degrading gracefully</p>
<p>CSS3<br />
Web animation done properly<br />
CSS3<br />
Degrading gracefully<br />
Degrading gracefully<br />
With HTML5, naturally</p></blockquote>
<p>[<a href="http://www.brucelawson.co.uk/">via Bruce Lawson</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://ajaxian.com/archives/the-css3-song/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pure Pulsing CSS Map Markers</title>
		<link>http://ajaxian.com/archives/pure-pulsing-css-map-markers</link>
		<comments>http://ajaxian.com/archives/pure-pulsing-css-map-markers#comments</comments>
		<pubDate>Mon, 23 Aug 2010 10:00:18 +0000</pubDate>
		<dc:creator>Brad Neuberg</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Front Page]]></category>

		<guid isPermaLink="false">http://ajaxian.com/?p=9982</guid>
		<description><![CDATA[Via Zachary Johnson (aka the Zachstronaut) comes a cool experiment using pure CSS to generate pulsing rings/map markers. He's put together a nice video explaining the concept: He has a cool demo (Chrome or Safari + Snow Leopard only) of the effect: The pulsing effect, for example, is generated by a CSS3 Animation: PLAIN TEXT <a href="http://ajaxian.com/archives/pure-pulsing-css-map-markers">Read the rest...</a>]]></description>
			<content:encoded><![CDATA[<p>Via <a href="http://www.zachstronaut.com/">Zachary Johnson</a> (aka the Zachstronaut) comes <a href="http://www.zachstronaut.com/posts/2010/04/27/pure-css-map-markers.html">a cool experiment using pure CSS to generate pulsing rings/map markers</a>. He's put together a nice video explaining the concept:</p>
<p><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/oXXAe6r2mgo?fs=1&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/oXXAe6r2mgo?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></p>
<p>He has a <a href="http://www.zachstronaut.com/lab/mapmarkers.html">cool demo</a> (Chrome or Safari + Snow Leopard only) of the effect:</p>
<div><a href="http://www.zachstronaut.com/lab/mapmarkers.html"><img src="http://ajaxian.com/wp-content/images/map1.png" alt="" title="map1" width="402" height="140" class="aligncenter size-full wp-image-10110" /></a></div>
<p>The pulsing effect, for example, is generated by a CSS3 Animation:</p>
<div class="igBar"><a href="javascript:showCodeTxt('css-20');">PLAIN TEXT</a></div>
<div class="syntax_hilite"><span style="color:#000000; font-weight:bold;">CSS:</span>
<div id="css-20">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #a1a100;">@-webkit-keyframes ringpulser</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#800000;">0</span>%</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; opacity: <span style="color:#800000;">1</span>.<span style="color:#800000;">0</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -webkit-transform: scale<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;">0</span>.<span style="color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#800000;">80</span>%</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; opacity: <span style="color:#800000;">0</span>.<span style="color:#800000;">0</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -webkit-transform: scale<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;">1</span>.<span style="color:#800000;">0</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#800000;">100</span>%</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; opacity: <span style="color:#800000;">0</span>.<span style="color:#800000;">0</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -webkit-transform: scale<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;">0</span>.<span style="color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
</ol>
</div>
</div>
</div>
<p>The map itself is rotated to a 3D angle using a CSS 3D Transform:</p>
<div class="igBar"><a href="javascript:showCodeTxt('css-21');">PLAIN TEXT</a></div>
<div class="syntax_hilite"><span style="color:#000000; font-weight:bold;">CSS:</span>
<div id="css-21">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #cc00cc;">#map</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#123;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">position</span>: <span style="color: #993333;">absolute</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">top</span>: -430px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">left</span>: 50px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">background</span>: <span style="color: #993333;">url</span><span style="color:#006600; font-weight:bold;">&#40;</span>planis-map.jpg<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">top</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #993333;">no-repeat</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">width</span>: 800px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">height</span>: 548px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;-webkit-transform-style: preserve-3d;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;-webkit-transform: rotateX<span style="color:#006600; font-weight:bold;">&#40;</span>60deg<span style="color:#006600; font-weight:bold;">&#41;</span> translate3d<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;">0</span>, <span style="color:#800000;">0</span>, -500px<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;opacity: <span style="color:#800000;">0</span>.<span style="color:#800000;">75</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
</ol>
</div>
</div>
</div>
<p>While the pin, marker, and pinhead themselves are a combination of CSS 3D, CSS Transforms, CSS Gradients, and more:</p>
<div class="igBar"><a href="javascript:showCodeTxt('css-22');">PLAIN TEXT</a></div>
<div class="syntax_hilite"><span style="color:#000000; font-weight:bold;">CSS:</span>
<div id="css-22">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6666ff;">.marker</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"></span>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">position</span>: <span style="color: #993333;">absolute</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">width</span>: 100px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">height</span>: 100px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -webkit-perspective: <span style="color:#800000;">600</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6666ff;">.pin</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"></span>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">position</span>: <span style="color: #993333;">absolute</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">top</span>: <span style="color:#800000;">10</span>%;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">left</span>: <span style="color:#800000;">52</span>%;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">border-left</span>: 2px <span style="color: #993333;">solid</span> <span style="color: #993333;">transparent</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">border-right</span>: 2px <span style="color: #993333;">solid</span> <span style="color: #993333;">transparent</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">border-top</span>: 40px <span style="color: #993333;">solid</span> #666;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;-webkit-transform: rotate<span style="color:#006600; font-weight:bold;">&#40;</span>9deg<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">width</span>: <span style="color:#800000;">0</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">height</span>: <span style="color:#800000;">0</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6666ff;">.pinhead</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"></span>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">position</span>: <span style="color: #993333;">absolute</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">top</span>: <span style="color:#800000;">8</span>%;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">left</span>: <span style="color:#800000;">49</span>%;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">width</span>: 15px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">height</span>: 15px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;-webkit-border-radius: 15px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">background</span>: #999 -webkit-gradient<span style="color:#006600; font-weight:bold;">&#40;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;radial, <span style="color:#800000;">95</span>% <span style="color:#800000;">40</span>%, <span style="color:#800000;">5</span>, <span style="color:#800000;">85</span>% <span style="color:#800000;">40</span>%, <span style="color:#800000;">10</span>, from<span style="color:#006600; font-weight:bold;">&#40;</span>rgba<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;">0</span>, <span style="color:#800000;">0</span>, <span style="color:#800000;">0</span>, <span style="color:#800000;">0</span>.<span style="color:#800000;">40</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>, to<span style="color:#006600; font-weight:bold;">&#40;</span>rgba<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;">0</span>, <span style="color:#800000;">0</span>, <span style="color:#800000;">0</span>, <span style="color:#800000;">0</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
</ol>
</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://ajaxian.com/archives/pure-pulsing-css-map-markers/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Auto-Generate CSS3 For Fame and Fortune!</title>
		<link>http://ajaxian.com/archives/auto-generate-css3-for-fame-and-fortune</link>
		<comments>http://ajaxian.com/archives/auto-generate-css3-for-fame-and-fortune#comments</comments>
		<pubDate>Fri, 20 Aug 2010 10:00:14 +0000</pubDate>
		<dc:creator>Brad Neuberg</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Front Page]]></category>

		<guid isPermaLink="false">http://ajaxian.com/?p=9974</guid>
		<description><![CDATA[We've seen a number of nice CSS3 generators. I stumbled across another one recently that has a nice set of features for autogenerating the following from a single CSS3 generator web page: Border Radius Gradients CSS Transforms CSS Animations CSS Transitions Text Shadow Box Shadow Text Rotation @Font Face]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://ajaxian.com/wp-content/images/CSS3Generator.png"><img class="aligncenter size-full wp-image-9976" title="CSS3Generator" src="http://ajaxian.com/wp-content/images/CSS3Generator.png" alt="" width="479" height="112" /></a></p>
<p>We've seen a number of nice CSS3 generators. I <a href="http://www.css3maker.com/">stumbled across another one</a> recently that has a nice set of features for autogenerating the following from a single CSS3 generator web page:</p>
<ul>
<li>Border Radius</li>
<li>Gradients</li>
<li>CSS Transforms</li>
<li>CSS Animations</li>
<li>CSS Transitions</li>
<li>Text Shadow</li>
<li>Box Shadow</li>
<li>Text Rotation</li>
<li>@Font Face</li>
</ul>
<p style="text-align: center;"><a href="http://ajaxian.com/wp-content/images/CSS3Generator2.png"><img class="aligncenter size-full wp-image-9977" title="CSS3Generator2" src="http://ajaxian.com/wp-content/images/CSS3Generator2.png" alt="" width="479" height="225" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://ajaxian.com/archives/auto-generate-css3-for-fame-and-fortune/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>When does JavaScript trigger reflows and rendering?</title>
		<link>http://ajaxian.com/archives/when-does-javascript-trigger-reflows-and-rendering</link>
		<comments>http://ajaxian.com/archives/when-does-javascript-trigger-reflows-and-rendering#comments</comments>
		<pubDate>Wed, 18 Aug 2010 11:26:21 +0000</pubDate>
		<dc:creator>Michael Mahemoff</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Front Page]]></category>
		<category><![CDATA[Performance]]></category>

		<guid isPermaLink="false">http://ajaxian.com/?p=10098</guid>
		<description><![CDATA[Thomas Fuchs has some good performance things to say reflows and rendering. A video of wikipedia gives you an idea of how much happens when a basic page is rendered: The advice? The important thing is to always remember that reflowing and rendering HTML is the single most expensive operation browsers do. If your page <a href="http://ajaxian.com/archives/when-does-javascript-trigger-reflows-and-rendering">Read the rest...</a>]]></description>
			<content:encoded><![CDATA[<p>Thomas Fuchs has some good performance things to say <a href="http://mir.aculo.us/2010/08/17/when-does-javascript-trigger-reflows-and-rendering/">reflows and rendering</a>. A video of wikipedia gives you an idea of how much happens when a basic page is rendered:</p>
<p><embed id=VideoPlayback src=http://video.google.com/googleplayer.swf?docid=-5863446593724321515&#038;hl=en&#038;fs=true style=width:400px;height:326px allowFullScreen=true allowScriptAccess=always type=application/x-shockwave-flash> </embed></p>
<p>The advice?</p>
<blockquote><p>The important thing is to always remember that <b>reflowing and rendering HTML is the single most expensive operation browsers do.</b> If your page feels sluggish it’s most likely a problem with rendering. While the easiest way to optimize is to get rid of as many nodes as you can, and trying to have simpler CSS rules, sometimes JavaScript is the culprit.</p></blockquote>
<p>Following changes to the page, a Javascript query like <tt>someElement.offsetHeight</tt> will block execution - to give you the right answer, any pending reflow has to be executed first. So code like this:</p>
<div class="igBar"><a href="javascript:showCodeTxt('javascript-25');">PLAIN TEXT</a></div>
<div class="syntax_hilite"><span style="color:#000000; font-weight:bold;">JAVASCRIPT:</span>
<div id="javascript-25">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">someElement.<span style="color: #006600;">style</span>.<span style="color: #006600;">fontSize</span> = <span style="color: #3366CC;">"14px"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066; font-weight: bold;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span>someElement.<span style="color: #006600;">offsetHeight</span>&gt;<span style="color:#800000;">100</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color: #009900; font-style: italic;">/* ... */</span> <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">someElement.<span style="color: #006600;">style</span>.<span style="color: #006600;">paddingLeft</span> = <span style="color: #3366CC;">"20px"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066; font-weight: bold;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span>someElement.<span style="color: #006600;">offsetWidth</span>&gt;<span style="color:#800000;">100</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color: #009900; font-style: italic;">/* ... */</span> <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
</ol>
</div>
</div>
</div>
<p>could be twice as fast if you wrote it like this:</p>
<div class="igBar"><a href="javascript:showCodeTxt('javascript-26');">PLAIN TEXT</a></div>
<div class="syntax_hilite"><span style="color:#000000; font-weight:bold;">JAVASCRIPT:</span>
<div id="javascript-26">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">someElement.<span style="color: #006600;">style</span>.<span style="color: #006600;">fontSize</span> = <span style="color: #3366CC;">"14px"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">someElement.<span style="color: #006600;">style</span>.<span style="color: #006600;">paddingLeft</span> = <span style="color: #3366CC;">"20px"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066; font-weight: bold;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span>someElement.<span style="color: #006600;">offsetHeight</span>&gt;<span style="color:#800000;">100</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color: #009900; font-style: italic;">/* ... */</span> <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066; font-weight: bold;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span>someElement.<span style="color: #006600;">offsetWidth</span>&gt;<span style="color:#800000;">100</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color: #009900; font-style: italic;">/* ... */</span> <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
</ol>
</div>
</div>
</div>
<p>because there are two reflows in the first example, and only one in the second.</p>
]]></content:encoded>
			<wfw:commentRss>http://ajaxian.com/archives/when-does-javascript-trigger-reflows-and-rendering/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>YUI 3.2.0 preview release 1 &#8211; touch events support, transitions and browser-specific loading</title>
		<link>http://ajaxian.com/archives/yui-3-2-0-preview-release-1-touch-events-support-transitions-and-browser-specific-loading</link>
		<comments>http://ajaxian.com/archives/yui-3-2-0-preview-release-1-touch-events-support-transitions-and-browser-specific-loading#comments</comments>
		<pubDate>Tue, 27 Jul 2010 18:34:02 +0000</pubDate>
		<dc:creator>Chris Heilmann</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Front Page]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Library]]></category>
		<category><![CDATA[YUI]]></category>
		<category><![CDATA[preview]]></category>
		<category><![CDATA[Yahoo!]]></category>

		<guid isPermaLink="false">http://ajaxian.com/?p=9885</guid>
		<description><![CDATA[Over at the the YUI blog the team just announced the preview release of YUI 3.2.0. YUI3 now has some interesting new features that the team wants you to try and tell them if they work out for you. The changes to the already very powerful library are quite ambitious: Touch event support for mobile <a href="http://ajaxian.com/archives/yui-3-2-0-preview-release-1-touch-events-support-transitions-and-browser-specific-loading">Read the rest...</a>]]></description>
			<content:encoded><![CDATA[<p>Over at the <a href="http://www.yuiblog.com/blog/2010/07/26/3-2-0pr1/">the YUI blog the team just announced the preview release of YUI 3.2.0</a>. YUI3 now has some interesting new features that the team wants you to try and tell them if they work out for you. The changes to the already very powerful library are quite ambitious:</p>
<ul>
<li><a href="http://yuiblog.com/sandbox/yui/3.2.0pr1/tests/event-gestures/tests/manual/gestures.html">Touch event support</a> for mobile interfaces including flick and move gestures</li>
<li>Browser capability loading - which means that every browser gets the least amount of code necessary to make it work</li>
<li><a href="http://yuiblog.com/sandbox/yui/3.2.0pr1/examples/transition/transition-usage.html">Transition support for the animation module</a> - meaning only browsers that don't support CSS3 transitions get the JavaScript animation fallback</li>
<li>An <a href="http://yuiblog.com/sandbox/yui/3.2.0pr1/examples/cssgrids/cssgrids-units.html">update to the CSS grids</a> to allow for more flexible layouts</li>
<li>A <a href="http://yuiblog.com/sandbox/yui/3.2.0pr1/examples/scrollview/index.html">ScrollView widget</a> similar to the one in Apple iOS</li>
<li>The uploader has been transitioned over from YUI2 to YUI3</li>
</ul>
<p>So check out what is on offer and give the YUI team feedback on what would be nice to have and what is broken. In their own words:</p>
<blockquote><p>The goal of a preview release is to make it as easy as possible for all of us in the community to evaluate progress of the upcoming release and provide feedback.  Please take some time to test 3.2.0pr1 and let us know what you find by filing tickets in the <a href="http://yuilibrary.com/projects/yui3/newticket?version=3.2.0%20PR1">YUI 3 bug database</a> marked as “Observed in version” 3.2.0pr1.  We’ll do our best to address preview-release questions on the <a href="http://yuilibrary.com/forum/viewforum.php?f=15" title="YUI Library :: Forums :: View forum - YUI 3.x:">YUI 3 Forums</a>, too.</p></blockquote>
<p>There are three ways to get started with the preview release:  YUI 3.2.0pr1 is available on the CDN via the 3.2.0pr1 version tag — so you can reference preview-release files like <code><a href="http://yui.yahooapis.com/combo?3.2.0pr1/build/yui/yui-min.js">http://yui.yahooapis.com/combo?3.2.0pr1/build/yui/yui-min.js</a></code>.  If you switch to this seed file for the preview release, all subsequent <code>use()</code> statements will continue to load YUI 3.2.0pr1. Or You can download the full YUI 3.2.0pr1 from <a href="http://yuilibrary.com/downloads/">YUILibrary.com</a>, including source code and examples for all components. Or you can simply explore the <a href="http://yuiblog.com/sandbox/yui/3.2.0pr1/examples/" title="YUI 3: Index of Library Examples">functioning examples roster</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ajaxian.com/archives/yui-3-2-0-preview-release-1-touch-events-support-transitions-and-browser-specific-loading/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>A Little PIE with that CSS3?</title>
		<link>http://ajaxian.com/archives/a-little-pie-with-that-css3</link>
		<comments>http://ajaxian.com/archives/a-little-pie-with-that-css3#comments</comments>
		<pubDate>Mon, 19 Jul 2010 15:51:00 +0000</pubDate>
		<dc:creator>Rey Bango</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Front Page]]></category>

		<guid isPermaLink="false">http://ajaxian.com/?p=9835</guid>
		<description><![CDATA[Everyone's chomping at the bit to leverage new HTML5 and CSS3 features but with some older browsers not supporting them, hacks are still needed to make things work in a cross-browser fashion. We've seen libs that make things easier such as Remy Sharp's html5shiv and Modernizr and now we can add another one. Jason Johnston's <a href="http://ajaxian.com/archives/a-little-pie-with-that-css3">Read the rest...</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://ajaxian.com/wp-content/images/pie-logo.png"><img src="http://ajaxian.com/wp-content/images/pie-logo.png" alt="" title="pie-logo" width="194" height="127" class="alignright size-full wp-image-9836" /></a>Everyone's chomping at the bit to leverage new HTML5 and CSS3 features but with some older browsers not supporting them, hacks are still needed to make things work in a cross-browser fashion. We've seen libs that make things easier such as <a href="http://code.google.com/p/html5shiv/">Remy Sharp's html5shiv</a> and <a href="http://www.modernizr.com/">Modernizr</a> and now we can add another one.</p>
<p>Jason Johnston's new <a href="http://css3pie.com/">PIE library</a> makes it easy to rendering several of the most useful CSS3 decoration features within Internet Explorer versions 6 through 8. He took an interesting approach by using IE DHTML Behaviors to style the elements and provide the necessary functionality to emulate the CSS3 functionality.  So to add rounded corners to an element, your CSS code might look like this in plain 'ole CSS:</p>
<div class="igBar"><a href="javascript:showCodeTxt('css-29');">PLAIN TEXT</a></div>
<div class="syntax_hilite"><span style="color:#000000; font-weight:bold;">CSS:</span>
<div id="css-29">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #cc00cc;">#myElement <span style="color:#006600; font-weight:bold;">&#123;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">background</span>: #EEE;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">padding</span>: 2em;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; -moz-border-radius: 1em;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; -webkit-border-radius: 1em;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; border-radius: 1em;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
</ol>
</div>
</div>
</div>
<p>To add support in IE 6-8 using PIE, you'd add this:</p>
<div class="igBar"><a href="javascript:showCodeTxt('css-30');">PLAIN TEXT</a></div>
<div class="syntax_hilite"><span style="color:#000000; font-weight:bold;">CSS:</span>
<div id="css-30">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #cc00cc;">#myElement <span style="color:#006600; font-weight:bold;">&#123;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ...</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; behavior: <span style="color: #993333;">url</span><span style="color:#006600; font-weight:bold;">&#40;</span>PIE.htc<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
</ol>
</div>
</div>
</div>
<p>PIE currently has full or partial support for:</p>
<ul>
<li>border-radius</li>
<li>box-shadow</li>
<li>border-image</li>
<li>multiple background images</li>
<li>linear-gradient background images</li>
</ul>
<p>Unfortunately, there seems to only be one demo at the moment, which is border-radius rendering via the home page, but it's still seems like a good start with a lot of future potential. </p>
<p>I've never personally used IE DHTML Behaviors or HTML Components so I looked them up and found these intro links for those who might be interested in better understanding them:</p>
<p><a href="http://msdn.microsoft.com/en-us/library/ms532146.aspx">Using HTML Components to Implement DHTML Behaviors in Script</a><br />
<a href="http://msdn.microsoft.com/en-us/library/ms531079.aspx">Introduction to DHTML Behaviors</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ajaxian.com/archives/a-little-pie-with-that-css3/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>jQuery.fn.webkitTransform: bananas on the skew-whiff</title>
		<link>http://ajaxian.com/archives/jquery-fn-webkittransform-bananas-on-the-skew-whiff</link>
		<comments>http://ajaxian.com/archives/jquery-fn-webkittransform-bananas-on-the-skew-whiff#comments</comments>
		<pubDate>Wed, 30 Jun 2010 12:01:09 +0000</pubDate>
		<dc:creator>Dion Almaer</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Front Page]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://ajaxian.com/?p=9725</guid>
		<description><![CDATA[Franz Enzenhofer has created a nice new webkitTransform plugin that helps you manage transforms and state. Franz tells us more: With jQuery.css you can't easily change the webkitTransform CSS because webkitTransform is not your average CSS. If in one step you add .css('-webkit-transform', "rotate(20deg)") and in the next step .css('-webkit-transform', "scale(2.0)") the rotate value gets <a href="http://ajaxian.com/archives/jquery-fn-webkittransform-bananas-on-the-skew-whiff">Read the rest...</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.facesaerch.com/banana.html"><img src="http://ajaxian.com/wp-content/images/bananacss3.png" alt="" title="bananacss3" width="690" height="425" class="alignnone size-full wp-image-9726" /></a></p>
<p>Franz Enzenhofer has created a nice new <a href="http://www.facesaerch.com/banana.html">webkitTransform</a> plugin that helps you manage transforms and state.</p>
<p>Franz tells us more:</p>
<blockquote><p>
With jQuery.css you can't easily change the webkitTransform CSS because webkitTransform is not your average CSS.</p>
<p>If in one step you add <code>.css('-webkit-transform', "rotate(20deg)")</code> and in the next step <code>.css('-webkit-transform', "scale(2.0)")</code> the rotate value gets reset, as you have rewritten the complete -webkit-transform CSS value. </p>
<p>You could use the WebKitCSSMatrix javascript element, but it's currently buggy, not consistently implemented and a pain to use. </p>
<p>Additionally you can't just retrieve the '-webkit-transform' css with .css('-webkit-transform') as this just gives a matrix code.</p>
<p>Our goal with webkitTransform() was to fix this problem. With it, every element you assign webkit-transform css with can be edited in a simple way, without resetting every other -webkit-transform values.</p>
<blockquote></blockquote>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://ajaxian.com/archives/jquery-fn-webkittransform-bananas-on-the-skew-whiff/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>ChromeKit: Some folk love putting windows in browsers</title>
		<link>http://ajaxian.com/archives/chromekit-some-folk-love-putting-windows-in-browsers</link>
		<comments>http://ajaxian.com/archives/chromekit-some-folk-love-putting-windows-in-browsers#comments</comments>
		<pubDate>Tue, 29 Jun 2010 11:10:58 +0000</pubDate>
		<dc:creator>Dion Almaer</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Front Page]]></category>

		<guid isPermaLink="false">http://ajaxian.com/?p=9713</guid>
		<description><![CDATA[The awesome Guillermo Rauch and Nathan White have taken one of the Web code katas and played with it. Before the Web we had [wW]indows. Maybe that is why developers are keen to implement windows within the Web page, mainly to see if it can be done. We had the great Emil and Erik building <a href="http://ajaxian.com/archives/chromekit-some-folk-love-putting-windows-in-browsers">Read the rest...</a>]]></description>
			<content:encoded><![CDATA[<p>The awesome Guillermo Rauch and Nathan White have taken one of the Web code katas and played with it. Before the Web we had [wW]indows. Maybe that is why developers are keen to implement windows within the Web page, mainly to see if it can be done. We had the great <a href="http://eae.net/">Emil and Erik</a> building desktops on the Web before we were in Web nappies. Now we have Ext Desktop, and many more.</p>
<p>The latest fun from Guillermo and Nathan is <a href="http://github.com/guille/chromekit">ChromeKit</a>, which gives you windows that look like Google Chrome.</p>
<p>The one tweak to the code kata this time around, is their use of CSS3 goodness to <a href="http://devthought.com/wp-content/projects/chromekit/#">show off skewing windows</a> as they are tiled together.</p>
<p><a href="http://github.com/guille/chromekit"><img src="http://ajaxian.com/wp-content/images/chromekit.png" alt="" title="chromekit" width="460" height="259" class="alignnone size-full wp-image-9714" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://ajaxian.com/archives/chromekit-some-folk-love-putting-windows-in-browsers/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Made In CSS; iOS icons and more</title>
		<link>http://ajaxian.com/archives/made-in-css-ios-icons-and-more</link>
		<comments>http://ajaxian.com/archives/made-in-css-ios-icons-and-more#comments</comments>
		<pubDate>Mon, 28 Jun 2010 11:14:14 +0000</pubDate>
		<dc:creator>Dion Almaer</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Front Page]]></category>

		<guid isPermaLink="false">http://ajaxian.com/?p=9716</guid>
		<description><![CDATA[Do you enjoy the "looks at me build something cool in pure CSS"-meme? It is kinda fun. On the one hand is shows what amazing things people can build, and on the other.... it reminds us that we need some tools to help make life easier. At least the platform is here, and tools can <a href="http://ajaxian.com/archives/made-in-css-ios-icons-and-more">Read the rest...</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.graphicpeel.com/post/740928981/ios-icons-made-in-pure-css"><img src="http://ajaxian.com/wp-content/images/ioscssicons.png" alt="" title="ioscssicons" width="460" height="197" class="alignnone size-full wp-image-9717" /></a></p>
<p>Do you enjoy the "looks at me build something cool in pure CSS"-meme? It is kinda fun. On the one hand is shows what amazing things people can build, and on the other.... it reminds us that we need some tools to help make life easier. At least the platform is here, and tools can come later.</p>
<p><a href="http://twitter.com/spiralstairs">Louis Harboe</a> has followed up his purchase of an iPhone 4 with <a href="http://blog.graphicpeel.com/post/740928981/ios-icons-made-in-pure-css">iOS 4 icons made with CSS</a>. Now only do we get to see his work, but he talks about the high level ideas behind the implementation:</p>
<blockquote><p>
In the contacts icon, I used 5 different shapes for the silhouette icon. The head is a rectangle with rounded corners, followed by another rectangle for the neck and a distorted semi-circle for the body. In order to get the curve of the shoulders to the neck, I placed two circles on top of the shapes.</p>
<p>The weather icon has several rays of light shooting from behind the sun. Each one of these rays is actually a long rectangle with a gradient that fades to transparent on either end. I used -webkit-transform:rotate to rotate each rectangle to a different angle. The same effect was used for the iTunes icon.</p>
<p>To get the cloud icon on the iDisk icon, I used two circles layered on top of each other, above a rounded rectangle. The larger circle has a gradient that cuts off just before the rectangle.
</p></blockquote>
<p>Take a full example such as calendar:</p>
<div class="igBar"><a href="javascript:showCodeTxt('css-32');">PLAIN TEXT</a></div>
<div class="syntax_hilite"><span style="color:#000000; font-weight:bold;">CSS:</span>
<div id="css-32">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.calendar </span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">background</span>: #9B2424;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.calendar </span><span style="color: #6666ff;">.header </span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; -webkit-border-top-left-radius: 30px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; -webkit-border-top-right-radius: 30px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">background</span>: -webkit-gradient<span style="color:#006600; font-weight:bold;">&#40;</span>linear, <span style="color:#800000;">0</span>% <span style="color:#800000;">0</span>%, <span style="color:#800000;">0</span>% <span style="color:#800000;">100</span>%, from<span style="color:#006600; font-weight:bold;">&#40;</span>#EEC4C4<span style="color:#006600; font-weight:bold;">&#41;</span>, to<span style="color:#006600; font-weight:bold;">&#40;</span>#521B1C<span style="color:#006600; font-weight:bold;">&#41;</span>, color-stop<span style="color:#006600; font-weight:bold;">&#40;</span>.<span style="color:#800000;">92</span>,#da3434<span style="color:#006600; font-weight:bold;">&#41;</span>,color-stop<span style="color:#006600; font-weight:bold;">&#40;</span>.<span style="color:#800000;">1</span>,#ef9fa5<span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">height</span>: 50px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">width</span>: 176px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; -webkit-box-shadow: <span style="color: #993333;">inset</span> 0px 2px 1px rgba<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;">255</span>, <span style="color:#800000;">255</span>, <span style="color:#800000;">255</span>, <span style="color:#800000;">0</span>.<span style="color:#800000;">4</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.calendar </span>p<span style="color: #6666ff;">.weekday </span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">color</span>: #fff;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">font-weight</span>: <span style="color: #993333;">bold</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">text-shadow</span>: 0px 1px 1px rgba<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;">0</span>, <span style="color:#800000;">0</span>, <span style="color:#800000;">0</span>, <span style="color:#800000;">0</span>.<span style="color:#800000;">7</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">width</span>: 176px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; line-<span style="color: #000000; font-weight: bold;">height</span>: 50px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">font-size</span>: 25px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">text-align</span>: <span style="color: #993333;">center</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.calendar </span>p<span style="color: #6666ff;">.daynumber </span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">color</span>: #000;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">font-weight</span>: <span style="color: #993333;">bold</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">text-shadow</span>: 0px 1px 0px #fff;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">width</span>: 176px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; line-<span style="color: #000000; font-weight: bold;">height</span>: 126px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">font-size</span>: 130px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">text-align</span>: <span style="color: #993333;">center</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.calendar </span><span style="color: #6666ff;">.paper </span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; -webkit-border-bottom-left-radius: 30px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; -webkit-border-bottom-right-radius: 30px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">background</span>: -webkit-gradient<span style="color:#006600; font-weight:bold;">&#40;</span>linear, <span style="color:#800000;">0</span>% <span style="color:#800000;">0</span>%, <span style="color:#800000;">0</span>% <span style="color:#800000;">100</span>%, from<span style="color:#006600; font-weight:bold;">&#40;</span>#7A7A7A<span style="color:#006600; font-weight:bold;">&#41;</span>, to<span style="color:#006600; font-weight:bold;">&#40;</span>#EDEDED<span style="color:#006600; font-weight:bold;">&#41;</span>, color-stop<span style="color:#006600; font-weight:bold;">&#40;</span>.<span style="color:#800000;">05</span>,#BFBFBF<span style="color:#006600; font-weight:bold;">&#41;</span>,color-stop<span style="color:#006600; font-weight:bold;">&#40;</span>.<span style="color:#800000;">2</span>,#E3E3E3<span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">height</span>: 126px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">width</span>: 176px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
</ol>
</div>
</div>
</div>
<p>Awesome. One nice thing about this approach is that it can scale. iPhone 4 users are already talking about how glaring it is when apps have low res assets. Even the Facebook applications.... the text looks great, but the icon is blocky.</p>
<p>Also, some other nice CSS gradient examples were <a href="http://cubiq.org/dropbox/cssgrad.html">put on display</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ajaxian.com/archives/made-in-css-ios-icons-and-more/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>HTML5Rocks.com: Google DevRel shares the love</title>
		<link>http://ajaxian.com/archives/html5rocks-com-google-devrel-shares-the-love</link>
		<comments>http://ajaxian.com/archives/html5rocks-com-google-devrel-shares-the-love#comments</comments>
		<pubDate>Tue, 22 Jun 2010 20:14:56 +0000</pubDate>
		<dc:creator>Dion Almaer</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Front Page]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://ajaxian.com/?p=9657</guid>
		<description><![CDATA[The Chrome and HTML DevRel team at Google have released a new portal, HTML5 Rocks, that packages together some of the great resources available on HTML5 and the renaissance of browsers. Whether it be references on what you can do, to readiness to shims to get use features now. Beyond the resources, there is the <a href="http://ajaxian.com/archives/html5rocks-com-google-devrel-shares-the-love">Read the rest...</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://html5rocks.com/"><img src="http://ajaxian.com/wp-content/images/html5rocks.png" alt="" title="html5rocks" width="460" height="173" class="alignnone size-full wp-image-9659" /></a></p>
<p>The Chrome and HTML DevRel team at Google <a href="http://blog.chromium.org/2010/06/html5-rocks-resource-for-open-web.html">have released a new portal</a>, <a href="http://html5rocks.com/">HTML5 Rocks</a>, that packages together some of the great resources available on HTML5 and the renaissance of browsers.</p>
<p>Whether it be references on <a href="https://developer.mozilla.org/en/HTML/HTML5">what</a> <a href="http://dev.chromium.org/developers/web-platform-status">you</a> <a href="http://diveintohtml5.org/">can</a> <a href="http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(HTML5)">do</a>, to <a href="http://html5readiness.com/">read</a><a href="http://caniuse.com/">iness</a> to <a href="http://code.google.com/p/html5shiv/">shims</a> to <a href="http://www.modernizr.com/">get use features now</a>.</p>
<p><img src="http://ajaxian.com/wp-content/images/csstransformsslide.png"/></p>
<p>Beyond the resources, there is the killer <a href="http://slides.html5rocks.com/">HTML5 Slide Presentation</a> and <a href="http://playground.html5rocks.com/">interactive playground</a>.</p>
<p>A lot of nice stuff, all in one place. This is the first release, and we are sure to see a lot of additions coming soon. What would you like to see?</p>
]]></content:encoded>
			<wfw:commentRss>http://ajaxian.com/archives/html5rocks-com-google-devrel-shares-the-love/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

