<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	>
<channel>
	<title>Comments on: Min-width and Max-width template</title>
	<atom:link href="http://friendlybit.com/css/min-width-and-max-width-template/feed/" rel="self" type="application/rss+xml" />
	<link>http://friendlybit.com/css/min-width-and-max-width-template/</link>
	<description>You have found Friendly Bit, a web development blog. I focus on client side technologies like CSS, HTML and Javascript. You find my articles below and categories to the right.</description>
	<pubDate>Fri, 21 Nov 2008 19:50:16 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7-beta3</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Kravvitz</title>
		<link>http://friendlybit.com/css/min-width-and-max-width-template/comment-page-1/#comment-25891</link>
		<dc:creator>Kravvitz</dc:creator>
		<pubDate>Tue, 03 Jul 2007 21:45:52 +0000</pubDate>
		<guid isPermaLink="false">http://friendlybit.com/css/min-width-and-max-width-template/#comment-25891</guid>
		<description>Setting a width triggers hasLayout, so using height:1% is unnecessary here.</description>
		<content:encoded><![CDATA[<p>Setting a width triggers hasLayout, so using height:1% is unnecessary here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jonny_noog</title>
		<link>http://friendlybit.com/css/min-width-and-max-width-template/comment-page-1/#comment-25161</link>
		<dc:creator>jonny_noog</dc:creator>
		<pubDate>Mon, 11 Jun 2007 22:52:06 +0000</pubDate>
		<guid isPermaLink="false">http://friendlybit.com/css/min-width-and-max-width-template/#comment-25161</guid>
		<description>Hi Emil,

The problem I have found recently with quite a number of hand-held devices is that they are not picking up on hand-held stylesheets. Sadly it seems that many manufacturers are either unaware of this feature, or do not wish to implement it. :(</description>
		<content:encoded><![CDATA[<p>Hi Emil,</p>
<p>The problem I have found recently with quite a number of hand-held devices is that they are not picking up on hand-held stylesheets. Sadly it seems that many manufacturers are either unaware of this feature, or do not wish to implement it. :(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeena Paradies</title>
		<link>http://friendlybit.com/css/min-width-and-max-width-template/comment-page-1/#comment-25090</link>
		<dc:creator>Jeena Paradies</dc:creator>
		<pubDate>Sat, 09 Jun 2007 19:29:12 +0000</pubDate>
		<guid isPermaLink="false">http://friendlybit.com/css/min-width-and-max-width-template/#comment-25090</guid>
		<description>Hej Emil,

There is no document.documentElement.clientWidth in IE 5.x, but there is document.body.clientWidth. The problem: IE6 frezes with document.body.clientWidth in standard compilant mode.

Sorry I was a little bit confused when I wrote ma last comment :-D</description>
		<content:encoded><![CDATA[<p>Hej Emil,</p>
<p>There is no document.documentElement.clientWidth in IE 5.x, but there is document.body.clientWidth. The problem: IE6 frezes with document.body.clientWidth in standard compilant mode.</p>
<p>Sorry I was a little bit confused when I wrote ma last comment :-D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emil Stenström</title>
		<link>http://friendlybit.com/css/min-width-and-max-width-template/comment-page-1/#comment-25023</link>
		<dc:creator>Emil Stenström</dc:creator>
		<pubDate>Wed, 06 Jun 2007 18:51:47 +0000</pubDate>
		<guid isPermaLink="false">http://friendlybit.com/css/min-width-and-max-width-template/#comment-25023</guid>
		<description>@Jeena: The code I posted works on IE6 in standards mode so I'm not sure how your code fixes anything? I always develop in standards mode, so I don't need fallback in quirks. Other than that your code does exactly the same as the one posted.</description>
		<content:encoded><![CDATA[<p>@Jeena: The code I posted works on IE6 in standards mode so I&#8217;m not sure how your code fixes anything? I always develop in standards mode, so I don&#8217;t need fallback in quirks. Other than that your code does exactly the same as the one posted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emil Stenström</title>
		<link>http://friendlybit.com/css/min-width-and-max-width-template/comment-page-1/#comment-25022</link>
		<dc:creator>Emil Stenström</dc:creator>
		<pubDate>Wed, 06 Jun 2007 18:47:24 +0000</pubDate>
		<guid isPermaLink="false">http://friendlybit.com/css/min-width-and-max-width-template/#comment-25022</guid>
		<description>@Kevin Moore: My suggestion for that problem is to have a handheld CSS that changes the layout to something that works on mobile phones.</description>
		<content:encoded><![CDATA[<p>@Kevin Moore: My suggestion for that problem is to have a handheld CSS that changes the layout to something that works on mobile phones.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeena Paradies</title>
		<link>http://friendlybit.com/css/min-width-and-max-width-template/comment-page-1/#comment-25020</link>
		<dc:creator>Jeena Paradies</dc:creator>
		<pubDate>Wed, 06 Jun 2007 17:31:55 +0000</pubDate>
		<guid isPermaLink="false">http://friendlybit.com/css/min-width-and-max-width-template/#comment-25020</guid>
		<description>Hi,

There is a problem with IE 6 in standard compilant mode, it uses an other method to get the width than all other IEs. Therefore I developed this version:

* html #foo {
 width: 995px;
 width: expression(
  (document.documentElement &#38;&#38; document.documentElement.clientHeight) ?
   (document.documentElement.clientWidth &#62; 1265 ) ? "1265px" : "auto") :
   (document.body.clientWidth &#62; 1265 ) ? "1265px" : "auto")
 );
}</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>There is a problem with IE 6 in standard compilant mode, it uses an other method to get the width than all other IEs. Therefore I developed this version:</p>
<p>* html #foo {<br />
 width: 995px;<br />
 width: expression(<br />
  (document.documentElement &amp;&amp; document.documentElement.clientHeight) ?<br />
   (document.documentElement.clientWidth &gt; 1265 ) ? &#8220;1265px&#8221; : &#8220;auto&#8221;) :<br />
   (document.body.clientWidth &gt; 1265 ) ? &#8220;1265px&#8221; : &#8220;auto&#8221;)<br />
 );<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Moore</title>
		<link>http://friendlybit.com/css/min-width-and-max-width-template/comment-page-1/#comment-25000</link>
		<dc:creator>Kevin Moore</dc:creator>
		<pubDate>Wed, 06 Jun 2007 04:02:28 +0000</pubDate>
		<guid isPermaLink="false">http://friendlybit.com/css/min-width-and-max-width-template/#comment-25000</guid>
		<description>This is a very good suggestion, particularly on the max-width end. My only concern about min-width is that more people are browsing with their cell phones and other hand-held devices that have much smaller screens. Also, users tend to disable javascript to minimize downloading time. Setting a minimum width could create access problems for them.</description>
		<content:encoded><![CDATA[<p>This is a very good suggestion, particularly on the max-width end. My only concern about min-width is that more people are browsing with their cell phones and other hand-held devices that have much smaller screens. Also, users tend to disable javascript to minimize downloading time. Setting a minimum width could create access problems for them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lewis</title>
		<link>http://friendlybit.com/css/min-width-and-max-width-template/comment-page-1/#comment-24826</link>
		<dc:creator>lewis</dc:creator>
		<pubDate>Thu, 31 May 2007 04:00:48 +0000</pubDate>
		<guid isPermaLink="false">http://friendlybit.com/css/min-width-and-max-width-template/#comment-24826</guid>
		<description>having moved from a 19"  to a 22" monitor in the past few weeks not only has it provoked a re-evaluation of how i view the web but i've developed a habit for browsing in vertically tiled windows (two pages/sites side by side). don't ask me why when you can use tabs, but nevertheless...

this raises the question of designing (reverting for some who design at 1024x minimum) in 800x wrappers again. where once i would find an 800x width too small i now embrace it.

regardless, it does re-emphasize the importance of liquid layouts. this issue is something i'm going to enjoy pondering at some point this summer.

cheers for highlighting it emil.</description>
		<content:encoded><![CDATA[<p>having moved from a 19&#8243;  to a 22&#8243; monitor in the past few weeks not only has it provoked a re-evaluation of how i view the web but i&#8217;ve developed a habit for browsing in vertically tiled windows (two pages/sites side by side). don&#8217;t ask me why when you can use tabs, but nevertheless&#8230;</p>
<p>this raises the question of designing (reverting for some who design at 1024x minimum) in 800x wrappers again. where once i would find an 800x width too small i now embrace it.</p>
<p>regardless, it does re-emphasize the importance of liquid layouts. this issue is something i&#8217;m going to enjoy pondering at some point this summer.</p>
<p>cheers for highlighting it emil.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jens Wedin</title>
		<link>http://friendlybit.com/css/min-width-and-max-width-template/comment-page-1/#comment-24799</link>
		<dc:creator>Jens Wedin</dc:creator>
		<pubDate>Wed, 30 May 2007 07:21:38 +0000</pubDate>
		<guid isPermaLink="false">http://friendlybit.com/css/min-width-and-max-width-template/#comment-24799</guid>
		<description>Thanks, shorter is better, right?</description>
		<content:encoded><![CDATA[<p>Thanks, shorter is better, right?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emil Stenström</title>
		<link>http://friendlybit.com/css/min-width-and-max-width-template/comment-page-1/#comment-24763</link>
		<dc:creator>Emil Stenström</dc:creator>
		<pubDate>Tue, 29 May 2007 14:37:38 +0000</pubDate>
		<guid isPermaLink="false">http://friendlybit.com/css/min-width-and-max-width-template/#comment-24763</guid>
		<description>@Jens: well, this one is shorter :) That one does a lot of other stuff that you don't really need. It enables support for max-height among others...</description>
		<content:encoded><![CDATA[<p>@Jens: well, this one is shorter :) That one does a lot of other stuff that you don&#8217;t really need. It enables support for max-height among others&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jens Wedin</title>
		<link>http://friendlybit.com/css/min-width-and-max-width-template/comment-page-1/#comment-24756</link>
		<dc:creator>Jens Wedin</dc:creator>
		<pubDate>Tue, 29 May 2007 12:00:04 +0000</pubDate>
		<guid isPermaLink="false">http://friendlybit.com/css/min-width-and-max-width-template/#comment-24756</guid>
		<description>What is the difference with this script and the one on:

http://doxdesk.com/software/js/minmax.html</description>
		<content:encoded><![CDATA[<p>What is the difference with this script and the one on:</p>
<p><a href="http://doxdesk.com/software/js/minmax.html">http://doxdesk.com/software/js/minmax.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emil Stenström</title>
		<link>http://friendlybit.com/css/min-width-and-max-width-template/comment-page-1/#comment-24745</link>
		<dc:creator>Emil Stenström</dc:creator>
		<pubDate>Tue, 29 May 2007 06:22:16 +0000</pubDate>
		<guid isPermaLink="false">http://friendlybit.com/css/min-width-and-max-width-template/#comment-24745</guid>
		<description>@Matthijs: Another healthy fix, thanks! (I've never encountered the freeze but I trust you that it can happen in some instances). Added it to the template.</description>
		<content:encoded><![CDATA[<p>@Matthijs: Another healthy fix, thanks! (I&#8217;ve never encountered the freeze but I trust you that it can happen in some instances). Added it to the template.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthijs</title>
		<link>http://friendlybit.com/css/min-width-and-max-width-template/comment-page-1/#comment-24742</link>
		<dc:creator>Matthijs</dc:creator>
		<pubDate>Tue, 29 May 2007 05:30:52 +0000</pubDate>
		<guid isPermaLink="false">http://friendlybit.com/css/min-width-and-max-width-template/#comment-24742</guid>
		<description>Emil, you might want to adjust the expression a bit to prevent a nasty bug in IE. It freezes up when resizing the window if you use the expression you described. See &lt;a href="http://www.cameronmoll.com/archives/000892.html " rel="nofollow"&gt;this post&lt;/a&gt; on Cameron's site. I encounterd this bug once and it's definitely a bad bug..
Keep up the good work.</description>
		<content:encoded><![CDATA[<p>Emil, you might want to adjust the expression a bit to prevent a nasty bug in IE. It freezes up when resizing the window if you use the expression you described. See <a href="http://www.cameronmoll.com/archives/000892.html ">this post</a> on Cameron&#8217;s site. I encounterd this bug once and it&#8217;s definitely a bad bug..<br />
Keep up the good work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emil Stenström</title>
		<link>http://friendlybit.com/css/min-width-and-max-width-template/comment-page-1/#comment-24731</link>
		<dc:creator>Emil Stenström</dc:creator>
		<pubDate>Mon, 28 May 2007 21:13:34 +0000</pubDate>
		<guid isPermaLink="false">http://friendlybit.com/css/min-width-and-max-width-template/#comment-24731</guid>
		<description>@Martin: Great addition, added it to the sample.</description>
		<content:encoded><![CDATA[<p>@Martin: Great addition, added it to the sample.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin Jansson</title>
		<link>http://friendlybit.com/css/min-width-and-max-width-template/comment-page-1/#comment-24730</link>
		<dc:creator>Martin Jansson</dc:creator>
		<pubDate>Mon, 28 May 2007 21:03:20 +0000</pubDate>
		<guid isPermaLink="false">http://friendlybit.com/css/min-width-and-max-width-template/#comment-24730</guid>
		<description>Nice template, it's tricky to get it right sometimes. 

May I suggest a fallback width for IE?  Expressions are dependent on javascript to work, and if the user has scripting turned of, the width of the element will be 100% no matter what the width of the browser window is, which may cause very long lines.

The fix is to have a width-declaration of, say, 960px for this example, before the width-declaration containing the expression.</description>
		<content:encoded><![CDATA[<p>Nice template, it&#8217;s tricky to get it right sometimes. </p>
<p>May I suggest a fallback width for IE?  Expressions are dependent on javascript to work, and if the user has scripting turned of, the width of the element will be 100% no matter what the width of the browser window is, which may cause very long lines.</p>
<p>The fix is to have a width-declaration of, say, 960px for this example, before the width-declaration containing the expression.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
