<?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>Fleeting Epiphanies</title>
	<atom:link href="http://blog.w3conversions.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.w3conversions.com</link>
	<description>realizations on life, the web, and everything</description>
	<lastBuildDate>Wed, 07 Mar 2012 07:05:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>New Directions</title>
		<link>http://blog.w3conversions.com/2012/03/new-directions/</link>
		<comments>http://blog.w3conversions.com/2012/03/new-directions/#comments</comments>
		<pubDate>Fri, 02 Mar 2012 23:13:23 +0000</pubDate>
		<dc:creator>Stephanie (Sullivan) Rewis</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[contatta]]></category>
		<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://blog.w3conversions.com/?p=968</guid>
		<description><![CDATA[In 1999, when I started my journey through the interwebs, I had no real idea where it would take me. I barely knew what was possible. I only knew that my brain loved puzzle-type thinking, detective work, research and figuring things out. And I suspected code would access the parts of my mind that love [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>In 1999, when I started my journey through the interwebs, I had no real idea where it would take me. I barely knew what was possible. I only knew that my brain loved puzzle-type thinking, detective work, research and figuring things out. And I suspected code would access the parts of my mind that love a work out—and so I pursued it. Vehemently. For the first 12 months, I did tutorials for 15 hours a day and got any friend that might possibly need a website to let me create theirs. (And for the very first customers, may I apologize for the frame and table-based layouts.)</p>
<p>And as I learned, I had questions—lots of them—and I inflicted every one of them on the unsuspecting, and gracious souls on a couple of web design lists. (The only stupid question is the one you don&#8217;t ask!) As my skills grew, I began answering the questions of people who knew less than I and continued to pick the brains of those who knew more. Within a couple of years, I had <em>accidentally</em> created a business via business owners who had planned to build their own web site only to find it wasn&#8217;t as easy as they expected. Due to the number of questions I answered on the list, they wrote me offlist for a quote to, &#8220;Please, just do it for me&#8221;. </p>
<p>It didn&#8217;t take me long to figure out that there&#8217;s a whole lot <strong>to</strong> this web design business. And some portions I enjoyed more than the others. In looking at where I thought the puck was going, I ventured into the world of CSS—that marriage of code and design—and I loved it. I gleaned great enjoyment from changing a designer&#8217;s beautiful comp into light-weight, web-ready markup (I&#8217;m too much of a tweak-a-holic to design). And so I moved into specialization in the portion of the industry we now call front-end development. </p>
<p>My desire to give back led me to accept requests to write articles and books (even though I really dislike writing). Writing led to speaking at industry events. Speaking led to doing training in corporations. Filing zillions of bugs to make Dreamweaver move into the realm of Web Standards led to my work with the Web Standards Project (WaSP) as well as working as a contractor for Adobe to create the CSS Layouts contained in Dreamweaver. And writing a book teaching both CSS and Dreamweaver while using those layouts as a base for each project led to discovering the other half of my brain—my co-author <a href="http://assortedgarbage.com">Greg Rewis</a>. Now my husband, soul mate, and co-captain on <a href="http://geeks4sail.com">Geeks4Sail</a>. Every choice I&#8217;ve made to give—even when there wasn&#8217;t a guaranteed return—has come back from the universe in amazing ways I hadn&#8217;t envisioned. It&#8217;s been a great ride.</p>
<p>And even though I&#8217;ve loved every minute of sharing, learning and teaching others, and of working with awesome agencies, companies and start-ups—I still leave them with the code and walk away to start the next contract. I rarely get to see a product through to fruition or have any further affect on its development. I can&#8217;t continually help the code evolve as the web changes. I just hand it off and move to the &#8220;next thing&#8221;.</p>
<h3>But all that&#8217;s gonna change&#8230;</h3>
<p>I was recently approached by a start-up (oddly enough, right here in the Phoenix area). We initially discussed their need for a top notch front-end developer to build their web app—probably a six month contract. We discussed what they were building for about an hour—and I got this feeling in my gut. You know the one that hits you in the pit of your stomach and says, &#8220;<em>I really, really feel like this is <strong>a thing</strong></em>&#8220;? That one. But having been taught by my parents never to trust my gut—always use your head—I did the obedient thing and went to the web for some Google research. As you do&#8230; That research made the feeling in my gut even stronger. And a series of meetings with the CEO, CTO and team over the past couple weeks has evolved into my decision to make a full-time commitment—forsaking all others. This is a big step for me after 12 years of independence. I should feel a twinge of sorrow. <strong>But I don&#8217;t!</strong> I&#8217;m as excited as I&#8217;ve been about anything in years.</p>
<p>I am now officially the VP of Interface Architecture for <a href="http://contatta.com/">Contatta</a> (Italian for &#8220;be in contact with&#8221;), helping to create a new era in Contact Management. And while a product related to CRM may not sound like a sexy start up to you, Pat Sullivan, the co-creator of ACT!, and founder of SalesLogix is a founder of this company. Along with Sunil Padiyar who was a founding member of SalesLogix as well. When the man that helped create an industry 25 years ago says he thinks it could be in a better place—and in fact has ideas about changing a currently stagnant industry—I listened. And in listening, I was impressed enough to get on board. </p>
<p>Not only am I excited about the product, I&#8217;m super excited about the team they&#8217;ve already assembled. I&#8217;m going to have the opportunity to work with some amazingly top-notch devs and we&#8217;ve already been exchanging ideas. I&#8217;m literally chomping at the bit to get started!</p>
<p>Lest any clients (or prospective clients) are concerned, I&#8217;ve got great back-up with good friends and co-contractors like <a href="http://emilylewisdesign.com/">Emily Lewis</a> (of &#8220;Microformats Made Simple&#8221; and &#8220;HTML5 Cookbook&#8221; fame), <a href="http://integrat-ee.com/">Leslie Flinger</a> (front-end developer and former Director of Marketing at EllisLab) and others. You&#8217;ll be in great hands!</p>
<p>A recommendation on Contatta&#8217;s Facebook wall says &#8211; &#8220;With Pat behind it &#8230; here&#8217;s hoping for a real game changer for the industry!&#8221; I agree with that and I&#8217;ll take it a step further and say, &#8220;With the team behind Pat, we&#8217;re gonna work to make awesomeness—and maybe a ding in the Universe.&#8221;</p>
<p>EDIT 3/7: Some have emailed to ask whether I&#8217;ll still be speaking. Yes, on a more limited basis—but not once a month as I have been. Feel free to send requests. <img src='http://blog.w3conversions.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.w3conversions.com/2012/03/new-directions/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>CSS3: spread value and box-shadow on one side only</title>
		<link>http://blog.w3conversions.com/2011/09/css3-spread-value-and-box-shadow-on-one-side-only/</link>
		<comments>http://blog.w3conversions.com/2011/09/css3-spread-value-and-box-shadow-on-one-side-only/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 21:28:10 +0000</pubDate>
		<dc:creator>Stephanie (Sullivan) Rewis</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>

		<guid isPermaLink="false">http://blog.w3conversions.com/?p=930</guid>
		<description><![CDATA[This morning I awakened with a question in my twitter stream from @deebeefunky. He was frustrated by the fact that when he sets a blur on box-shadow, it shows on two sides of the box. He wants it to show on only one side. Of course, that got me thinking. I did come up with [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>This morning I awakened with <a href="http://srewis.me/p36NiG">a question in my twitter stream</a> from @deebeefunky. He was frustrated by the fact that when he sets a blur on box-shadow, it shows on two sides of the box. He wants it to show on only one side. Of course, that got me thinking. I did come up with one solution—it won&#8217;t work in every situation—but it may work in yours. </p>
<h3>The spread value</h3>
<p>There&#8217;s a little talked about value in the box-shadow property called &#8220;spread&#8221;. That value, when used, comes after the blur value and moves the shadow away from the box equally all the way around. It doesn&#8217;t add a blur, it simply spreads out in all directions. You&#8217;ll get different effects based on whether the blur value is a greater than the spread value or whether the spread is greater than the blur. The color defined will be solid right next to the box, and then blur for the rest (based on the difference between the two values). Before it gets too confusing, let&#8217;s have a look at the property:</p>
<p><b>box-shadow: (inset) x-value y-value blur spread color;</b></p>
<pre>
div {
-webkit-box-shadow: 0 0 6px 4px black;
   -moz-box-shadow: 0 0 6px 4px black;
        box-shadow: 0 0 6px 4px black;
}
</pre>
<div id="attachment_938" class="wp-caption alignleft" style="width: 560px">
	<a href="http://blog.w3conversions.com/wp-content/2011/09/01-screenie1.jpg"><img src="http://blog.w3conversions.com/wp-content/2011/09/01-screenie1.jpg" alt="Blur larger than spread" title="Blur larger than spread" width="560" height="236" class="size-full wp-image-938" /></a>
	<p class="wp-caption-text">Blur larger than spread</p>
</div>
<p style="clear:both;">If the spread value has a higher value, you get a different effect with the full spread and only a little blur.</p>
<pre>
div {
-webkit-box-shadow: 0 0 4px 6px black;
   -moz-box-shadow: 0 0 4px 6px black;
        box-shadow: 0 0 4px 6px black;
}
</pre>
<div id="attachment_940" class="wp-caption alignleft" style="width: 553px">
	<a href="http://blog.w3conversions.com/wp-content/2011/09/02-screenie.jpg"><img src="http://blog.w3conversions.com/wp-content/2011/09/02-screenie.jpg" alt="Spread value greater than blur" title="Spread value greater than blur" width="553" height="231" class="size-full wp-image-940" /></a>
	<p class="wp-caption-text">Spread value greater than blur</p>
</div>
<p style="clear:both;">Though the differences above are subtle, you can actually create some really interesting effects with this value. If you don&#8217;t move the box-shadow on the x or y axis and provide no blur value at all, you can create one, or more, multiple borders for your element.</p>
<h3>Create the look of multiple borders</h3>
<pre>
div {
border: 3px solid orange;
-webkit-box-shadow: 0 0 0 3px black, 0 0 0 6px red;
   -moz-box-shadow: 0 0 0 3px black, 0 0 0 6px red;
         box-shadow: 0 0 0 3px black, 0 0 0 6px red;
}
</pre>
<div id="attachment_941" class="wp-caption alignleft" style="width: 552px">
	<a href="http://blog.w3conversions.com/wp-content/2011/09/03-screenie.jpg"><img src="http://blog.w3conversions.com/wp-content/2011/09/03-screenie.jpg" alt="Spread radius with no blur" title="Spread radius with no blur" width="552" height="232" class="size-full wp-image-941" /></a>
	<p class="wp-caption-text">Spread radius with no blur</p>
</div>
<p style="clear:both;">Notice it appears there are three borders on this element. A single (orange) border was added, then a black border (created with the 3px of spread) and then a red border (the 3 px border is created by 6px of spread since you must allow for the first box-shadow). It&#8217;s unlikely you&#8217;d actually <i>need</i> more borders than this, but you can create an unlimited number this way. Remember that when using multiple box-shadows, the first one is applied closest to the element.</p>
<h3>How does this apply to @deebeefunky&#8217;s question?</h3>
<p>I&#8217;m glad you asked! Sometimes I get off track (you know, that simple little blog post you were gonna write&#8230;). The issue with box-shadow is, even if you only move the shadow on the x or y axis, you&#8217;ll see a hint of the shadow on at least two sides of your element.</p>
<pre>
div {
-webkit-box-shadow: 1px 0 2px black;
   -moz-box-shadow: 1px 0 2px black;
        box-shadow: 1px 0 2px black;
}
</pre>
<div id="attachment_943" class="wp-caption alignleft" style="width: 545px">
	<a href="http://blog.w3conversions.com/wp-content/2011/09/04-screenie.jpg"><img src="http://blog.w3conversions.com/wp-content/2011/09/04-screenie.jpg" alt="2px blur moved 1px on the x-axis" title="2px blur moved 1px on the x-axis" width="545" height="226" class="size-full wp-image-943" /></a>
	<p class="wp-caption-text">2px blur moved 1px on the x-axis</p>
</div>
<p style="clear:both;">I came up with an idea that works as long as A) the element is a solid color and B) you&#8217;re not also using border on the element. It involves applying two box-shadows, one with spread in the same color as the box itself and another without. Like so:</p>
<pre>
div {
background: white;
-webkit-box-shadow: 0 0 0 4px white, 0 6px 4px black;
   -moz-box-shadow: 0 0 0 4px white, 0 6px 4px black;
        box-shadow: 0 0 0 4px white, 0 6px 4px black;
}
</pre>
<div id="attachment_946" class="wp-caption alignleft" style="width: 553px">
	<a href="http://blog.w3conversions.com/wp-content/2011/09/05-screenie.jpg"><img src="http://blog.w3conversions.com/wp-content/2011/09/05-screenie.jpg" alt="Use two box-shadows for a single side effect" title="Use two box-shadows for a single side effect" width="553" height="239" class="size-full wp-image-946" /></a>
	<p class="wp-caption-text">Use two box-shadows for a single side effect</p>
</div>
<h3 style="clear:both;">Why does this work?</h3>
<p>In a nutshell, what you&#8217;re doing is creating the first box-shadow (0 0 0 4px white) which doesn&#8217;t move on the X or Y axis, doesn&#8217;t provide any blur, and has the 4px of spread set in the same color as the background of the element. This basically renders it invisible but makes the element 4px wider than it was (box-shadow does NOT add to the box model, so you&#8217;re element will appear 4px closer to the elements around it as well). Remember the order I mentioned before? The first box-shadow is placed on top—or closest to the element? That&#8217;s what helps us here. The second box-shadow (0 6px 4px black) is moving 6px on the Y-axis, has 4px of blur, no spread and is black. We&#8217;ve moved this vertically—though you could use the same technique on the X-axis.</p>
<h3>Where is the real border?</h3>
<p>Just to illustrate why you can&#8217;t use a border with this technique, here&#8217;s a look at the addition of a red border to our previous example.</p>
<div id="attachment_953" class="wp-caption alignleft" style="width: 544px">
	<a href="http://blog.w3conversions.com/wp-content/2011/09/06-screenie.jpg"><img src="http://blog.w3conversions.com/wp-content/2011/09/06-screenie.jpg" alt="Red border shown on actual outside of box" title="Red border shown on actual outside of box" width="544" height="229" class="size-full wp-image-953" /></a>
	<p class="wp-caption-text">Red border shown on actual outside of box</p>
</div>
<p style="clear:both;">The thing to remember when using this technique is A) you can only move on one axis— X or Y and B) your blur value cannot exceed the spread value given in the first box-shadow. If it does, you&#8217;ll start to see it peek out on the sides (an effect we were avoiding in the first place). You can, however, move as much or as little on either the X or Y axis as your effect requires. And as always, using RGBA or HSLA color values will give you a more realistic shadow if that&#8217;s what you&#8217;re after.</p>
<h3>Update: Method Two</h3>
<p>If you have a patterned background on the element or need to use a border, Joseph Silber had another idea in the comments below. Use a negative spread radius. Nice thinking, Joseph! Playing with this method, I came up with the following:</p>
<pre>
div {
	-webkit-box-shadow: 0 8px 6px -6px black;
	   -moz-box-shadow: 0 8px 6px -6px black;
	        box-shadow: 0 8px 6px -6px black;
}
</pre>
<div id="attachment_957" class="wp-caption alignleft" style="width: 543px">
	<a href="http://blog.w3conversions.com/wp-content/2011/09/07-screenie.jpg"><img src="http://blog.w3conversions.com/wp-content/2011/09/07-screenie.jpg" alt="Negative spread radius with equal blur value" title="Negative spread radius with equal blur value" width="543" height="236" class="size-full wp-image-957" /></a>
	<p class="wp-caption-text">Negative spread radius with equal blur value</p>
</div>
<p style="clear:both;">The issue to be aware of with this method is, the negative spread value should be equal to, or greater than, the blur value or you&#8217;ll end up with a slight blur on the other two sides of the element. Also, very little of the box-shadow will show if you don&#8217;t give the X or Y a value equal to, or greater than, the blur. Otherwise, the blur is slightly hidden behind the edge of the element since the spread value is negative.</p>
<div id="attachment_958" class="wp-caption alignleft" style="width: 546px">
	<a href="http://blog.w3conversions.com/wp-content/2011/09/08-screenie.jpg"><img src="http://blog.w3conversions.com/wp-content/2011/09/08-screenie.jpg" alt="With the negative spread value, a border can be added" title="With the negative spread value, a border can be added" width="546" height="227" class="size-full wp-image-958" /></a>
	<p class="wp-caption-text">With the negative spread value, a border can be added</p>
</div>
<p style="clear:both;">Notice the element isn&#8217;t &#8220;expanding&#8221; like it did using the first method (the box size is what you&#8217;d expect), but the shadow doesn&#8217;t quite go to each edge due to the negative spread value. Based on the interaction with other elements on your page, one of these two methods might just work for you!</p>
<h3>Update Oct 2</h3>
<p>Due to an <a href="http://code.google.com/p/android/issues/detail?id=7531&#038;q=box-shadow&#038;colspec=ID%20Type%20Status%20Owner%20Summary%20Stars">Android bug when the box-shadow has no blur</a>, you&#8217;ll likely want to use the second method if you want the shadow to appear on an Android device. Let&#8217;s hope they fix this one soon. (Thanks, Luís Carmona!)</p>
<p style="clear:both;">Do you have a method you use to create the same effect? Share it in the comments. Happy coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.w3conversions.com/2011/09/css3-spread-value-and-box-shadow-on-one-side-only/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Firefox multi-column layout bug&#8230; and a unicorn</title>
		<link>http://blog.w3conversions.com/2011/05/firefox-multi-column-layout-bug-and-a-unicorn/</link>
		<comments>http://blog.w3conversions.com/2011/05/firefox-multi-column-layout-bug-and-a-unicorn/#comments</comments>
		<pubDate>Thu, 05 May 2011 00:31:35 +0000</pubDate>
		<dc:creator>Stephanie (Sullivan) Rewis</dc:creator>
				<category><![CDATA[CSS3]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[transitions]]></category>

		<guid isPermaLink="false">http://blog.w3conversions.com/?p=904</guid>
		<description><![CDATA[Last night, I was getting a file ready to share with Estelle Weyl, one of my co-presenters for our CSS3 workshop at SXSW11. The page was a silly little demo that used media queries, multiple backgrounds, transitions, generated content, multi-column layout and, well, a unicorn. I had only viewed the file in Chrome since that&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Last night, I was getting a file ready to share with Estelle Weyl, one of my co-presenters for our CSS3 workshop at SXSW11. The page was a <a href="http://w3conversions.com/sandbox/css3/transition/multibackground.html">silly little demo</a> that used media queries, multiple backgrounds, transitions, generated content, multi-column layout and, well, a unicorn. </p>
<p><a href="http://blog.w3conversions.com/wp-content/2011/05/ffox.jpg"><img src="http://blog.w3conversions.com/wp-content/2011/05/ffox-250x300.jpg" alt="Firefox generated content bug" title="ffox" width="250" height="300" class="alignleft size-medium wp-image-911" /></a>I had only viewed the file in Chrome since that&#8217;s the browser I used during the demo. Since we were putting it online where people could look at the code, I decided to take a peek in other browsers. Oddly enough, Firefox seems to be hacking a hairball on the <a href="http://w3conversions.com/sandbox/css3/transition/multibackground-bug.html">multi-column layout with generated content</a> (I&#8217;ve tested in both FFOX 4.1 and Aurora with the same result).  </p>
<p>The generated content (.container:before) creates the layered look of the main .container div to avoid any extra, non-semantic wrappers. The bug is not triggered when the generated content is removed (either by removing the position: relative from .container—the parent to the generated content, or by removing it altogether). And it seems to have something to do with the values in the top, right, bottom, left properties of the generated content (it&#8217;s protruding on the right and tall enough that you can&#8217;t see the rounded bottom corners). My guess is that FFOX is somehow adding actual pixels to the box model (width and height), but I&#8217;ve no clue why it would. </p>
<p>UPDATE 5/5/11:</p>
<p>Thanks to <a href="http://oli.jp">Oli Studholme</a> who identified the padding on the .container as one of the bug&#8217;s triggers. I&#8217;ve added <a href="http://w3conversions.com/sandbox/css3/transition/multibackground-bug2.html">another demo with the padding removed</a> and <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=655191">filed a bug with Mozilla</a>. If anyone identifies another piece of the bug puzzle, please post it in the comments or on the bug report.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.w3conversions.com/2011/05/firefox-multi-column-layout-bug-and-a-unicorn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing a Background-image with CSS3 Transitions</title>
		<link>http://blog.w3conversions.com/2011/03/changing-a-background-image-with-css3-transitions/</link>
		<comments>http://blog.w3conversions.com/2011/03/changing-a-background-image-with-css3-transitions/#comments</comments>
		<pubDate>Tue, 01 Mar 2011 08:34:16 +0000</pubDate>
		<dc:creator>Stephanie (Sullivan) Rewis</dc:creator>
				<category><![CDATA[CSS3]]></category>
		<category><![CDATA[transitions]]></category>

		<guid isPermaLink="false">http://blog.w3conversions.com/?p=895</guid>
		<description><![CDATA[As you may have read, outside of gradients, you can&#8217;t change a background-image with CSS transitions. Or can you? At InControl Conference last week, Greg Rewis spoke about Transitions, Transforms and Animations. A question was asked about showing one background-image on load and transitioning to another in a subsequent pseudo-state. You can always change the [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>As you may have read, outside of gradients, you can&#8217;t change a background-image with CSS transitions. Or can you? At InControl Conference last week, Greg Rewis spoke about Transitions, Transforms and Animations. A question was asked about showing one background-image on load and transitioning to another in a subsequent pseudo-state. You can always change the background (we do it all the time in menus on :hover), but you can&#8217;t apply sexy transitions to that change. You <em>can</em>, however, transition a background position change. In the first demo, I&#8217;ve created a sprite that has both background states which load with one image, and then move to the other when the pseudo-state is triggered:</p>
<p><a href="http://w3conversions.com/sandbox/css3/transition/trans-back.html">CSS Transition with sprite</a></p>
<p>(Thanks for your nice use of this effect at the bottom of <a href="http://css-tricks.com/">CSS Tricks</a>, Chris Coyier!)</p>
<p>In the InControl wrap up panel, someone asked a question about creating a menu that has no background image to start, but on hover, would transition to the background image. While it&#8217;s correct that you can&#8217;t do exactly that, all good CSS&#8217;ers know there&#8217;s usually a clever work around. An idea occurred to me on stage that I&#8217;ll share here. Using a sprite again, have the starting portion of it transparent (gif or png). You can create the effect of going from no background to a background image by simply changing the background-position.</p>
<p><a href="http://w3conversions.com/sandbox/css3/transition/trans-back2.html">Illusion of going from no background to an background-image using CSS3 transitions.</a></p>
<p>What creative uses can <em>you</em> think of for CSS transitions and background images?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.w3conversions.com/2011/03/changing-a-background-image-with-css3-transitions/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>CSS3 Flexible Box Model&#8230;Layout Coolness&#8230;also Oddities &amp; Confusion</title>
		<link>http://blog.w3conversions.com/2011/02/css3-flexible-box-model-layout-coolness-also-oddities-confusion/</link>
		<comments>http://blog.w3conversions.com/2011/02/css3-flexible-box-model-layout-coolness-also-oddities-confusion/#comments</comments>
		<pubDate>Fri, 25 Feb 2011 08:34:27 +0000</pubDate>
		<dc:creator>Stephanie (Sullivan) Rewis</dc:creator>
				<category><![CDATA[CSS3]]></category>
		<category><![CDATA[layout]]></category>

		<guid isPermaLink="false">http://blog.w3conversions.com/?p=880</guid>
		<description><![CDATA[In August, due to a twitter discussion with Molly, and of course while partying on a Saturday night, Dave Gregory and I were looking at whether the Flexible box layout module (still a working draft) is getting close to ready for prime time yet. Our hope was that it will solve some of the frustrations [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>In August, due to a twitter discussion with <a href="http://www.twitter.com/mollydotcom/">Molly</a>, and of course while partying on a Saturday night,<a href="http://screwlewse.com/"> Dave Gregory</a> and I were looking at whether the <a href="http://www.w3.org/TR/2009/WD-css3-flexbox-20090723/">Flexible box layout module</a> (still a working draft) is getting close to ready for prime time yet. Our hope was that it will solve some of the frustrations we have with layout—like columns that are equal heights and vertical centering. We read <a href="http://www.w3.org/TR/css3-flexbox/">the spec</a> and some <a href="http://infrequently.org/2009/08/css-3-http://infrequently.org/2009/08/css-3-progress/">good</a> articles. It gave us hope. We started testing on our own. That&#8217;s when we realized how much is left to do here.</p>
<p>First, I&#8217;ll say that both webkit- and moz-based browsers did great in our <em>simple</em> testing of four equal-sized boxes—whose background colors fill each container. They were they equal width, and the color filled the container whether the content did or not. Good news! There is a difference in the height of the containers between -webkit and -moz which is related to their differing treatment of the bottom margin on the paragraph inside each box. I don&#8217;t know which one is right, but find it odd that when Webkit allows the margin to escape, it doesn&#8217;t push the next element away as can happen in a floated/non-floated layout. (But that&#8217;ll be another experiment.)</p>
<ol>
<li><a href="http://w3conversions.com/sandbox/css3/flexbox/four_equal_nocontent.html">Four equal boxes</a></li>
<li><a href="http://w3conversions.com/sandbox/css3/flexbox/four_equal_equalcontent.html">Equal amounts of content</a></li>
</ol>
<p>The <a href="http://hacks.mozilla.org/2010/04/the-css-3-flexible-box-model/">demos shown on the Mozilla site</a> appear to work, but in real life really don&#8217;t yet work as expected.The demos work because there&#8217;s not really content in the boxes—and in that situation, the flex box does work. But check our tests to create four equal boxes <em>with</em> content—especially content that varies in length. Less than wonderful.</p>
<ol start="3">
<li><a href="http://w3conversions.com/sandbox/css3/flexbox/four_equal_varied.html">Varied content</a></li>
<li><a href="http://w3conversions.com/sandbox/css3/flexbox/four_equal_varied2.html">More varied content</a></li>
</ol>
<p>On vacation (when else is there time!?), I was reading Zoe Gillenwater&#8217;s excellent book, <a href="http://stunningcss3.com/index.php">Stunning CSS3</a>. If you want a well-written, easy to understand, beautiful book on the new CSS3 capabilities, I highly recommend this one. Anyway, the last chapter of the book is about upcoming layout possibilities—most of which covers the flexible box model. It got me thinking about my earlier testing. I started playing around with having widths on one or more of the boxes. These results didn&#8217;t really do what I expected.</p>
<p>If I give three of the boxes a width, with one set to box-flex:1, it will fill the remaining space. It doesn&#8217;t seem to matter how much content is in them.</p>
<ol start="5">
<li><a href="http://w3conversions.com/sandbox/css3/flexbox/four_equal_varied3.html">Example of three with widths</a></li>
</ol>
<p>This seems to be the most reliable way to use the flexible box layout right now—to take up remaining space.</p>
<p>I then, bravely, placed box-flex:1 on two of the four boxes. This, as I read the spec, should have added up the widths of the two boxes where the width property exists and then equally divide what is left over between the two flexible boxes. If I had set one box to a value of 2 and the other to 1, it should divide it into thirds, giving 2/3 to the box with a value of 2. Instead, we went back to unreliability. The boxes don&#8217;t split the space left evenly, they seem to split it based on their content. This may be the way it should work, and I may be misunderstanding the spec, but it seems very unreliable as a form of layout.</p>
<ol start="6">
<li><a href="http://w3conversions.com/sandbox/css3/flexbox/four_equal_varied4.html">Two box-flex and two with widths</a> (the widths are correct)</li>
<li><a href="http://w3conversions.com/sandbox/css3/flexbox/four_equal_varied5.html">Two box-flex which are <em>not</em> next to each other</a> with the same results</li>
</ol>
<p>Finally, I gave the first and last boxes pixel widths. The middle two both had box-flex:1. They have substantially different amounts of content. The larger literally suffocates the smaller amount of content—even though they should be splitting it more evenly as I read it.</p>
<ol start="8">
<li><a href="http://w3conversions.com/sandbox/css3/flexbox/four_equal_varied6.html">The second box is overflowing its boundaries</a> even though each line is a single word—causing the page to be much taller than it should.</li>
<li><a href="http://w3conversions.com/sandbox/css3/flexbox/four_equal_varied7.html">A small increase in content</a> made it slightly wider and the page is closer to the height it should be.</li>
</ol>
<p>I&#8217;m playing with this and don&#8217;t feel I&#8217;m the definitive expert. But I do think something is far from correct in browser implementations—or the spec needs to be much more clear. Either the boxes should be split evenly, or they should be split so that they&#8217;re the same height, but widths are based on content within (though that&#8217;s not what I think I read in the spec). Currently, the odd splitting, based on content, but not even at all, is baffling me.</p>
<p><strong>Update</strong>: Based on Zoe&#8217;s comment, I did a few more tests. If widths are given to <em>all</em> boxes and then box-flex is added to one (or more), the dividing of space between the boxes is reliable. It seems to be when you leave the browser to use the intrinsic width as a default that unmatched content amounts gives you extremely unreliable results.</p>
<ul>
<li><a href="http://w3conversions.com/sandbox/css3/flexbox/four_equal_width.html">Equally sized boxes with 1 box-flex</a> — extra 200px left in container</li>
<li><a href="http://w3conversions.com/sandbox/css3/flexbox/four_equal_width2.html">Equally sized boxes with 1 box-flex</a> — overage of 200px</li>
<li><a href="http://w3conversions.com/sandbox/css3/flexbox/four_equal_width3.html">Equally sized boxes with 2 box-flex:1</a> — extra 200px left in container</li>
<li><a href="http://w3conversions.com/sandbox/css3/flexbox/four_equal_width4.html">Equally sized boxes with 2 box-flex</a> — one set to 1 and the other 2</li>
</ul>
<p>Opera hasn&#8217;t implemented flexible boxes yet (they&#8217;re reportedly waiting for a more complete spec) and though this <a href="http://caniuse.com/#feat=flexbox">may be included in Internet Explorer 9</a>, as you might expect it&#8217;s certainly not in any of the earlier versions. (<strong>Update</strong>: It appears it&#8217;s not made it into the RC which is feature complete.)</p>
<p>Once this is implemented more fully, it&#8217;s going to be a very interesting new weapon for the arsenal. Kinda makes you wish someone working on CSS3 had realized our lack of proper layout is more important than making things move around and transform—we already have Javascript for that anyway.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.w3conversions.com/2011/02/css3-flexible-box-model-layout-coolness-also-oddities-confusion/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>HTML5 and Video: 4 part video series</title>
		<link>http://blog.w3conversions.com/2011/01/html5-and-video-4-part-video-series/</link>
		<comments>http://blog.w3conversions.com/2011/01/html5-and-video-4-part-video-series/#comments</comments>
		<pubDate>Mon, 10 Jan 2011 21:16:55 +0000</pubDate>
		<dc:creator>Stephanie (Sullivan) Rewis</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[HTML5]]></category>

		<guid isPermaLink="false">http://blog.w3conversions.com/?p=870</guid>
		<description><![CDATA[I&#8217;ve had a couple people ask me to link on my blog to my four part video series on HTML5 and video. Currently, it&#8217;s a feature on the AdobeTV home page, but I reckon that will be for just a little while. After that, you can link directly to Part 1 (7:18), Part 2 (10:31), [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I&#8217;ve had a couple people ask me to link on my blog to my four part video series on HTML5 and video. Currently, it&#8217;s a feature on the <a href="http://tv.adobe.com">AdobeTV home page</a>, but I reckon that will be for just a little while. After that, you can link directly to <a href="http://tv.adobe.com/watch/adc-presents/videoandhtml5part1understandinghtml5/">Part 1 (7:18)</a>, <a href="http://tv.adobe.com/watch/adc-presents/videoandhtml5part2gettingstarted/">Part 2 (10:31)</a>, <a href="http://tv.adobe.com/watch/adc-presents/video-and-html5-part-3-maximizing-html5-video-access-with-flash/">Part 3 (6:20)</a>, and <a href="http://tv.adobe.com/watch/adc-presents/video-and-html5-part-4-flash-with-html5-fallback-choosing-a-path/">Part 4 (9:41)</a>.</p>
<p>If you follow all the way through to Part 4, I cover some alternate methods to embed HTML5 video depending on your needs. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.w3conversions.com/2011/01/html5-and-video-4-part-video-series/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Mangled smiley in @font-face</title>
		<link>http://blog.w3conversions.com/2011/01/mangled-smiley-in-font-face/</link>
		<comments>http://blog.w3conversions.com/2011/01/mangled-smiley-in-font-face/#comments</comments>
		<pubDate>Wed, 05 Jan 2011 20:39:03 +0000</pubDate>
		<dc:creator>Stephanie (Sullivan) Rewis</dc:creator>
				<category><![CDATA[CSS3]]></category>

		<guid isPermaLink="false">http://blog.w3conversions.com/?p=868</guid>
		<description><![CDATA[Recently, I noticed that sometimes, when uploading a stylesheet using @font-face, my cute little smiley (thank you Paul Irish!) gets turned into some kind of garbledygook instead of the smile character. Last week, I decided to try an experiment. It cleared it right up. To the top of your stylesheet, add this: @charset &#8220;UTF-8&#8243;; Be [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Recently, I noticed that sometimes, when uploading a stylesheet using @font-face, my cute little smiley (thank you Paul Irish!) gets turned into some kind of garbledygook instead of the smile character. Last week, I decided to try an experiment. It cleared it right up.</p>
<p>To the top of your stylesheet, add this: @charset &#8220;UTF-8&#8243;;</p>
<p>Be sure you don&#8217;t have anything at all before it or you&#8217;ll get errors. Now your smileys will stay nice and cute. <img src='http://blog.w3conversions.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.w3conversions.com/2011/01/mangled-smiley-in-font-face/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HTML5: Native Video, DRM and Plugins</title>
		<link>http://blog.w3conversions.com/2010/10/html5-native-video-drm-and-plugins/</link>
		<comments>http://blog.w3conversions.com/2010/10/html5-native-video-drm-and-plugins/#comments</comments>
		<pubDate>Wed, 13 Oct 2010 13:46:00 +0000</pubDate>
		<dc:creator>Stephanie (Sullivan) Rewis</dc:creator>
				<category><![CDATA[]]></category>

		<guid isPermaLink="false">http://stefsullrewis.tumblr.com/post/1307865153</guid>
		<description><![CDATA[I was reading a discussion on the W3C Bug tracker about native video and whether it should, or should not, provide DRM to protect video content. In the process, the point was made by John Foliot that Apple is presenting their own answers in their browsers and devices to the DRM issue (emphasis mine): &#62; [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I was reading a discussion on the W3C Bug tracker <a href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=10902">about native video and whether it should, or should not, provide DRM</a> to protect video content. In the process, the point was made by John Foliot that Apple is presenting their own answers in their browsers and devices to the DRM issue (emphasis mine):</p>
<blockquote>
<pre><span class="quote">
&gt; The question of DRM within the media formats supported by browsers is a
&gt; separate issue to be addressed in a different forum, but as I said, I'm fairly
&gt; sure there will be strong resistance to it.</span>

Really? I have it on first person confirmation that currently Apple is
promoting "...H.264 with the m3u8 format for HTTP streaming with optional AES
encryption..." to commercial content producers in North America. <strong>Either that
gets supported directly in the browser, or gets handed off to a third party
(QT)playe</strong>r... Frankly at this point I could care less if Opera, Mozilla and
Google see this as a problem or not - it's your business models, not mine.
Apple will profit by selling their iDevices that *do* support encryption, as
will Roku, Wii, X-Box and other companies who understand the real business
needs at the intersection of the multi-billion dollar industry that is "the
Internet" (delivering content over the global network) with the multi-billion
dollar industry that is the Entertainment Industry. </pre>
</blockquote>
<p>My best guess, without having all the information personally available, is that the statement above (placed in bold type) means that if you&#8217;re using a Mac, DRM is supported directly in the browser because QuickTime is built in. If you&#8217;re using a PC, just as happens currently with native video, you must install QuickTime to view it.</p>
<h4>Isn&#8217;t a plugin just a plugin?</h4>
<p>QuickTime is a plugin. So the question I keep asking is this one — Apple refuses to allow the Flash plugin on their devices (and until very recently also refused Adobe the hooks they needed into the OS to speed Flash up like it has on a PC). Much of the web that needs video is already standardized on Flash. They seem to be attempting to move people to their plugin (which they can either build into their own products or ask people to download—as they do Flash now).</p>
<h4>Was native multimedia added to HTML5 to make plugins extinct?</h4>
<p>The W3C says the co-existence of plugins and native multimedia are par for the course and expected. One was never meant to <em>kill</em> the other—the embed element was even made valid and acceptable in HTML5. Thus, Apple&#8217;s stance that HTML5 multimedia should be the only solution—and it&#8217;s been taken to the extreme by blocking Flash altogether on their devices—then they circle back around with their plugin to provide the features that Flash already provided&#8230; Sorry, it seems disingenuous at best and anti-trust/anti-competition at worst.</p>
<p>Why don&#8217;t I hear people discussing this? Am I making up the gravity of what&#8217;s happening? Am I seeing something others haven&#8217;t noticed? Am I making a mountain out of a molehill? I&#8217;m starting to wonder&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.w3conversions.com/2010/10/html5-native-video-drm-and-plugins/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Inner border (content or padding edge) quirk in webkit?</title>
		<link>http://blog.w3conversions.com/2010/10/inner-border-content-or-padding-edge-quirk-in-webkit/</link>
		<comments>http://blog.w3conversions.com/2010/10/inner-border-content-or-padding-edge-quirk-in-webkit/#comments</comments>
		<pubDate>Tue, 12 Oct 2010 19:30:33 +0000</pubDate>
		<dc:creator>Stephanie (Sullivan) Rewis</dc:creator>
				<category><![CDATA[]]></category>

		<guid isPermaLink="false">http://stefsullrewis.tumblr.com/post/1303111216</guid>
		<description><![CDATA[Today on Twitter, Keith Clark (@keithclarkcouk) mentioned he was struggling with creating an element with rounded corners and rgba borders because the background color of the element was showing through. That sounded silly. I mean, modern browsers have background-clip. We can clip to the content, the padding or the border. That should fix it. But [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Today on Twitter, Keith Clark (@keithclarkcouk) mentioned he was struggling with creating an element with rounded corners and rgba borders because the background color of the element was showing through. That sounded silly. I mean, modern browsers have background-clip. We can clip to the content, the padding or the border. That should fix it. But Keith was reporting that it wasn&#8217;t working.</p>
<p>In experimenting, I found that in webkit-based browsers, it doesn&#8217;t really work at all as I would expect (the Firefox 4beta does what I&#8217;m interpreting the spec to say). The background-clip property itself works (in modern browsers). But when the inner border is rounded (on the padding edge), the content with the background-color is not rounded—it remains squared. This causes the rbga border to overlap the square corners making an entirely different color on those points.</p>
<h4>Firefox and webkit differences</h4>
<p>The image below (from <a href="http://w3conversions.com/sandbox/border-radius/index2.html">this border-radius demo</a>) shows Firefox 4b on the left and Safari 5.0.1 on the right. Note that with transparent background, it keeps the rounded look. It&#8217;s only with the background color that you get the overlapping look.</p>
<p><img height="308" width="332" alt="border-radius in Firefox 4b and Safari 5" src="http://w3conversions.com/sandbox/border-radius/border-radius.jpg"/></p>
<h4>Corner shaping</h4>
<p>The spec reads like this (emphasis mine):</p>
<blockquote>
<p>The <strong>padding edge</strong> (inner border) radius is the <em>outer border radius minus the corresponding border thickness</em>. In the case where this results in a negative value, the inner radius is zero. (In such cases its center might not coincide with that of the outer border curve.) Likewise the<strong> content edge</strong> radius is the <em>padding edge radius minus the corresponding padding</em>, or if that is negative, zero.</p>
</blockquote>
<p>In the case of my code, the <strong>padding edge</strong> (which you can see as the inner border when there is no background color) should be made from the outer border radius (30px) minus the corresponding border thickness (10px). <em>30px &#8211; 10px = 20px</em>. The <strong>content edge</strong> should be made from the padding edge radius (20px) minus the corresponding padding (10px). <em>20px &#8211; 10px = 10px</em>. What I&#8217;m seeing in webkit however is zero curve on the content edge—at least that&#8217;s what I think I&#8217;m seeing. Is anyone reading this differently?</p>
<h4>Corner clipping</h4>
<p>Furthermore, the spec continues to talk about the corner clipping and says (emphasis mine again):</p>
<blockquote>
<p>A <em>box&#8217;s backgrounds</em>, but not its border-image, <em>are clipped to the appropriate curve</em> (as determined by ‘<strong>background-clip</strong>’). Other effects that clip to the border or padding edge (such as ‘overflow’ other than ‘visible’) also must clip to the curve.</p>
</blockquote>
<p>In my case, background-clip is set to padding-box. This means the background should cover the content and padding, but not the border. Webkit is not clipping to the curve of the padding (which we can see in the transparent example). </p>
<p>What disturbs me a bit is that, in both Chrome 5 and Safari 5, the -webkit- prefix has been removed. It seems we need some method of ensuring that a vendor actually complies with the spec before removing their vendor prefix since, in this case, I can&#8217;t even &#8220;turn off&#8221; or change the rendering in webkit because the newest versions use the unprefixed border-radius property.</p>
<p>Is this a bug? Or am I reading it all wrong?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.w3conversions.com/2010/10/inner-border-content-or-padding-edge-quirk-in-webkit/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Javascript and HTML5</title>
		<link>http://blog.w3conversions.com/2010/10/javascript-and-html5/</link>
		<comments>http://blog.w3conversions.com/2010/10/javascript-and-html5/#comments</comments>
		<pubDate>Fri, 01 Oct 2010 15:03:00 +0000</pubDate>
		<dc:creator>Stephanie (Sullivan) Rewis</dc:creator>
				<category><![CDATA[]]></category>

		<guid isPermaLink="false">http://stefsullrewis.tumblr.com/post/1223937180</guid>
		<description><![CDATA[The web is becoming more and more dependent on Javascript. This has been troubling me a bit since I&#8217;ve always held the view that all content should be available and usable (though perhaps in a different state) when Javascript is turned off. Internet Explorer In Internet Explorer (up to version 9), the only way to [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>The web is becoming more and more dependent on Javascript. This has been troubling me a bit since I&#8217;ve always held the view that <strong>all</strong> content should be available and usable (though perhaps in a different state) when Javascript is turned off.</p>
<h4>Internet Explorer</h4>
<p>In Internet Explorer (up to version 9), the only way to use the new structural elements in HTML5 is to use Javascript to insert the elements into the DOM. Then IE will allow you to style them. If you don&#8217;t do this, IE will style the elements it understands (the HTML4 elements), but leave the ones it doesn&#8217;t unstyled (the new HTML5 elements)—and that can be worse than no style at all.</p>
<p>As I was writing a new talk on HTML5 recently, I struggled to find current information related to how many users view the web without Javascript enabled. The numbers ranged from 5%-8% (and I couldn&#8217;t be sure how accurate they were). When giving my talk at Web Directions US, Nicholas Zakas who was also speaking, informed me that Yahoo! has found Javascript turned off in 1% of users on their home page. He&#8217;s currently writing a blog post documenting/explaining this information and I&#8217;ll link to it when completed.</p>
<h4>HTML5 and Accessibilty</h4>
<p>I also wanted to be sure that there was no accessibility penalty when Javascript was turned off. To me, this is even more important since many that surf without Javascript (geeks) can enable it if it&#8217;s needed. But if the lack of Javascript harms the usability for screenreaders or other disabled users, that&#8217;s clearly problematic. Derek Featherstone pointed me to an <a href="http://www.accessibleculture.org/research/html5-aria/">excellent bit of testing</a> done by Jason Kiss which showed that even though screenreaders may not totally understand the HTML5 elements, they still read the content. There are a few issues—you should read the article for more information—but it&#8217;s not related to Javascript, so we&#8217;re safe there.</p>
<h4>When Javascript is Turned Off</h4>
<p>The conclusion I&#8217;ve personally arrived at is this. I&#8217;m going to use Javascript to enable the new HTML5 elements in Internet Explorer. But I&#8217;m going to take it one step further. I&#8217;m going to notify those using IE that they need to enable JS to properly view the page. Instead of using the &lt;noscript&gt; element, I&#8217;m using <a href="http://www.modernizr.com">Modernizr</a>. I realize that &lt;noscript&gt; may seem more semantically correct, but there are situations where it may not be best served as such (serving your document as XML is one of them). It also doesn&#8217;t give you the same styling abilities without special care.</p>
<p>With Modernizr, I place a class called .no-js on my html element:</p>
<p>&lt;html class=&#8221;no-js&#8221;&gt;</p>
<p>Modernizr not only adds the IE support for the HTML5 elements, but it tests for many other supported and unsupported HTML5/CSS3 features and gives you feedback in the form of classes. That&#8217;s not the important thing here—what&#8217;s important is that Modernizr changes the <em>no-js</em> class to <em>js</em>. Thus, if my html element has the js class (along with a myriad of other classes), I know that Javascript is enabled. If the html element retains the no-js class, I know that Javascript is disabled and I can then serve the note I&#8217;ve written to let the user know to enable Javascript to properly view the page.</p>
<p>I create a paragraph with a class of &#8220;noscript&#8221; and put the information within:</p>
<p>&lt;p class=&#8221;noscript&#8221;&gt;Please enable Javascript to properly view this page.&lt;/p&gt; <br />(Or any other pithy comment you&#8217;d like to make.)</p>
<p>In my CSS, I then set that paragraph to display:none if Javascript is enabled. This makes sure that only those with Javascript disabled will see my comment:</p>
<p>.js .noscript { display: none; }</p>
<p>In this case, I don&#8217;t actually see a reason to set the .no-js .noscript paragraph to display:block. If that class exists on a paragraph, it&#8217;s going to be set to display:block by default. If the html element never displays the class of .js, there&#8217;s nothing to override anyway.</p>
<p>Paul Irish has added this to the <a href="http://github.com/paulirish/html5-boilerplate/issues/closed#issue/115">HTML5 Boilerplate</a> as well. </p>
<p>Happy coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.w3conversions.com/2010/10/javascript-and-html5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
