<?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>Gabriel de Kadt &#187; IE</title>
	<atom:link href="http://www.lazydada.com/tag/ie/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lazydada.com</link>
	<description>Personal notes on Mac based web development and design.</description>
	<lastBuildDate>Thu, 09 Sep 2010 15:29:48 +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>Free from the shackles of CSS conditional comments</title>
		<link>http://www.lazydada.com/2009-09-08/free-from-the-shackles-of-css-conditional-comments/</link>
		<comments>http://www.lazydada.com/2009-09-08/free-from-the-shackles-of-css-conditional-comments/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 12:12:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[conditional comments]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[ie7]]></category>

		<guid isPermaLink="false">http://www.lazydada.com/?page_id=433</guid>
		<description><![CDATA[CSS hacks are here to stay but lets bundle them up in a single style-sheet… After trying to &#8220;hide my shame&#8221; [was it Zeldman that turned me on to CondComs with this phrase?] by using conditional comments for IE specific hacks, I&#8217;m now happier with the new and revised and reverted wisdom that throwing all [...]]]></description>
			<content:encoded><![CDATA[<h4 class="standfirst"><acronym title="Cascading Style Sheets">CSS</acronym> hacks are here to stay but lets bundle them up in a single style-sheet…</h4>
<p>After trying to &#8220;hide my shame&#8221; [was it <a href="http://zeldman.com">Zeldman</a> that turned me on to <abbr title="Conditional Comments">CondComs</abbr> with this phrase?] by using <a href="http://www.456bereastreet.com/archive/200510/stop_using_css_hacks_now/">conditional</a> <a href="http://www.quirksmode.org/css/condcom.html">comments</a> for IE specific hacks, I&#8217;m now happier with the new and revised and reverted wisdom that throwing all your CSS code into a single style sheet is best.</p>
<p>I&#8217;d read Meiert&#8217;s «<a href="http://meiert.com/en/blog/20070201/why-conditional-comments-are-bad-repeat-bad/">CondComs are bad</a>» article ages ago but I was still a print designer by trade so the message went into a back drawer in my mind. It&#8217;s a good read on the cons and it&#8217;s updated too.</p>
<p>For a while I have found elegance in removing offending and non-valid CSS code to fix bug for <acronym title="Microsoft Internet Explorer">IE</acronym>, particularly as a way of dealing with proprietary <acronym title="Microsoft">MS</acronym> code when incorporating PNGs with full alpha transparency into IE6. I&#8217;ve since moved away from trying to make <a href="/2008-10-18/full-alpha-transparency-for-png-images-and-css-backgrounds-in-ie6/">png24 work with IE6</a>; and then came the <a href="http://www.stubbornella.org/content/category/general/geek/performance-geek-general/">speed demons</a> and calls from the gallery for fewer HTTP requests.</p>
<h2>Avoid Extra Stylesheets</h2>
<ul>
<li>Fewer HTTP requests = quicker site (particularly for the majority IE crowd that need the hacks)</li>
<li>All code is kept together for easy reading. &#8216;Cos we al know that code is read more than it is written&#8230;</li>
<li>And lastly; the typical, for me, extra-ordinary reason: no more 404 errors sent to me from my <a title="get server errors emailed to you automatically with a PHP driven 404 error page" href="/2009-01-21/a-better-404/">better 404 page</a> indicating phantom strangeness for style-sheets linked to through conditional comments when there&#8217;s an .htaccess versioning rule.</li>
</ul>
<h4>Hide my shame.</h4>
<p>The only reason I was still using conditional comments was because I had failed to find an IE-7-only selector hack. Thanks to <a href="http://www.webdevout.net/css-hacks#in_css-selectors/ title=">Web Devout</a>. Look there for the comprehensive list &#8211; for posterity I copy paste here:</p>
<h2>CSS hacks in CSS Selectors</h2>
<blockquote><p>IE 6 and below<br />
<code>* html {}</code></p>
<p>IE 7 and below<br />
<code>*:first-child+html {} * html {}</code></p>
<p>IE 7 only<br />
<code>*:first-child+html {}</code></p>
<p>IE 7 and modern browsers only<br />
<code>html&gt;body {}</code></p>
<p>Modern browsers only (not IE 7)<br />
<code>html&gt;/**/body {}</code></p>
<p>Recent Opera versions 9 and below<br />
<code>html:first-child {}</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydada.com/2009-09-08/free-from-the-shackles-of-css-conditional-comments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More PNG transparency notes</title>
		<link>http://www.lazydada.com/2009-05-10/more-png-notes/</link>
		<comments>http://www.lazydada.com/2009-05-10/more-png-notes/#comments</comments>
		<pubDate>Sun, 10 May 2009 10:24:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[PNG]]></category>
		<category><![CDATA[webdesign]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://www.lazydada.com/?p=325</guid>
		<description><![CDATA[Via thinkvitamin and  tipster: a couple of notes that may resolve a couple of outstanding issues I&#8217;ve had with PNG24 transparency use&#8230; Set width and height for the element/s containing the transparent background image [...] (also, bear in mind that the background images can no longer be tiled or positioned via &#8216;background-position&#8217;) Apply  position: relative; to [...]]]></description>
			<content:encoded><![CDATA[<p>Via <a href="http://thinkvitamin.com/design/css/handy-tips-to-help-you-out/">thinkvitamin</a> and  <a href="http://tipster.carsonified.com/categories/css/transparent-background-images-png-fix-for-ie6-a-fe/">tipster</a>: a couple of notes that may resolve a couple of outstanding issues I&#8217;ve had with PNG24 transparency use&#8230;</p>
<blockquote><p>Set width and height for the element/s containing the transparent background image [...] (also, bear in mind that the background images can no longer be tiled or positioned via &#8216;background-position&#8217;)</p>
<div>Apply  <code>position: relative;</code> to any contained links to ensure functionality</div>
</blockquote>
<p>The first point means I&#8217;ll probably not bother trying to tile a drop-shadow background image to a variable length column again. Time to switch to progressive enhancement with Photoshop CS4/Fireworks/other tools&#8217; ability to stuff alpha transparency into  regular PNG8 files.</p>
<p>The second point is probably the better answer to my last <a href="/2009-02-22/ie6-link-bug-over-png/">PNG problem</a> post.</p>
<p>Main post about how to work with <a href="/2008-10-18/full-alpha-transparency-for-png-images-and-css-backgrounds-in-ie6/">PNG24 alpha transparency and IE6</a> &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydada.com/2009-05-10/more-png-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disappearing fixed div in IE7</title>
		<link>http://www.lazydada.com/2009-02-17/disappearing-fixed-div-in-ie7/</link>
		<comments>http://www.lazydada.com/2009-02-17/disappearing-fixed-div-in-ie7/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 17:52:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://www.lazydada.com/?p=186</guid>
		<description><![CDATA[Who&#8217;d have thought &#8211; eh? Here&#8217;s a bug I came across while working on the updated Solutions Overseas website. Not used position:fixed; in anger before. The &#8220;Enquire Now&#8221; button there is fixed. Except in IE7 though. Looked around and it&#8217;s apparently caused by a floated div next to a postion: fixed div (next to/child of [...]]]></description>
			<content:encoded><![CDATA[<h4>Who&#8217;d have thought &#8211; eh?</h4>
<p>Here&#8217;s a bug I came across while working on the updated <a href="http://www.solutionsoverseas.com/" target="_blank">Solutions Overseas website</a>. Not used <code>position:fixed;</code> in anger before. The &#8220;Enquire Now&#8221; button there is fixed. Except in <acronym ="Microsoft Internet Explorer">IE7</acronym> though. Looked around and it&#8217;s apparently caused by a floated div next to a <code>postion: fixed</code> div (next to/child of parent etc&#8230; )</p>
<p>Simple fix &#8211; add another div around or between those two scrapping trouble makers. </p>
<p><a href="http://www.brunildo.org/test/IE_raf3.html" title="fixed div visibility issue in IE7" target="_blank">Documented here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydada.com/2009-02-17/disappearing-fixed-div-in-ie7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->