<?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: CSS IE Media Query Hacks</title>
	<atom:link href="http://www.akademy.co.uk/blog/2010/03/css-style-ie6-media-hack/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.akademy.co.uk/blog/2010/03/css-style-ie6-media-hack/</link>
	<description>Learning, coding, exploring, living.</description>
	<lastBuildDate>Mon, 12 Dec 2011 01:06:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Matthew Wilcoxson</title>
		<link>http://www.akademy.co.uk/blog/2010/03/css-style-ie6-media-hack/#comment-222</link>
		<dc:creator>Matthew Wilcoxson</dc:creator>
		<pubDate>Tue, 23 Nov 2010 22:08:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.akademy.co.uk/blog-tips/?p=140#comment-222</guid>
		<description>Hi Imran,

You can certainly use javascript to detect the width and that will work fine in most situations. However, when your pages are viewed in a browser where javascript is not available or turned off you might like to add a CSS include in a  section.

You might also like to try, instead of document.write, use javascript to change the class on (for example) the body, you could then use a single css file for different width. For instance, if the width is detected as wide, then add &quot;wide&quot; to the body class. In the css file the use the class selector .wide .

Mat</description>
		<content:encoded><![CDATA[<p>Hi Imran,</p>
<p>You can certainly use javascript to detect the width and that will work fine in most situations. However, when your pages are viewed in a browser where javascript is not available or turned off you might like to add a CSS include in a  section.</p>
<p>You might also like to try, instead of document.write, use javascript to change the class on (for example) the body, you could then use a single css file for different width. For instance, if the width is detected as wide, then add &#8220;wide&#8221; to the body class. In the css file the use the class selector .wide .</p>
<p>Mat</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Omar Bukhsh</title>
		<link>http://www.akademy.co.uk/blog/2010/03/css-style-ie6-media-hack/#comment-221</link>
		<dc:creator>Imran Omar Bukhsh</dc:creator>
		<pubDate>Tue, 23 Nov 2010 14:41:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.akademy.co.uk/blog-tips/?p=140#comment-221</guid>
		<description>document.write(&#039;some style sheet&#039;) i mean</description>
		<content:encoded><![CDATA[<p>document.write(&#8216;some style sheet&#8217;) i mean</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Omar Bukhsh</title>
		<link>http://www.akademy.co.uk/blog/2010/03/css-style-ie6-media-hack/#comment-220</link>
		<dc:creator>Imran Omar Bukhsh</dc:creator>
		<pubDate>Tue, 23 Nov 2010 14:39:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.akademy.co.uk/blog-tips/?p=140#comment-220</guid>
		<description>Greetings Matthew Wilcoxson

Hope you are doing great and nice to read your article.  According to the website http://www.quirksmode.org/dom/w3c_cssom.html I found out that screen.width
is supported by all browsers listed there. Now I am developing a mobile version of a website and of course it has a separate style sheet. Therefore what I did is the following: 

if(screen.width&gt;50 &amp;&amp; screen.width&lt;799)
{
	document.write(&#039;&#039;);
}
else
{
	document.write(&#039;&#039;);
}

I tested it on firefox-linux, chrome-linux, ie7-vmware and on an android emulator and it works. Do comment and let me know what you think about it. 

Thanking You

Imran
Software Engineer</description>
		<content:encoded><![CDATA[<p>Greetings Matthew Wilcoxson</p>
<p>Hope you are doing great and nice to read your article.  According to the website <a href="http://www.quirksmode.org/dom/w3c_cssom.html" rel="nofollow">http://www.quirksmode.org/dom/w3c_cssom.html</a> I found out that screen.width<br />
is supported by all browsers listed there. Now I am developing a mobile version of a website and of course it has a separate style sheet. Therefore what I did is the following: </p>
<p>if(screen.width&gt;50 &amp;&amp; screen.width&lt;799)<br />
{<br />
	document.write(&#039;&#8217;);<br />
}<br />
else<br />
{<br />
	document.write(&#8221;);<br />
}</p>
<p>I tested it on firefox-linux, chrome-linux, ie7-vmware and on an android emulator and it works. Do comment and let me know what you think about it. </p>
<p>Thanking You</p>
<p>Imran<br />
Software Engineer</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew Wilcoxson</title>
		<link>http://www.akademy.co.uk/blog/2010/03/css-style-ie6-media-hack/#comment-50</link>
		<dc:creator>Matthew Wilcoxson</dc:creator>
		<pubDate>Sun, 11 Jul 2010 10:16:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.akademy.co.uk/blog-tips/?p=140#comment-50</guid>
		<description>Thanks for your comment R. Hill.

I totally agree, life would be so much simpler without IE! I&#039;m counting down the days, but until then, I only code for compliant browsers, with a limited number of fixes for IE just so it &quot;works&quot;.

Maybe IE9 will be better...</description>
		<content:encoded><![CDATA[<p>Thanks for your comment R. Hill.</p>
<p>I totally agree, life would be so much simpler without IE! I&#8217;m counting down the days, but until then, I only code for compliant browsers, with a limited number of fixes for IE just so it &#8220;works&#8221;.</p>
<p>Maybe IE9 will be better&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: R. Hill</title>
		<link>http://www.akademy.co.uk/blog/2010/03/css-style-ie6-media-hack/#comment-21</link>
		<dc:creator>R. Hill</dc:creator>
		<pubDate>Sun, 20 Jun 2010 15:06:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.akademy.co.uk/blog-tips/?p=140#comment-21</guid>
		<description>You provided a clear, concise answer, to my problem, thank you very much. Sometimes I just feel like *not* supporting IE when I have to tone down on using what is otherwise perfectly compliant code... Too much time spent of figuring workarounds.</description>
		<content:encoded><![CDATA[<p>You provided a clear, concise answer, to my problem, thank you very much. Sometimes I just feel like *not* supporting IE when I have to tone down on using what is otherwise perfectly compliant code&#8230; Too much time spent of figuring workarounds.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Link-Sammlung: Mobile Version &#124; ausgebloggt.de</title>
		<link>http://www.akademy.co.uk/blog/2010/03/css-style-ie6-media-hack/#comment-20</link>
		<dc:creator>Link-Sammlung: Mobile Version &#124; ausgebloggt.de</dc:creator>
		<pubDate>Fri, 23 Apr 2010 10:28:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.akademy.co.uk/blog-tips/?p=140#comment-20</guid>
		<description>[...] IE8 kommt auf Media Queries leider nicht so wirklich klar. Daher müssen CSS-Hacks her:  http://www.akademy.co.uk/blog-tips/2010/03/css-style-ie6-media-hack/ [...]</description>
		<content:encoded><![CDATA[<p>[...] IE8 kommt auf Media Queries leider nicht so wirklich klar. Daher müssen CSS-Hacks her:  <a href="http://www.akademy.co.uk/blog-tips/2010/03/css-style-ie6-media-hack/" rel="nofollow">http://www.akademy.co.uk/blog-tips/2010/03/css-style-ie6-media-hack/</a> [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

