<?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>Twenty Ways &#187; CSS</title>
	<atom:link href="http://www.twentyways.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.twentyways.com</link>
	<description>(21 would just be ridiculous)</description>
	<lastBuildDate>Tue, 29 Jun 2010 08:09:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Better &#8220;max-width&#8221; workaround for IE 6</title>
		<link>http://www.twentyways.com/2008/12/11/fix-for-buggy-max-width-workaround-in-ie-6/</link>
		<comments>http://www.twentyways.com/2008/12/11/fix-for-buggy-max-width-workaround-in-ie-6/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 03:53:02 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.twentyways.com/?p=159</guid>
		<description><![CDATA[IE 6 famously lacks support for CSS 2.1&#8242;s max-width and max-height properties. Most solutions involve an IE 6-exclusive expression(…) with an inline conditional: max-width: 100px; width: expression(this.clientWidth > 102 ? "100px" : "auto"); Despite the apparent success of this technique, I&#8217;ve still found the inline conditional to be intermittently problematic. A slightly different take on [...]]]></description>
			<content:encoded><![CDATA[<p>IE 6 famously lacks support for CSS 2.1&#8242;s <em>max-width</em> and <em>max-height</em> properties.  Most solutions involve an IE 6-exclusive <em>expression(…)</em> with an inline conditional:</p>
<pre>max-width: 100px;
width: expression(this.clientWidth > 102 ? "100px" : "auto");</pre>
<p>Despite the <a href="http://www.cameronmoll.com/archives/000892.html">apparent success</a> of this technique, I&#8217;ve still found the inline conditional to be intermittently problematic.  A slightly different take on the same solution has worked better for me:</p>
<pre>max-width: 100px;
width: expression(Math.min(this.clientWidth, 100) + "px");</pre>
<p>Shorter, and IMO, marginally more elegant… if any IE hack could bear that label.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twentyways.com/2008/12/11/fix-for-buggy-max-width-workaround-in-ie-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
