<?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>Flexknowlogy - Jared Stein&#039;s ARCHIVED blog - update to jaredstein.org &#187; angles</title>
	<atom:link href="http://flexknowlogy.learningfield.org/tag/angles/feed/" rel="self" type="application/rss+xml" />
	<link>http://flexknowlogy.learningfield.org</link>
	<description>Jared Stein&#039;s archived blog on education, technology, culture, and the web</description>
	<lastBuildDate>Fri, 30 Oct 2009 19:35:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Re. &quot;CSS Angles&quot; and the Future of Em-Based Scaling</title>
		<link>http://flexknowlogy.learningfield.org/2008/12/03/re-css-angles-and-the-future-of-em-based-scaling/</link>
		<comments>http://flexknowlogy.learningfield.org/2008/12/03/re-css-angles-and-the-future-of-em-based-scaling/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 18:43:37 +0000</pubDate>
		<dc:creator>Jared Stein</dc:creator>
				<category><![CDATA[web dev]]></category>
		<category><![CDATA[angles]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[em]]></category>
		<category><![CDATA[scaling]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://flexknowlogy.learningfield.org/?p=117</guid>
		<description><![CDATA[Sitepoint offered up an article by Tim Wright (CSSKarma), CSS Angles: Just the Edge Your Web Page Needs!, which shows that increasing the size of a single border property results in an angular object that can be placed behind things. After some experimentation I found a new solution and a new conundrum. Tim&#8217;s applied this [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sitepoint.com/">Sitepoint</a> offered up an article by <a href="http://www.csskarma.com/">Tim Wright (CSSKarma)</a>, <cite><a href="http://www.sitepoint.com/article/css-angles-the-edge-you-need/">CSS Angles:  Just the Edge Your Web Page Needs!</a></cite>, which shows that increasing the size of a single <strong>border</strong> property results in an angular object that can be placed behind things. After some experimentation I found a new solution and a new conundrum<span id="more-117"></span>.</p>
<p>Tim&#8217;s applied this to <a href="http://i2.sitepoint.com/graphics/1692_shelf.jpg">&#8220;shelf shadows&#8221;</a>, where a nav item appears to be propped up on a shelf with a shadow below:</p>
<div><a href="http://i2.sitepoint.com/graphics/1692_shelf.jpg"><img src="http://i2.sitepoint.com/graphics/1692_shelf.jpg" alt="shelf" /></a></div>
<p>I looked at the CSS and thought, &#8220;This is cute, but could be more elegant with just two 1kb images.&#8221; <a href="/resources/stein/web/shelf/shelf1.html">So I wrote it,</a> and it turned out fine. In fact, it turned out better, in my opinion, because the shadow edges were <a href="http://en.wikipedia.org/wiki/Anti-aliasing">anti-aliased</a>.  I showed my developer <a href="http://www.facebook.com/people/Tyrel-Kelsey/1166354283">Tyrel Kelsey</a> the results, then bragged, &#8220;I can even make both the shadows and the shelf size scale with the text.&#8221; Then <a href="/resources/stein/web/shelf/shelf2.html">whipped up that solution</a> as well.</p>
<p>In short, <a href="/resources/stein/web/shelf/shelf1.html">my first solution</a> used two images: a x-repeating <a href="/resources/stein/web/shelf/images/shelf1.png">1&#215;20 &#8220;shelf&#8221;</a> hooked to the UL, and <a href="/resources/stein/web/shelf/images/shadow1.png">a 10&#215;20 &#8220;shadow&#8221;</a> hooked to each LI in place of Tim&#8217;s border corner.</p>
<p><a href="/resources/stein/web/shelf/shelf2.html">My second solution</a> used <a href="/resources/stein/web/shelf/images/shelf2.png">a 1px square for the top &#8220;shelf&#8221;</a>, and a 1px border&#8211;both hooked to the UL. The top shelf was set 1em from the top to allow for scaling.</p>
<p><a href="/resources/stein/web/shelf/images/shadow2.png">The &#8220;shadow&#8221; was a much larger image, 100&#215;200</a>, and set .1em to the left and 1em from the top of each LI, thus masking it&#8217;s gargantuaness (similar to <a href="http://www.alistapart.com/articles/slidingdoors/">sliding doors</a>).</p>
<p>It was a slick application for the same effect, but then Tyrel popped my balooon.</p>
<p>&#8220;Are you on FireFox 3?&#8221; Tyrel asked. &#8220;Because mine already scales on FF3, and it doesn&#8217;t look all jagged like yours.&#8221;</p>
<p><strong>Page zoom.</strong> I still am on FF2, and I remembered earlier in the week how I embarrassed myself in the web design course I teach when the page zoom disturbed an effect I was demonstrating. In fact, a lot of the <a href="http://www.w3.org/WAI/GL/css2em.htm">em-based</a> scaling approaches so popular just a year ago are sliding towards obsolescence thanks to <a href="http://blogs.msdn.com/ie/archive/2006/02/07/526805.aspx">page zoom on IE 7+</a> and <a href="http://arstechnica.com/journals/linux.ars/2007/07/27/firefox-3-gets-full-page-zoom">now on FF3 as well.</a>.</p>
<p>Not only are they made obsolete, current CSS-based designs that are <a href="http://www.456bereastreet.com/archive/200504/fixed_or_fluid_width_elastic/">enhanced by the elasticity (e.g. layouts with reading-width columns</a> or <a href="http://www.alistapart.com/articles/slidingdoors/">other applications of em-based scaling (e.g. sliding doors)</a> may look worse with page zoom.  My second example sure did when scaled in IE7. And if you open my design 2 on FF3 and compare the page zoomed rendering to the rendering with Zoom Text Only turned on, you&#8217;ll agree that the clarity is compromised in the former.</p>
<p>So while I&#8217;m proud of <a href="/resources/stein/web/shelf/shelf2.html">my two CSS variations</a> on <a href="http://www.sitepoint.com/article/css-angles-the-edge-you-need/">Tim Wright&#8217;s shelf-and-shadow concept</a>, and they are great solutions for older browsers (I can&#8217;t believe I&#8217;m referring to FF2 as &#8220;older&#8221;!), it&#8217;s also clear to me that em-based scaling and elasticity is on it&#8217;s way out, and browser-based page zoom will solve a lot of designer&#8217;s accessibility-influenced design challenges&#8211;but not, perhaps, without affecting our &#8220;tricks&#8221; of the past.</p>
]]></content:encoded>
			<wfw:commentRss>http://flexknowlogy.learningfield.org/2008/12/03/re-css-angles-and-the-future-of-em-based-scaling/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

