<?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: Internet explorer is a jerk: css hacks</title>
	<atom:link href="http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/feed/" rel="self" type="application/rss+xml" />
	<link>http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/</link>
	<description>The Ancillary Factory blog</description>
	<pubDate>Tue, 06 Jan 2009 05:15:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Obagi Blue Peel</title>
		<link>http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/comment-page-1/#comment-1629</link>
		<dc:creator>Obagi Blue Peel</dc:creator>
		<pubDate>Thu, 12 Jun 2008 18:14:37 +0000</pubDate>
		<guid isPermaLink="false">http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/#comment-1629</guid>
		<description>&lt;strong&gt;Obagi...&lt;/strong&gt;

I found your site on technorati and read a few of your other posts. Keep up the good work. I just added your RSS feed to my Google News Reader. Looking forward to reading more from you....</description>
		<content:encoded><![CDATA[<p><strong>Obagi&#8230;</strong></p>
<p>I found your site on technorati and read a few of your other posts. Keep up the good work. I just added your RSS feed to my Google News Reader. Looking forward to reading more from you&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wo kann man gratis filme runterladen?</title>
		<link>http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/comment-page-1/#comment-969</link>
		<dc:creator>wo kann man gratis filme runterladen?</dc:creator>
		<pubDate>Sat, 19 Apr 2008 11:23:03 +0000</pubDate>
		<guid isPermaLink="false">http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/#comment-969</guid>
		<description>&lt;strong&gt;13 hier klicken und Filme runterladen&lt;/strong&gt;

wo kann man gratis filme runterladen?</description>
		<content:encoded><![CDATA[<p><strong>13 hier klicken und Filme runterladen</strong></p>
<p>wo kann man gratis filme runterladen?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Smawfield</title>
		<link>http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/comment-page-1/#comment-41</link>
		<dc:creator>Ben Smawfield</dc:creator>
		<pubDate>Fri, 14 Dec 2007 15:24:29 +0000</pubDate>
		<guid isPermaLink="false">http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/#comment-41</guid>
		<description>This isn't really a great way of going about things.

The best way to send different CSS to different browsers is now widely accepted to be conditional comments.


You should have stylesheets that have your code working properly in standards-compliant browsers (Firefox).

Then, if things aren't working as you wish in Internet Explorer, you should have separate stylesheets to target this browser - one for IE7, one for IE6, etc as needed.

These can then be sent to Internet Explorer by placing them in conditional comments in your HTML below where you have linked to your normal stylesheet.

Example:



&lt;!--[if gte IE 7]&#62;&#60;![endif]--&gt;

&lt;!--[if lt IE 7]&#62;&#60;![endif]--&gt;

&lt;!--[if lt IE 6]&#62;&#60;![endif]--&gt;</description>
		<content:encoded><![CDATA[<p>This isn&#8217;t really a great way of going about things.</p>
<p>The best way to send different CSS to different browsers is now widely accepted to be conditional comments.</p>
<p>You should have stylesheets that have your code working properly in standards-compliant browsers (Firefox).</p>
<p>Then, if things aren&#8217;t working as you wish in Internet Explorer, you should have separate stylesheets to target this browser - one for IE7, one for IE6, etc as needed.</p>
<p>These can then be sent to Internet Explorer by placing them in conditional comments in your HTML below where you have linked to your normal stylesheet.</p>
<p>Example:</p>
<p><!--[if gte IE 7]&gt;&lt;![endif]--></p>
<p><!--[if lt IE 7]&gt;&lt;![endif]--></p>
<p><!--[if lt IE 6]&gt;&lt;![endif]--></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Web 2.0 Announcer</title>
		<link>http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/comment-page-1/#comment-40</link>
		<dc:creator>Web 2.0 Announcer</dc:creator>
		<pubDate>Fri, 14 Dec 2007 10:14:23 +0000</pubDate>
		<guid isPermaLink="false">http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/#comment-40</guid>
		<description>&lt;strong&gt;Internet Explorer is a jerk: CSS&lt;/strong&gt;

[...]Use the [id] attribute to make Internet Explorer 6 ignore certain CSS rules.[...]</description>
		<content:encoded><![CDATA[<p><strong>Internet Explorer is a jerk: CSS</strong></p>
<p>[...]Use the [id] attribute to make Internet Explorer 6 ignore certain CSS rules.[...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/comment-page-1/#comment-38</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Wed, 12 Dec 2007 17:59:55 +0000</pubDate>
		<guid isPermaLink="false">http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/#comment-38</guid>
		<description>Two words:

overflow:hidden;</description>
		<content:encoded><![CDATA[<p>Two words:</p>
<p>overflow:hidden;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kris</title>
		<link>http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/comment-page-1/#comment-31</link>
		<dc:creator>Kris</dc:creator>
		<pubDate>Thu, 06 Dec 2007 16:39:16 +0000</pubDate>
		<guid isPermaLink="false">http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/#comment-31</guid>
		<description>Conditional comments, people, conditions comments... Coupled with hack-management, there really is no better solution...</description>
		<content:encoded><![CDATA[<p>Conditional comments, people, conditions comments&#8230; Coupled with hack-management, there really is no better solution&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan</title>
		<link>http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/comment-page-1/#comment-28</link>
		<dc:creator>Jan</dc:creator>
		<pubDate>Mon, 03 Dec 2007 22:59:50 +0000</pubDate>
		<guid isPermaLink="false">http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/#comment-28</guid>
		<description>yep, IE6 sux :) also IE7 although little less. thank you for the hack.</description>
		<content:encoded><![CDATA[<p>yep, IE6 sux <img src='http://ancillaryfactory.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> also IE7 although little less. thank you for the hack.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/comment-page-1/#comment-27</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Mon, 03 Dec 2007 20:51:52 +0000</pubDate>
		<guid isPermaLink="false">http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/#comment-27</guid>
		<description>Cool. Thanks for reading. &lt;a href="http://dustinbrewer.com/index.php?a=37" rel="nofollow"&gt;Dustin Brewer's article&lt;/a&gt; (in the comments above) has a good solution too.</description>
		<content:encoded><![CDATA[<p>Cool. Thanks for reading. <a href="http://dustinbrewer.com/index.php?a=37" rel="nofollow">Dustin Brewer&#8217;s article</a> (in the comments above) has a good solution too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shane plasebo</title>
		<link>http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/comment-page-1/#comment-26</link>
		<dc:creator>shane plasebo</dc:creator>
		<pubDate>Mon, 03 Dec 2007 18:17:57 +0000</pubDate>
		<guid isPermaLink="false">http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/#comment-26</guid>
		<description>Great blog post. It was very helpful. I often get such problem when combining a height or width to a relatively or absolutely postioned div. I always get a difference between IE and firefox. I often solve it with the !important but sometimes it fails to work. Damn it!

I will try this to see if it work fine.

Thanks again...</description>
		<content:encoded><![CDATA[<p>Great blog post. It was very helpful. I often get such problem when combining a height or width to a relatively or absolutely postioned div. I always get a difference between IE and firefox. I often solve it with the !important but sometimes it fails to work. Damn it!</p>
<p>I will try this to see if it work fine.</p>
<p>Thanks again&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/comment-page-1/#comment-25</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Mon, 03 Dec 2007 13:42:56 +0000</pubDate>
		<guid isPermaLink="false">http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/#comment-25</guid>
		<description>Dustin-Nice article.  Seems like that's probably the best and cleanest solution.</description>
		<content:encoded><![CDATA[<p>Dustin-Nice article.  Seems like that&#8217;s probably the best and cleanest solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Web 2.0 Announcer</title>
		<link>http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/comment-page-1/#comment-24</link>
		<dc:creator>Web 2.0 Announcer</dc:creator>
		<pubDate>Mon, 03 Dec 2007 10:16:43 +0000</pubDate>
		<guid isPermaLink="false">http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/#comment-24</guid>
		<description>&lt;strong&gt;Internet Explorer is a Jerk: CSS Hacks &#124; Sassafrass&lt;/strong&gt;

[...][...]</description>
		<content:encoded><![CDATA[<p><strong>Internet Explorer is a Jerk: CSS Hacks | Sassafrass</strong></p>
<p>[...][...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Willy Bergsnov</title>
		<link>http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/comment-page-1/#comment-23</link>
		<dc:creator>Willy Bergsnov</dc:creator>
		<pubDate>Mon, 03 Dec 2007 08:48:04 +0000</pubDate>
		<guid isPermaLink="false">http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/#comment-23</guid>
		<description>The problem with the floated divs arise because IE6 will double the left margin you put on your containers if they are floated right(!). To make the behave good, just set «display» to «inline» for the floated containers and everything will be good – and your overall width can stay the same.</description>
		<content:encoded><![CDATA[<p>The problem with the floated divs arise because IE6 will double the left margin you put on your containers if they are floated right(!). To make the behave good, just set «display» to «inline» for the floated containers and everything will be good – and your overall width can stay the same.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dustin Brewer</title>
		<link>http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/comment-page-1/#comment-21</link>
		<dc:creator>Dustin Brewer</dc:creator>
		<pubDate>Mon, 03 Dec 2007 04:11:57 +0000</pubDate>
		<guid isPermaLink="false">http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/#comment-21</guid>
		<description>I would avoid CSS hacks as much as possible. There are other much better solutions to targeting various IE browsers. They actually implemented an if statement that you can use in your code to check for and apply certain statements to ie7/ie6 or any combination of IE browsers. I wrote an &lt;a href="http://dustinbrewer.com/index.php?a=37" rel="nofollow"&gt; article&lt;/a&gt; about it a while back.</description>
		<content:encoded><![CDATA[<p>I would avoid CSS hacks as much as possible. There are other much better solutions to targeting various IE browsers. They actually implemented an if statement that you can use in your code to check for and apply certain statements to ie7/ie6 or any combination of IE browsers. I wrote an <a href="http://dustinbrewer.com/index.php?a=37" rel="nofollow"> article</a> about it a while back.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/comment-page-1/#comment-20</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Mon, 03 Dec 2007 01:35:26 +0000</pubDate>
		<guid isPermaLink="false">http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/#comment-20</guid>
		<description>I agree-it's kind of an inelegant solution. I'm still not exactly sure what the nested content element does, however.  Would it work if I just floated both columns to the left?  Thanks much for writing.</description>
		<content:encoded><![CDATA[<p>I agree-it&#8217;s kind of an inelegant solution. I&#8217;m still not exactly sure what the nested content element does, however.  Would it work if I just floated both columns to the left?  Thanks much for writing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/comment-page-1/#comment-19</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Sun, 02 Dec 2007 22:31:58 +0000</pubDate>
		<guid isPermaLink="false">http://ancillaryfactory.com/blog/2007/11/21/internet-exporer-is-a-jerk-css-hacks/#comment-19</guid>
		<description>I wouldn't use that hack unless absolutely necessary. That will (in theory) slow down your page and decrease the readability of your code. It also will jack up browsers that render properly but don't support attribute selectors.

If I ran into a problem like that, I would specify an absolute width on the sidebar and content area, the put a third element within the content element. This would display as block (to fill the entire object) and have whatever padding needs to be put in place. This avoids the hack entirely and allows you to place elements in your body area that don't abide by the padding (like a divider or something).

Also, I feel that the only CSS hack that should be used if absolutely necessary is the asterisk html hack.(* html ...). This is because it can only apply to IE6 (as IE invented the problem). By using a feature that simply isn't supported, you run the risk of affecting browsers that follow the rules but aren't yet capable of that kind of advanced parsing.</description>
		<content:encoded><![CDATA[<p>I wouldn&#8217;t use that hack unless absolutely necessary. That will (in theory) slow down your page and decrease the readability of your code. It also will jack up browsers that render properly but don&#8217;t support attribute selectors.</p>
<p>If I ran into a problem like that, I would specify an absolute width on the sidebar and content area, the put a third element within the content element. This would display as block (to fill the entire object) and have whatever padding needs to be put in place. This avoids the hack entirely and allows you to place elements in your body area that don&#8217;t abide by the padding (like a divider or something).</p>
<p>Also, I feel that the only CSS hack that should be used if absolutely necessary is the asterisk html hack.(* html &#8230;). This is because it can only apply to IE6 (as IE invented the problem). By using a feature that simply isn&#8217;t supported, you run the risk of affecting browsers that follow the rules but aren&#8217;t yet capable of that kind of advanced parsing.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
