<?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>Position Absolute &#187; CSS / HTML</title>
	<atom:link href="http://www.position-absolute.com/category/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.position-absolute.com</link>
	<description>Waves of front-end development and entrepreneurship articles</description>
	<lastBuildDate>Mon, 13 May 2013 17:54:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Authoring a css book and what is next</title>
		<link>http://www.position-absolute.com/news/authoring-a-css-book-and-what-is-next/</link>
		<comments>http://www.position-absolute.com/news/authoring-a-css-book-and-what-is-next/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 17:03:06 +0000</pubDate>
		<dc:creator>Cedric Dugas</dc:creator>
				<category><![CDATA[CSS / HTML]]></category>
		<category><![CDATA[Javascript / jQuery]]></category>
		<category><![CDATA[Random news]]></category>

		<guid isPermaLink="false">http://www.position-absolute.com/?p=3704</guid>
		<description><![CDATA[<p>I neglected quite a bit my blog for some times now .. After 3 years of doing this I  feel like I have less and less to say about web development. Well not that it happens to every blogs of&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>I neglected quite a bit my blog for some times now .. After 3 years of doing this I  feel like I have less and less to say about web development. Well not that it happens to every blogs of course <img src='http://www.position-absolute.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> . I still have some stuff for you guys, but I feel my time doing one article a week is gone.</p>
<h2>Confoo conference</h2>
<p>This year I am trying to do a talk at the <a href="http://confoo.ca/en/call-for-papers/1028">Confoo conference</a>, basically it&#8217;s an introduction course at code organization with jQuery, called jQuery Spaghetti. It&#8217;s probably not for most of you guys and I know it has been done in other js conferences, but I feel like Confoo will have quite a bit of &#8216;hobby&#8217; jQuery devs since it&#8217;s really a diverse conference about all web technologies (hoo and it is also in french). Still, if you like the idea and you&#8217;re in Montreal, I could use a vote or 2 for <a href="http://confoo.ca/en/call-for-papers/1028">my talk</a>. (You can downvote too, any feedback is appreciate!)</p>
<h2>Self-publishing a book</h2>
<p>Did you know that anyone can wrote a book and self-publish it these days? and I am not talking about  doing a pdf, I&#8217;m talking about a paperback book available from amazon. This is what <a href="http://lulu.com">lulu.com</a> and <a href="http://createspace.com">createspace.com</a> are offering. It does all the hard work for you (well beside writing the book of course).</p>
<p>It&#8217;s quite impressive to upload a pdf and have a paperback available from online stores, and even physical book stores with lulu.</p>
<h2>A book on css, really?</h2>
<p>Yup, I am writing a book about html and css templating, this has been done 30 times you might say, but I really think the approach I am taking has not been that used. In this book I am not talking about HTML5, CSS3, grids, etc. I am talking about doing templating efficiently on deadlines with a cross-browsers angle. </p>
<p>The book will walk you through 2 examples (a website homepage and an email), and explain you the problems you will encounter along the way. I&#8217;m already 80% done with the writing, but doing image assets takes quite a bit of times.</p>
<h2>A book looking professional</h2>
<p>Obviously if you are authoring a book, you want it to look professional. Unfortunatly most of us are not designers. Fortunately there is a couple of inDesign book template available, I even found one free, and its a really nice <a href="http://www.stockindesign.com/inicio/item/book-template-aristo">book template</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.position-absolute.com/news/authoring-a-css-book-and-what-is-next/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Creating a CSS3D hovering state with fallback for older browsers</title>
		<link>http://www.position-absolute.com/articles/creating-a-css3d-hovering-state-with-fallback-for-older-browsers/</link>
		<comments>http://www.position-absolute.com/articles/creating-a-css3d-hovering-state-with-fallback-for-older-browsers/#comments</comments>
		<pubDate>Thu, 14 Jul 2011 01:42:49 +0000</pubDate>
		<dc:creator>Cedric Dugas</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[CSS / HTML]]></category>
		<category><![CDATA[Small Projects & plugins]]></category>

		<guid isPermaLink="false">http://www.position-absolute.com/?p=3673</guid>
		<description><![CDATA[<p>HTML5 &#038; CSS3 are a big sugar rush in the front-end community currently, you can see those nice CSS3 buttons popping everywhere around the web. For one project I am working on I  wanted to use a nice 3d flip&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>HTML5 &#038; CSS3 are a big sugar rush in the front-end community currently, you can see those nice CSS3 buttons popping everywhere around the web. For one project I am working on I  wanted to use a nice 3d flip effect like <a href="http://desandro.github.com/3dtransforms/examples/card-01.html">this one</a>. </p>
<p>Unfortunately that kind of effect is currently only achievable with Safari and Chrome, so to make this thing work I needed a normal hover behavior for other browsers, and that is what I wanted to show you how to do here.</p>
<style>
.containerCard {
	height:194px;
	position:relative;
	background:#fff;
	width:144px;
}
	.containerCard .element{
		height:194px;
		position:absolute;
		top:0; left:0;
		background:#fff;
		width:144px;
	} .containerCard .elementB{
		display:none;
	} .containerCard:hover .elementA {
			display:none;
		} .containerCard:hover .elementB{
			display:block;
		} @media screen and (-webkit-min-device-pixel-ratio:0) {
.containerCard .elementB{
				-webkit-transform: rotateY(-180deg);
				-webkit-transform-style: preserve-3d;
				-webkit-backface-visibility: hidden;</p>
<p>				/* -- transition is the magic sauce for animation -- */
				transition: all .4s ease-in-out;
				-moz-transition: all .4s ease-in-out;
				-webkit-transition: all .4s ease-in-out;
			}	
.containerCard .elementA{
				-webkit-transform: rotateY(0deg);
				-webkit-transform-style: preserve-3d;
				-webkit-backface-visibility: hidden;
				/* -- transition is the magic sauce for animation -- */
				transition: all .4s ease-in-out;
				-moz-transition: all .4s ease-in-out;
				-webkit-transition: all .4s ease-in-out;
			}
.containerCard:hover .elementA{
					-webkit-transform: rotateY(180deg);
				}
.containerCard:hover .elementB{
					-webkit-transform: rotateY(0deg);
				}
.containerCard{
					-webkit-perspective: 600;
				}
.containerCard:hover .elementA{
					display:block;
				}
.containerCard .elementB{display:block;}		
		}		
</style>
<div class="containerCard">
<div class="elementA element"><img src="/back.jpg" width="144" height="194" alt="Back"></div>
<div class="elementB element"><img src="/king.jpg" width="144" height="194" alt="Back"></div>
</div>
<h2>Setup</h2>
<p>I&#8217;m not going to be talking about how to do the flip effect, there is already <a href="http://desandro.github.com/3dtransforms/">several</a> <a href="http://24ways.org/2010/intro-to-css-3d-transforms">posts</a> about <a href="http://css3wizardry.com/2010/07/13/css3-page-flips/">that</a>. What I will show you is how to use it intelligently and make it fallback. </p>
<p>So, why this effect is not working on Firefox you might ask? Firefox had css3d since version 3.5 after all, well webkit implemented a new property, *currently a w3c draft* called <a href="http://www.w3.org/TR/css3-3d-transforms/">backface-visibility</a>. This nifty property allow you to hide the back face of an element. I guess you can imagine and this can come handy in a flip effect. This is something that IE9 and Firefox does not currently support.</p>
<h2>Creating a version compatible with other browsers</h2>
<p>For achieving this, we will need to use 2 absolute positioned elements, and show and hide them with display:none on the hover state, pretty easy in fact. The tricky part is that we also need to override this behavior on webkit based browsers(and maybe other browsers one day). For this, we will need to use a nice css feature called media queries.</p>
<h2>Media queries </h2>
<p>Yup, you can do conditionals statement in CSS. This is really handy if you want to implement edgy stuff on browser that supports it, and still give a nice level of support for older browsers (it&#8217;s, of course, useful for <a href="http://www.w3.org/TR/css3-mediaqueries/">other very important things</a>). For our little project we will use this media query.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">@media screen and (-webkit-min-device-pixel-ratio:0) { }</pre></div></div>

<p>So why use <em>-webkit-min-device-pixel-ratio</em>? Well because this property has been added at the same time that backface-visibility. So yes, this is a <strong>hack</strong>! But it works, I would like to have something cleaner but this will do for now, we will also need use something similar when firefox will implement backface-visibility.</p>
<p>So what our CSS code looks like?</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">.containerCard {
	height:194px;
	position:relative;
	background:#fff;
	width:144px;
}
	.containerCard .element{
		height:194px;
		position:absolute;
		top:0; left:0;
		background:#fff;
		width:144px;
	}
	.containerCard .elementB{
		display:none;
	}	
&nbsp;
		.containerCard:hover .elementA {
			display:none;
		}
		.containerCard:hover .elementB{
			display:block;
		}
&nbsp;
&nbsp;
		@media screen and (-webkit-min-device-pixel-ratio:0) {
&nbsp;
			.containerCard .elementB{
				-webkit-transform: rotateY(-180deg);
				-webkit-transform-style: preserve-3d;
				-webkit-backface-visibility: hidden;
&nbsp;
				/* -- transition is the magic sauce for animation -- */
				transition: all .4s ease-in-out;
				-moz-transition: all .4s ease-in-out;
				-webkit-transition: all .4s ease-in-out;
			}	
			.containerCard .elementA{
				-webkit-transform: rotateY(0deg);
				-webkit-transform-style: preserve-3d;
				-webkit-backface-visibility: hidden;
&nbsp;
				/* -- transition is the magic sauce for animation -- */
				transition: all .4s ease-in-out;
				-moz-transition: all .4s ease-in-out;
				-webkit-transition: all .4s ease-in-out;
			}
&nbsp;
				.containerCard:hover .elementA{
					-webkit-transform: rotateY(180deg);
				}
				.containerCard:hover .elementB{
					-webkit-transform: rotateY(0deg);
				}
				.containerCard{
					-webkit-perspective: 600;
				}
		     	.containerCard:hover .elementA{
					display:block;
				}
				.containerCard .elementB{display:block;}		
		}</pre></div></div>

<h2>Download</h2>
<p>There we have it! As usual the code can be found on github.</p>
<p class="clearfix"><a class="download" href="https://github.com/posabsolute/css3d-hover-effect-with-fallback">Download the source code</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.position-absolute.com/articles/creating-a-css3d-hovering-state-with-fallback-for-older-browsers/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Introduction to the Google WebFont Loader</title>
		<link>http://www.position-absolute.com/articles/introduction-to-the-google-webfont-loader-and-how-to-avoid-font-face-text-flickering-with-it/</link>
		<comments>http://www.position-absolute.com/articles/introduction-to-the-google-webfont-loader-and-how-to-avoid-font-face-text-flickering-with-it/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 01:24:42 +0000</pubDate>
		<dc:creator>Cedric Dugas</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[CSS / HTML]]></category>
		<category><![CDATA[Javascript / jQuery]]></category>

		<guid isPermaLink="false">http://www.position-absolute.com/?p=3027</guid>
		<description><![CDATA[<p>You remember the &#8220;old days&#8221; when you were cursing at sIFR because it would not give you the font-size you wanted, did text flickering on page load or was just not working at all on IE? Well those days are&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>You remember the &#8220;old days&#8221; when you were cursing at sIFR because it would not give you the font-size you wanted, did text flickering on page load or was just not working at all on IE? Well those days are all gone, the introduction of Cufon sometime ago solved most of the sIFR issues, but one of the big downside was that you could not select the text anymore. </p>
<p>Now with <a target="_blank" href="http://craigmod.com/journal/font-face/">@font-face</a> we finally got a native way of using custom fonts in our websites. Unfortunately this is not as easy as it should be. This is probably why Google launched recently the <a target="_blank" href="http://code.google.com/apis/webfonts/docs/webfont_loader.html">Google WebFont Loader</a> and the <a target="_blank" href="http://code.google.com/webfonts">Google font directory</a>. Two easy way of using @font-face without any trouble, well, less trouble.</p>
<h2>The text flickering problem all over again</h2>
<p>@font-face suffers of the same illness that its predecessors, until the font file is loaded it will display your text with the fallback font family. When you know that 20px with an hand written font can be a lot smaller than 20px with Arial, this becomes a major problem, you don&#8217;t want to see an enormous text until your custom font is loaded.</p>
<h2>Google WebFont Loader at the rescue</h2>
<p>I will be showing how you can use the google font loader to avoid text flickering and have a good fallback font in case the font file is not loading. You get the best of all world, but it comes with a price of a light javascript hack.</p>
<p><strong>Getting started</strong></p>
<p>Using the basic google font ability is easy (but it is quite a bunch of lines of code), you just embed the font you want!</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;"> &lt;script type=&quot;text/javascript&quot;&gt;
      WebFontConfig = {
        google: { families: [ 'Tangerine', 'Cantarell' ] }
      };
      (function() {
        var wf = document.createElement('script');
        wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
            '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
        wf.type = 'text/javascript';
        wf.async = 'true';
        var s = document.getElementsByTagName('script')[0];
        s.parentNode.insertBefore(wf, s);
      })();
    &lt;/script&gt;</pre></div></div>

<p>As you can see, in this example you just need to change this line  <em>google: { families: [ 'Tangerine', 'Cantarell' ] }</em> for the font you want from the <a target="_blank" href="http://code.google.com/webfonts">Google Font Directory</a> (other fonts are also available like those from typekit.com). There is also quite a bunch of options you can use, have a look at the <a target="_blank" href="http://code.google.com/apis/webfonts/docs/webfont_loader.html">loader API</a> for more information.</p>
<p>Now this script does one thing interesting, it adds a css class to your document html, it will add <strong>wf-loading</strong> until the font is loaded,  <strong>wf-inactive</strong> if it can&#8217;t load the font, and  <strong>wf-active</strong> when it&#8217;s successful. We can use this at our advantage.  You can provide a valid CSS fallback that protect yourself from enormous and actually define your fallback font instead of being dependent of the same line-height and font-size.</p>
<h2>An example</h2>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;head&gt;		
	&lt;script type=&quot;text/javascript&quot;&gt;
	      WebFontConfig = {
	        google: { families: [ 'Tangerine', 'Reenie Beanie' ] }
	      };
	      (function() {
	        var wf = document.createElement('script');
	        wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
	            '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
	        wf.type = 'text/javascript';
	        wf.async = 'true';
	        var s = document.getElementsByTagName('script')[0];
	        s.parentNode.insertBefore(wf, s);
	      })();
	    &lt;/script&gt;
&nbsp;
	      &lt;style type=&quot;text/css&quot;&gt;
	      p {
	        font-family: arial;
	        font-size:20px;
                line-height:22px;
	      }
	      h1 {
	        font-family: serif;
	        font-size: 22px;
	      }
	      .wf-loading p {
	        visibility:hidden;
	      }
	      .wf-loading h1 {
	        visibility:hidden;
	      }
	      .wf-inactive p, .wf-inactive h1{ visibility:visible;}
&nbsp;
	      .wf-active p {
	        font-family: 'Tangerine', serif;
	        font-size:33px;
                line-height:26px;
	      }
	      .wf-active h1 {
	        font-family: 'Reenie Beanie', serif;
	        font-size: 33px;
	      }
	    &lt;/style&gt;
	&lt;/head&gt;
	&lt;body&gt;
		&lt;h1&gt;This is a title with a custom font&lt;/h1&gt;
		&lt;p&gt;No text flickering and got the somewhat the same font height in fallback&lt;/p&gt;
		&lt;p&gt;View the source to have a look at the code&lt;/p&gt;
	&lt;/body&gt;</pre></div></div>

<p class="clearfix"><a class="demo" href="http://www.position-absolute.com/creation/font/example1.html" target="_blank">View demo</a></p>
<p>In this example we can see that we have a very good font-size fallback we use wf-active to set our custom font, and we just do our normal css flow as a fallback.</p>
<h2>A flicker you say?</h2>
<p>The text still flicker a bit at random times, specially in IE, this is because, wf-loading is added when the javascript file from Google is parsed in the document, and for some reasons (I guess it is a bug), even is we put async false, sometimes the wf-loading class is added to late.</p>
<p>The best way to avoid the flicker behavior is to add a class <em>wf-loading</em> to the html document in javascript ourself, you then add the rule <em>visibility:hidden</em> in css to it, and on <em> .wf-inactive and .wf-active</em> you simply add <em>visibility:visible</em>, the same css rules added in the last example. This way if the font can&#8217;t be loaded we will receive the wf-inactive and the text will be displayed. </p>
<p>With this solution your users with javascript disabled will still see your text with your normal fonts.<br />
<em><br />
<strong>(This solution has been updated, Thanks to <a href="http://paulirish.com/">Paul Irish</a> idea in the comments section)</em></strong></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">         &lt;script&gt;
	      (function() {
	      	document.getElementsByTagName(&quot;html&quot;)[0].setAttribute(&quot;class&quot;,&quot;wf-loading&quot;)
		//  NEEDED to push the wf-loading class to your head
		document.getElementsByTagName(&quot;html&quot;)[0].setAttribute(&quot;className&quot;,&quot;wf-loading&quot;) 
	      	// for IE...
&nbsp;
	        var wf = document.createElement('script');
	        wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
	            '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
	        wf.type = 'text/javascript';
	        wf.async = 'false';
	        var s = document.getElementsByTagName('script')[0];
	        s.parentNode.insertBefore(wf, s);
	      })();
	    &lt;/script&gt;
    &lt;style type=&quot;text/css&quot;&gt;
	       p {
	        font-family: arial;
	        font-size:20px;
	      }
	      h1 {
	        font-family: serif;
	        font-size: 22px;
&nbsp;
	      }
	      .wf-loading p {
	        visibility:hidden;
	      }
	      .wf-loading h1 {
	        visibility:hidden;
	      }
	      .wf-inactive p, .wf-inactive h1{ visibility:visible;}
	      .wf-active p {
	        font-family: 'Tangerine', serif;
	        font-size:33px;
	        visibility:visible;
	      }
&nbsp;
	      .wf-active h1 {
	        font-family: 'Reenie Beanie', serif;
	        font-size: 33px;
	       visibility:visible;
	      }
	    &lt;/style&gt;</pre></div></div>

<p class="clearfix"><a class="demo" href="http://www.position-absolute.com/creation/font/" target="_blank">View demo</a></p>
<h2>That&#8217;s it</h2>
<p>Hope it will help you guys get your custom fonts working as you want!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.position-absolute.com/articles/introduction-to-the-google-webfont-loader-and-how-to-avoid-font-face-text-flickering-with-it/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>CSS3 transform is coming in a browser near you (even in IE)</title>
		<link>http://www.position-absolute.com/news/css3-transform-are-coming-in-a-browser-near-you-even-in-ie/</link>
		<comments>http://www.position-absolute.com/news/css3-transform-are-coming-in-a-browser-near-you-even-in-ie/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 17:21:17 +0000</pubDate>
		<dc:creator>Cedric Dugas</dc:creator>
				<category><![CDATA[CSS / HTML]]></category>
		<category><![CDATA[Random news]]></category>
		<category><![CDATA[featured]]></category>

		<guid isPermaLink="false">http://www.position-absolute.com/?p=2404</guid>
		<description><![CDATA[<p>There has been some cool developments lately on the use of CSS3 transform properties. First we have Dojo has announced that the next version of dojo.fx will support CSS3 transform. You can see the <a href="http://archive.dojotoolkit.org/nightly/dojotoolkit/demos/css3/demo.html">demo</a> here.</p>
<p>Another nice project, <a href="http://www.useragentman.com/blog/2010/04/05/cross-browser-animated-css-transforms-even-in-ie/">cssSandpaper</a> is a js&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>There has been some cool developments lately on the use of CSS3 transform properties. First we have Dojo has announced that the next version of dojo.fx will support CSS3 transform. You can see the <a href="http://archive.dojotoolkit.org/nightly/dojotoolkit/demos/css3/demo.html">demo</a> here.</p>
<p>Another nice project, <a href="http://www.useragentman.com/blog/2010/04/05/cross-browser-animated-css-transforms-even-in-ie/">cssSandpaper</a> is a js animation framework making the use of CSS3 transform easy.</p>
<p>Check it out, those two are well worth the read.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.position-absolute.com/news/css3-transform-are-coming-in-a-browser-near-you-even-in-ie/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Microsoft to Double Down on HTML5 With Internet Explorer 9? Really?</title>
		<link>http://www.position-absolute.com/articles/microsoft-to-double-down-on-html5-with-internet-explorer-9-really/</link>
		<comments>http://www.position-absolute.com/articles/microsoft-to-double-down-on-html5-with-internet-explorer-9-really/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 00:54:16 +0000</pubDate>
		<dc:creator>Cedric Dugas</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[CSS / HTML]]></category>
		<category><![CDATA[Opinions]]></category>
		<category><![CDATA[featured]]></category>

		<guid isPermaLink="false">http://www.position-absolute.com/?p=2305</guid>
		<description><![CDATA[<p>I was pretty surprised to read this week an article on <a href="http://www.webmonkey.com/blog/Microsoft_to_Double_Down_on_HTML5_With_Internet_Explorer_9?utm_source=feedburner&#038;utm_medium=feed&#038;utm_campaign=Feed%3A+wired%2Findex+%28Wired%3A+Index+3+%28Top+Stories+2%29%29&#038;utm_content=Netvibes">Webmonkey</a> that was saying that Microsoft would certainly double down in IE9 on HTML5 and CSS3. I suggest you read it yourself, but basically it was saying that Microsoft would&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>I was pretty surprised to read this week an article on <a href="http://www.webmonkey.com/blog/Microsoft_to_Double_Down_on_HTML5_With_Internet_Explorer_9?utm_source=feedburner&#038;utm_medium=feed&#038;utm_campaign=Feed%3A+wired%2Findex+%28Wired%3A+Index+3+%28Top+Stories+2%29%29&#038;utm_content=Netvibes">Webmonkey</a> that was saying that Microsoft would certainly double down in IE9 on HTML5 and CSS3. I suggest you read it yourself, but basically it was saying that Microsoft would go on the offensive at the upcoming <a href="http://live.visitmix.com/">MIX2010</a> presenting IE9.</p>
<h3>Silverlight&#8230;</h3>
<p>I do not see Microsoft go on the offensive, I am pretty sure in fact that it will not implement any &#8216;Multimedia&#8217; feature like Audio, Video and Canvas any time soon, and certainly not before it is kind of obligated because Youtube, for example, switched to html5. Why? Silverlight&#8230; This technology is a competitor to all these technologies. If you are not really into extranet and intranet development, you might not even know what Silverlight is, well it was first introduce as a competitor to Flash (Adobe is certainly laughing themselves to death..). They tried to ship it on big websites as a video player component, now pretty much every site that was using it is back to flash. Too few users was installing it, and from what I saw, the video server was half the time down.</p>
<p>Now Silverlight is more a competitor to Adobe Air, which make sense, seeing no web designer in its right mind would like to work with Silverlight. Anyway coming back on IE, Microsoft never really cared to implement CSS3 and HTML5 like others browser vendors. Don&#8217;t get me wrong, they did actually implement some HTML5 features, they are just slow like a turtle shot in one paw. They actually said that they would have liked very much to ship CSS3 border-radius but did not have the time to implement it.  I mean, how much time can that actually take to implement that..</p>
<h3>The IE team</h3>
<p>I could guess wrong there too, but when you think about Gekoo or Webkit, I think about hip young engineers, but the IE team inspires me nothing, I would not be actually surprise that most of the team just do not really care about the impact IE have on internet and on web developers. When you think about it, by the time Microsoft shipped IE8, Webkit was trying to pass the CSS3 acid test. IE8 is compliant css2.1, end of line.</p>
<p>Not just that, all browsers vendors teams are working faster than IE. IE is behind everyone on CSS compliance, HTML compliance and javascript engine speed. I do not have big hope for IE9. Personally I would be very happy  if I would get border radius and border-shadow. This is the 2 things that CSS  need most  right now.</p>
<p>Just my two cents here.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.position-absolute.com/articles/microsoft-to-double-down-on-html5-with-internet-explorer-9-really/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>The mobile webkit fixed position problem</title>
		<link>http://www.position-absolute.com/articles/the-mobile-webkit-css-fixed-position-problem/</link>
		<comments>http://www.position-absolute.com/articles/the-mobile-webkit-css-fixed-position-problem/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 03:00:06 +0000</pubDate>
		<dc:creator>Cedric Dugas</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[CSS / HTML]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Opinions]]></category>
		<category><![CDATA[featured]]></category>

		<guid isPermaLink="false">http://www.position-absolute.com/?p=2270</guid>
		<description><![CDATA[<p>If there is one thing you will be missing while developing your mobile web application for Webkit, it is the CSS fixed position. You cannot effectively fix an element on the iPhone, and mobile device are no powerhouse to emulate&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>If there is one thing you will be missing while developing your mobile web application for Webkit, it is the CSS fixed position. You cannot effectively fix an element on the iPhone, and mobile device are no powerhouse to emulate it with javascript. The problem is simple, yet there is no perfect solution to it. </p>
<p><img src="http://appmodo.com/wp-content/uploads/2009/08/blackberrysafaribrowser.jpg" style="float:right;padding: 10px 0px 0 10px;"></p>
<h2>On a mobile device you scroll a window, not the site</h2>
<p>When you scroll on a mobile device, you are not really scrolling the site, in fact if you zoom out completely you will see the entire page, you are only scrolling your &#8220;window&#8221; around the site. When you understand this, your fixed footer dream really shatter, unless you are willing to use complex methods..</p>
<h2>iScroll</h2>
<p>And there start your quest, on your way you will find <a target="_blank" href="http://cubiq.org/scrolling-div-for-mobile-webkit-turns-3/16">iScroll 3.0</a>. This little script create the illusion of a fixed footer, but the performance price is rather high. It emulates scrolling alright, but this is not quite as snappy as the real thing, a big problem if you consider that your users will have a feeling that something is not quite right.</p>
<p><a href="http://cubiq.org/media/movies/iscrollv3.mov">See iScroll in video</a>.</p>
<h2>Pastry Kit</h2>
<p>You will probably also discover that pastry kit, the Apple Javascript framework for webkit, is doing it quite well. I cannot really comment how Apple is replicating it,  they probably use a complex mathematic method to emulate the scrolling. The thing that really sucks with PastryKit is that Apple as not released it officially (not yet anyway), there is no documentation on how to use it, and it seems to be used only internally.</p>
<p><a href="http://www.nxfx.com/blog/iphone-development/apples-pastry-kit-iphone-javascript-toolkit/">More information on PastryKit</a>.</p>
<h2>There is no perfect solution</h2>
<p>Personally, I do not see myself implementing these solutions. I, however, stumbled on an interesting solution, make the footer fade out when you scroll, and fade is when you stop. This is not perfect, far from it (it is to wonder why Apple is not implementing something themselves in Webkit..). But I found this was the best solution offered to me. </p>
<p>I am working on a plugin for the jQTouch moible framework, I will probably release it in the weeks to comes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.position-absolute.com/articles/the-mobile-webkit-css-fixed-position-problem/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
<enclosure url="http://cubiq.org/media/movies/iscrollv3.mov" length="1530384" type="video/quicktime" />
		</item>
		<item>
		<title>Zen HTML and CSS coding, and how to install it on Windows with E Text-Editor</title>
		<link>http://www.position-absolute.com/news/zen-html-and-css-coding-and-how-to-install-it-on-windows-with-e-text-editor/</link>
		<comments>http://www.position-absolute.com/news/zen-html-and-css-coding-and-how-to-install-it-on-windows-with-e-text-editor/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 03:10:18 +0000</pubDate>
		<dc:creator>Cedric Dugas</dc:creator>
				<category><![CDATA[CSS / HTML]]></category>
		<category><![CDATA[Random news]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[featured]]></category>

		<guid isPermaLink="false">http://www.position-absolute.com/?p=2060</guid>
		<description><![CDATA[<p><a href="http://code.google.com/p/zen-coding/">Zen coding</a> is one of the new cool kid presently, if you haven&#8217;t heard of it I would suggest your read<a href="http://www.smashingmagazine.com/2009/11/21/zen-coding-a-new-way-to-write-html-code/"> this article</a> from smashing magazine or look at this video presentation.</p>
<p></p>
<p>Basically it enables you to create HTML from CSS snippet. It might&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://code.google.com/p/zen-coding/">Zen coding</a> is one of the new cool kid presently, if you haven&#8217;t heard of it I would suggest your read<a href="http://www.smashingmagazine.com/2009/11/21/zen-coding-a-new-way-to-write-html-code/"> this article</a> from smashing magazine or look at this video presentation.</p>
<p><object width="400" height="275"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=7405114&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=7405114&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="275"></embed></object></p>
<p>Basically it enables you to create HTML from CSS snippet. It might not sound powerful at first, but when you start playing with, some wonderful things happen in your head (with no drugs). Let&#8217;s look at a simple example, let&#8217;s say you want a header with an id and a class followed by a list element. Here what you would do with zen:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">div#header.home&gt;ul&gt;li*3</pre></div></div>

<p>You do Apple-E (CTRL-E in win) and you get:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">  &lt;div id=&quot;header&quot; class=&quot;home&quot;&gt;
  	&lt;ul&gt;
  		&lt;li&gt;&lt;/li&gt;
  		&lt;li&gt;&lt;/li&gt;
  		&lt;li&gt;&lt;/li&gt;
  	&lt;/ul&gt;
  &lt;/div&gt;</pre></div></div>

<p>There is much more about Zen, but this is the basic idea. Personally it replaced my basic HTML and CSS bundle. Now if you are on Windows, you are a bit out of luck, beside some IDE Zen is not available, however there is a Textmate bundle for it. Introducing you to E Text-editor, a port from Textmate on Windows. E is a pretty amazing text editor, and if you know nothing about bundle and textmate, I would suggest do a bit of research with Google. You can also get a free trial on the <a href="http://www.e-texteditor.com">website</a>. </p>
<p>A small problem with Zen, there is &#8220;illegal&#8221; characters in the HTML bundle, something Windows really doesn&#8217;t like. I however successfully extracted the bundle with 7zip, it&#8217;s not going to work with you basic winrar or winzip. </p>
<p>Cool, you got all your bundles now, you could put them in the bundle E folder, but this is not recommended, as reinstalling E will cause an erase of your bundles, it is better to put them in the application directory, usually something like &#8220;C:\Documents and Settings\[username]\Application Data\e&#8221; </p>
<p>Last thing! One problem you might get is that there is no self closing XHTML &#8220;/&#8221; with your tag, this is a variable you need to put in your settings -> Environnment :  TM_XHTML /</p>
<p>Have fun and be Zen!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.position-absolute.com/news/zen-html-and-css-coding-and-how-to-install-it-on-windows-with-e-text-editor/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>9 resources to create better HTML forms</title>
		<link>http://www.position-absolute.com/articles/9-resources-to-create-better-html-forms/</link>
		<comments>http://www.position-absolute.com/articles/9-resources-to-create-better-html-forms/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 01:55:07 +0000</pubDate>
		<dc:creator>Cedric Dugas</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[CSS / HTML]]></category>
		<category><![CDATA[featured]]></category>

		<guid isPermaLink="false">http://www.position-absolute.com/?p=2023</guid>
		<description><![CDATA[<p>Forms are a pretty boring piece of the Internet, it&#8217;s not fun to create and it&#8217;s not fun to interact with. Yet this is mostly our only way to communicate. We should strive to make better forms and make them&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>Forms are a pretty boring piece of the Internet, it&#8217;s not fun to create and it&#8217;s not fun to interact with. Yet this is mostly our only way to communicate. We should strive to make better forms and make them as painless as possible to complete. Here are some resources worth looking to make better forms in every way possible.</p>
<h3>Keep it simple</h3>
<p>Look at the Twitter registration, it does not ask for the password twice and there is only 6 fields. If you must have more fields then please let them register and ask for it in their profile. Less fields there are, more potential subscribers you get (avoid long form and duplicate if you can). Also please keep them focus on finishing you form, no distraction should interrupt the process.</p>
<p><a href="http://softwareas.com/the-new-registration-and-login-grammars"><strong>The New Registration and Login Grammars</strong></a><br />
&#8220;Provide your name, email and password; verify the email; login to the site with username and password until you’re timed out. You know the drill. But a wave of new web apps and protocols is challenging the status quo&#8221;</p>
<p><a href="http://softwareas.com/signing-up-to-websites-1999-2009-a-montage"><strong>Signing Up to Websites, 1999-2009. A Montage</strong></a><br />
&#8220;Following up The New Registration and Login Grammars, I thought it would be interesting to look at how signup forms have changed over the years.&#8221;</p>
<p><a href="http://www.unwrongest.com/tag/form/"><strong>Why are we typing passwords twice?</strong></a><br />
&#8220;We are typing passwords twice because of legacy design patterns we forgot to abandon. There is no reason for why everybody should suffer just because a few can’t type their password correctly. I jump confirmation ship!&#8221;</p>
<p><a href="http://www.smashingmagazine.com/2008/07/04/web-form-design-patterns-sign-up-forms/"><strong>Smashing magazine web design pattern</strong></a><br />
<a href="http://www.smashingmagazine.com/2008/07/08/web-form-design-patterns-sign-up-forms-part-2/"><strong>Smashing magazine web design pattern part2</strong></a><br />
&#8220;If you want to maximize the revenue of your service you need to maximize completion rates of your web forms. Unless you have some revolutionary ideas to impress your visitors at first glance, it is not enough to simply enable users to sign up on your site.&#8221;</p>
<h3>Help your users</h3>
<p>Get tools to help your users complete your form faster with no frustration. Use a good client side validation, code completion and etc.</p>
<p><strong><a href="http://www.alistapart.com/articles/inline-validation-in-web-forms/">A list apart article on inline validation</a></strong><br />
&#8220;Web forms aren’t great conversationalists. They ask a bunch of questions, then wait until you answer them all before they respond. So when you register for that cool social network or use an e-commerce site, it’s pretty much a monologue.&#8221;</p>
<p><a href="http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/"><strong>Position Absolute form validation plugin</strong></a><br />
This validation plugin can validate your fields on the fly, it can even send a inline request to see if a user is available in a DB for example.</p>
<p><a href="http://digitalbush.com/projects/masked-input-plugin/"><strong>Masked Input Plugin</strong></a><br />
&#8220;It allows a user to more easily enter fixed width input where you would like them to enter the data in a certain format (dates,phone numbers, etc). It has been tested on Internet Explorer 6/7, Firefox 1.5/2/3, Safari, Opera, and Chrome.&#8221;</p>
<p><a href="http://www.useit.com/alertbox/passwords.html"><strong>Stop masking password </strong></a>and the <a href="http://www.unwrongest.com/projects/show-password/"><strong>Password Unmasking Plugin</strong></a><br />
&#8220;Usability suffers when users type in passwords and the only feedback they get is a row of bullets. Typically, masking passwords doesn&#8217;t even increase security, but it does cost you business due to login failures.&#8221;</p>
<p><a href="http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/"><strong>Autocomplete plugin</strong></a><br />
&#8220;Autocomplete an input field to enable users quickly finding and selecting some value, leveraging searching and filtering.&#8221;</p>
<div class='ads' style="">
<strong>Ads</strong></p>
<p>
Get professional <a href="http://www.test-king.com/exams/642-481.htm">testking 642-481</a> web development training and learn how to create better web pages using html and JavaScript framework.  Our self paced <a href="http://www.test-king.com/exams/HP0-S20.htm">testking HP0-S20</a> study guide and <a href="http://www.test-king.com/exams/640-460.htm">testking 640-460</a> web tutorials are good source to keep up with latest trends and tools in web development.
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.position-absolute.com/articles/9-resources-to-create-better-html-forms/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>CSS abstraction Series: Introduction to xCSS</title>
		<link>http://www.position-absolute.com/articles/css-abstraction-part3-introduction-to-xcss/</link>
		<comments>http://www.position-absolute.com/articles/css-abstraction-part3-introduction-to-xcss/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 01:39:14 +0000</pubDate>
		<dc:creator>Cedric Dugas</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[CSS / HTML]]></category>
		<category><![CDATA[featured]]></category>

		<guid isPermaLink="false">http://www.position-absolute.com/?p=1828</guid>
		<description><![CDATA[<p>I recently did an <a href="http://www.position-absolute.com/articles/introduction-to-less-css-abstraction-on-windows/">introduction to Less CSS</a> following my read of <a href="http://chriseppstein.github.com/blog/2009/09/20/why-stylesheet-abstraction-matters/">why abstraction matters</a>, in this article I was demonstrating how Less could be useful to your front-end development team, but the big disadvantage was that you had to install&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>I recently did an <a href="http://www.position-absolute.com/articles/introduction-to-less-css-abstraction-on-windows/">introduction to Less CSS</a> following my read of <a href="http://chriseppstein.github.com/blog/2009/09/20/why-stylesheet-abstraction-matters/">why abstraction matters</a>, in this article I was demonstrating how Less could be useful to your front-end development team, but the big disadvantage was that you had to install ruby on your development computers in order to use it.</p>
<p>Installing ruby in some case can be out of the question, however, using a non intrusive php framework works quite better, and this is what <a href="http://xcss.antpaw.org/">xCSS</a> seems to aim for.</p>
<h3>And it works pretty well</h3>
<p>Installing xCSS is pretty easy, it took me 5 minute to follow the instruction the first time, and the other times were a breeze. </p>
<p>The idea is simple, you put a folder named xcss on top of your css folder. You also add a source folder where you put your working css files. You go in your xCSS config file and a add path to your source file and hop! You are good to go, but <a href="http://xcss.antpaw.org/docs/get_started/configuration">this page explains it a lot better</a>.</p>
<p><img src="/wp-content/themes/default/images/PSIMG/xcss.jpg"></p>
<p>It instantly creates your CSS file every time you refresh the page, really, you do not feel that&#8217;s something is at work here.</p>
<h3>What can you do with xCSS</h3>
<p>Unfortunately xCSS is pretty young and is not the most complete abstraction framework feature wise. You get the basic variables, nested object and you can extend a class from another class, that&#8217;s it.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">// Variable in Xcss
vars {
    $path = ../img/tmpl1/png;
    $color1 = #FF00FF;
    $border = border-top: 1px solid $color1;
}
.selector {
    background-image: url($path/head_bg.png);
    background-color: $color1;
    $border;
}</pre></div></div>

<p>Personally, I do not care for nested objects, this is just not the way I work, however the other features can really extend your way of doing css. This is also where xCSS do things a bit differently, I really meant extending a class earlier. In xCSS you do some kind of oriented object CSS, basically, if you want to add all the properties from a class to another, this is what you would do: <strong>.specialClass extends .basicClass {}</strong>.</p>
<p>It might not be for everybody, but I like the feel of it. Also a nice little touch, when your project is ready to be push on the web, you can minify the CSS directly from xCSS by changing a small line in the config file.</p>
<h3>And if we compare with others abstraction framework</h3>
<p><strong>Pros:</strong><br />
Simple to install in all your projects<br />
No installation required on your computer or server<br />
Generated CSS is instant<br />
Can be minified on the spot</p>
<p><strong>Cons:</strong><br />
A bit low on feature <del datetime="2009-10-27T16:06:34+00:00">(no equation pains me)</del><br />
@import not supported, need to be declared in the config file</p>
<h3>Conclusion</h3>
<p>I am quite happy with xCSS and I hope for more features in the near future. I decided to implement it in my CSS framework. It is that good.</p>
<p><strong><br />
Update October 27: xCSS has recently been updated with the equation feature</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.position-absolute.com/articles/css-abstraction-part3-introduction-to-xcss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apple patents CSS transform and animation</title>
		<link>http://www.position-absolute.com/news/apple-patents-css-transform-and-animation/</link>
		<comments>http://www.position-absolute.com/news/apple-patents-css-transform-and-animation/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 20:21:02 +0000</pubDate>
		<dc:creator>Cedric Dugas</dc:creator>
				<category><![CDATA[CSS / HTML]]></category>
		<category><![CDATA[Random news]]></category>
		<category><![CDATA[featured]]></category>

		<guid isPermaLink="false">http://www.position-absolute.com/?p=1807</guid>
		<description><![CDATA[<p>In a frightening move, Apple decided to patent their CSS transform and animation properties. Unfortunately this was not part of the CSS3 specifications and they have all the rights to do so. Now we will have to wait and see&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>In a frightening move, Apple decided to patent their CSS transform and animation properties. Unfortunately this was not part of the CSS3 specifications and they have all the rights to do so. Now we will have to wait and see what are Apple intentions with this patent. Other browser vendors could decided to not implement those specifications in case Apple turns all gun blazing, which would be a shame.</p>
<p>While I still think most of what you can do with this should be Javascript bound, I see applications where it could be really useful, notably with :hover.</p>
<p>You can see the patent yourself <a href="http://www.freepatentsonline.com/y2009/0228784.html">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.position-absolute.com/news/apple-patents-css-transform-and-animation/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
