<?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>Undercrank &#187; CSS</title>
	<atom:link href="http://undercrank.com/posts/about/web/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://undercrank.com</link>
	<description></description>
	<lastBuildDate>Tue, 06 Jul 2010 18:05:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Fixing the double margin bug in IE</title>
		<link>http://undercrank.com/posts/2004/04/fixing-the-double-margin-bug-in-ie/</link>
		<comments>http://undercrank.com/posts/2004/04/fixing-the-double-margin-bug-in-ie/#comments</comments>
		<pubDate>Wed, 07 Apr 2004 01:32:21 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[double-margin]]></category>
		<category><![CDATA[Internet Explorer]]></category>

		<guid isPermaLink="false">http://undercrank.com/?p=61</guid>
		<description><![CDATA[The ridiculous double margin bug that affects Internet Explorer finally has a cure.
 <a href="http://undercrank.com/posts/2004/04/fixing-the-double-margin-bug-in-ie/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The ridiculous double margin bug that affects Internet Explorer finally has a cure.  For those that haven&#8217;t seen it before, the gist is that sometimes an element that has a <code>margin:</code> and a <code>float:</code> property applied to it, instantly doubles the size of the margin value that matches the float &#8211; in other words, an element with a 10px left margin that also floats left, would mysteriously end up with a 20px left margin instead.</p>
<p>Anyway, <cite>Steve Clason</cite> seems to have found the solution to this and documented it at <a href="http://www.positioniseverything.net/explorer/doubled-margin.html" title="The IE Doubled Float-Margin Bug">Position Is Everything</a>.  Fortunately, it&#8217;s simple indeed &#8211; you set the element to have a <code>display:</code> property of <var>inline</var> and subsequently setting <code>float: <var>left;</var></code> implicitly changes the element back into a <var>block</var> element again.</p>
<p>Which then stops the margin from doubling in size.  Somehow.</p>
]]></content:encoded>
			<wfw:commentRss>http://undercrank.com/posts/2004/04/fixing-the-double-margin-bug-in-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Internet Explorer 7</title>
		<link>http://undercrank.com/posts/2004/03/internet-explorer-7/</link>
		<comments>http://undercrank.com/posts/2004/03/internet-explorer-7/#comments</comments>
		<pubDate>Tue, 09 Mar 2004 16:30:50 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[behaviors]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[support]]></category>

		<guid isPermaLink="false">http://undercrank.com/?p=53</guid>
		<description><![CDATA[Dean Edwards has put together a set of scripts that add some sorely lacking functionality from IE5.5 and IE6.0.
 <a href="http://undercrank.com/posts/2004/03/internet-explorer-7/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Well&#8230; not quite <acronym title="Internet Explorer">IE</acronym> 7, but the next best thing for now.  <a href="http://dean.edwards.name/"><cite>Dean Edwards</cite></a> has put together <a href="http://dean.edwards.name/IE7/">some neat-o scripting</a> using IE&#8217;s behaviour functionality to implement heaps of <acronym title="Cascading Style Sheets">CSS</acronym> 2 properties (attribute selectors, child and sibling selectors) and then some more.</p>
<p>The only downside seems to be the odd issue such as  <a href="http://www.holovaty.com/blog/archive/2004/03/09/1500">this one</a> raised by <cite>Adrian Holovaty</cite> about the file size and location of the file (so as to help users get it from one central source, and thus have that cached for re-use later).</p>
<p>On the positive though, there&#8217;s hope for the old crock of a browser yet.  Even better, Dean says there&#8217;s more to come.</p>
]]></content:encoded>
			<wfw:commentRss>http://undercrank.com/posts/2004/03/internet-explorer-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8216;Nuff Said</title>
		<link>http://undercrank.com/posts/2003/11/nuff-said/</link>
		<comments>http://undercrank.com/posts/2003/11/nuff-said/#comments</comments>
		<pubDate>Tue, 18 Nov 2003 00:58:24 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[tables]]></category>

		<guid isPermaLink="false">http://undercrank.com/?p=33</guid>
		<description><![CDATA[Why tables for layout is stupid.
 <a href="http://undercrank.com/posts/2003/11/nuff-said/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.hotdesign.com/seybold/index.html">Why tables for layout is stupid</a>.</p>
<p>Essential reading.</p>
]]></content:encoded>
			<wfw:commentRss>http://undercrank.com/posts/2003/11/nuff-said/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Media rules in Internet Explorer 5.0</title>
		<link>http://undercrank.com/posts/2003/11/media-rules-in-internet-explorer-50/</link>
		<comments>http://undercrank.com/posts/2003/11/media-rules-in-internet-explorer-50/#comments</comments>
		<pubDate>Wed, 12 Nov 2003 10:00:37 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[at-rule]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[media]]></category>
		<category><![CDATA[print]]></category>
		<category><![CDATA[screen]]></category>

		<guid isPermaLink="false">http://undercrank.com/?p=32</guid>
		<description><![CDATA[
 <a href="http://undercrank.com/posts/2003/11/media-rules-in-internet-explorer-50/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s probably well documented elsewhere, but another CSS failing in Internet Explorer came up for me today.  IE5.5 (and I presume, earlier) fail to properly respect the media attribute within a style tag.  For example, in the following code IE5.x will import <em>both</em> stylesheets for screen rendering:</p>
<pre>
&lt;style type="text/css" media="print"&gt;
@import url("print.css");
&lt;/style&gt;
&lt;style type="text/css" media="screen"&gt;
@import url("screen.css");
&lt;/style&gt;
</pre>
<p>Why would this be an issue?  If you&#8217;ve created a print stylesheet that &#8211; for example &#8211; hides part of the UI for clarity, you&#8217;ll find that the browser will apply both stylesheet rules and hide the UI on the on-screen version too.  Which isn&#8217;t so good.</p>
<p>The solution though is easy enough &#8211; using part of the CSS2 spec that IE5.x again fails to implement correctly.  Within the print specific style sheet, you need to encapsulate the styles with the <tt>@media</tt> rule, like so:</p>
<pre>
@media print {
...style declarations...
}
</pre>
<p>This fixes the problems with IE5.x as it ignores the <tt>@media</tt> rule and the declarations within.  Yay.</p>
]]></content:encoded>
			<wfw:commentRss>http://undercrank.com/posts/2003/11/media-rules-in-internet-explorer-50/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Internet Explorer&#8217;s &#8220;Double Margin&#8221; bug</title>
		<link>http://undercrank.com/posts/2003/11/internet-explorers-double-margin-bug/</link>
		<comments>http://undercrank.com/posts/2003/11/internet-explorers-double-margin-bug/#comments</comments>
		<pubDate>Mon, 03 Nov 2003 15:06:00 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[double-margin]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[float]]></category>
		<category><![CDATA[IE5]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[margin]]></category>

		<guid isPermaLink="false">http://undercrank.com/?p=26</guid>
		<description><![CDATA[Another Internet Explorer rendering bug.  This one causes margins to double in size when an element is floated left.
 <a href="http://undercrank.com/posts/2003/11/internet-explorers-double-margin-bug/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This is starting to become an IE bug database, isn&#8217;t it?  Today&#8217;s latest Microsoft &#8220;quirk&#8221; is the appearance of the so-called &#8220;double-margin&#8221; bug (details on <cite>Big John</cite>&#8216;s &#8220;<a href="http://www.positioniseverything.net/bughouse.html">Bughouse</a>&#8221; page).  The basic idea is that items with a <tt>margin:</tt> set to any value that then also have a <tt>float:</tt> property set to <tt>left</tt>, instantly gain a margin that is double their original size.</p>
<p>The only obvious way around it to create an IE-specific rule that applies a margin that&#8217;s half the size you want it to be &#8211; which will then double up to be the size that it was intended once the <tt>float:</tt> property is applied.</p>
<p>(For a method of creating such a rule, see my earlier post that references the <a href="http://www.undercrank.com/archives/date/2003/10/31/1520/">star html</a> bug.  Unfortunately the bug affects IE6 as well, so the rather more elegant <a href="http://www.undercrank.com/archives/date/2003/10/20/2306/">mid-pass</a> filter won&#8217;t apply here.)</p>
]]></content:encoded>
			<wfw:commentRss>http://undercrank.com/posts/2003/11/internet-explorers-double-margin-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Driven dotty by Internet Explorer</title>
		<link>http://undercrank.com/posts/2003/10/driven-dotty-by-internet-explorer/</link>
		<comments>http://undercrank.com/posts/2003/10/driven-dotty-by-internet-explorer/#comments</comments>
		<pubDate>Fri, 31 Oct 2003 23:20:04 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[border]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[star html]]></category>

		<guid isPermaLink="false">http://undercrank.com/?p=25</guid>
		<description><![CDATA[Another hack for IE that tries to make up for it's poor handling of 1-pixel dotted borders.
 <a href="http://undercrank.com/posts/2003/10/driven-dotty-by-internet-explorer/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>One of the reasons for using the 2-pixel dotted lines for many of the borders on this site is Internet Explorer&#8217;s non-existent support for a 1-pixel dotted line &#8211; it actually renders out a 1-pixel <em>dashed</em> line instead.</p>
<p>There is, however, an interesting hack that attempts to make up for this deficiency that&#8217;s been put together by <a href="http://kalsey.com/2003/07/css_dotted_borders_in_ie/" title="CSS dotted borders in IE"><cite>Kalsey Consulting</cite></a> that in itself makes use of the quirky <a href="http://centricle.com/ref/css/filters/tests/star_html/" title="CSS test: Star html bug">star HTML bug</a> present in IE.</p>
<p>Overall, it&#8217;s a useful technique to get around one of IE&#8217;s many <a href="http://www.positioniseverything.net/explorer.html" title="Explorer Exposed!">bugs, quirks and oddities</a>, but not one I&#8217;ll be pulling out for everyday use just yet.</p>
]]></content:encoded>
			<wfw:commentRss>http://undercrank.com/posts/2003/10/driven-dotty-by-internet-explorer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Peek-a-boo</title>
		<link>http://undercrank.com/posts/2003/10/peek-a-boo/</link>
		<comments>http://undercrank.com/posts/2003/10/peek-a-boo/#comments</comments>
		<pubDate>Fri, 24 Oct 2003 13:10:59 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[IE5]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[peek-a-boo]]></category>

		<guid isPermaLink="false">http://undercrank.com/?p=17</guid>
		<description><![CDATA[Details on the IE6 'Peek-A-Boo' bug, how it happens, and how to cure it.
 <a href="http://undercrank.com/posts/2003/10/peek-a-boo/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Whilst working on a &#8220;secret project&#8221; recently, I came across an rendering error that manifests itself in IE6.  Referred to as the <a href="http://www.positioniseverything.net/explorer/peekaboo.html">&#8220;Peek-a-boo&#8221;</a> bug, it&#8217;s shows itself (or actually, it doesn&#8217;t) by having your content disappear completely, then mysteriously re-appear on a repaint caused by scrolling or switching back to it from another application.</p>
<p>At first, I was almost convinced it was my graphics drivers, or some odd Windows quirk.  However, it&#8217;s a known issue and fortunately the link above documents it and a good workaround.  I chose to use the setting of the <tt>line-height</tt> attribute to 100% on the parent element which cured it straight off, without affecting the flow of the content itself.</p>
]]></content:encoded>
			<wfw:commentRss>http://undercrank.com/posts/2003/10/peek-a-boo/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>A List Apart issue 160</title>
		<link>http://undercrank.com/posts/2003/10/a-list-apart-issue-160/</link>
		<comments>http://undercrank.com/posts/2003/10/a-list-apart-issue-160/#comments</comments>
		<pubDate>Wed, 22 Oct 2003 11:07:04 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[A List Apart]]></category>
		<category><![CDATA[Douglas Bowman]]></category>
		<category><![CDATA[Jeffrey Zeldman]]></category>
		<category><![CDATA[standards]]></category>
		<category><![CDATA[W3C]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://undercrank.com/?p=15</guid>
		<description><![CDATA[A List Apart returns with new features and new looks.
 <a href="http://undercrank.com/posts/2003/10/a-list-apart-issue-160/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>One of the more useful online publications, <a href="http://www.alistapart.com/">A List Apart</a>, has returned after its hiatus with a spiffy new design and some good informative articles (as always).</p>
]]></content:encoded>
			<wfw:commentRss>http://undercrank.com/posts/2003/10/a-list-apart-issue-160/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The mid pass filter for Internet Explorer</title>
		<link>http://undercrank.com/posts/2003/10/the-mid-pass-filter-for-internet-explorer/</link>
		<comments>http://undercrank.com/posts/2003/10/the-mid-pass-filter-for-internet-explorer/#comments</comments>
		<pubDate>Mon, 20 Oct 2003 19:06:04 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[box model]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Tantek Çelik]]></category>

		<guid isPermaLink="false">http://undercrank.com/?p=13</guid>
		<description><![CDATA[Examining Tantek's latest addition to the web developers' CSS toolbox - the "mid pass filter".
 <a href="http://undercrank.com/posts/2003/10/the-mid-pass-filter-for-internet-explorer/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><cite>Tantek &Ccedil;elik</cite> has published an example of what he terms a <a href="http://tantek.com/CSS/Examples/midpass.html">mid pass filter</a> for use with Internet Explorer 5.x.</p>
<p>In his own words:</p>
<blockquote><p><p>&#8220;&#8230;the Mid Pass Filter is a filter which passes external style sheets to version 5.x Internet Explorer for Windows browsers, but not to earlier/older browsers, nor to newer / more modern browsers.&#8221;</p>
</blockquote>
<p><span id="more-13"></span><br />
This is, of course, a more elaborate but not necessarily more elegant way of implementing the changes required for IE5 horrendously broken box model which traditionally involves the use of one of Tantek&#8217;s original workarounds &#8211; the original <a href="http://tantek.com/CSS/Examples/boxmodelhack.html" title="Box Model Hack">box model hack</a>.</p>
<p>Personally, going to the extreme of creating an entirely new stylesheet for one browser may be a relatively clean way of doing things, but it&#8217;s certainly much more tiresome from a developers&#8217; point of view.  The most common issue with IE5&#8242;s faulty CSS support is its&#8217; warped view of the box model in relation to its <code>padding</code> and <code>width</code> attributes which can be cheerfully overridden with with the original hack above or one of its <a href="http://www.google.com/search?q=alternate+box+model+hack" title="Search Google for 'alternate box model hack'">derivatives</a>.</p>
<p>In fact, my own current methodology is to create content and style that works in what we know to be standards compliant browsers &#8211; for example, those using the <a href="http://www.mozilla.org/newlayout/" title="Mozilla Layout Engine">Gecko</a> or <a href="http://www.konqueror.org" title="Konqueror">Konqueror</a> renderers &#8211; as a basis for my work.  Once that is more or less in good working order, I can then go back and check the layout in IE5.x and add in any hacks as required.</p>
<p>Nevertheless, it&#8217;s always good to see innovation in this field.</p>
]]></content:encoded>
			<wfw:commentRss>http://undercrank.com/posts/2003/10/the-mid-pass-filter-for-internet-explorer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
