<?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>fordie's Blog &#187; aide-mémoire</title>
	<atom:link href="http://fordie.co.uk/category/technical/aide-memoire/feed/" rel="self" type="application/rss+xml" />
	<link>http://fordie.co.uk</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 10 May 2011 17:58:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Ffffffliping floats!</title>
		<link>http://fordie.co.uk/2007/03/20/ffffffliping-floats/</link>
		<comments>http://fordie.co.uk/2007/03/20/ffffffliping-floats/#comments</comments>
		<pubDate>Tue, 20 Mar 2007 13:45:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[aide-mémoire]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://fordie.co.uk/index.php/2007/03/20/ffffffliping-floats/</guid>
		<description><![CDATA[I&#8217;ve been having various problems over the past few days with CSS floats. more specifically, either background images on containing elements not appearing or floated elements acting as if they&#8217;ve run out of room in the parent element and dropping down on to &#8220;the next line&#8221;. The cause of this is the fact that I [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been having various problems over the past few days with CSS floats. more specifically, either background images on containing elements not appearing or floated elements acting as if they&#8217;ve run out of room in the parent element and dropping down on to &#8220;the next line&#8221;.</p>
<p>The cause of this is the fact that I haven&#8217;t cleared the float before closing the containing element. I have found two ways of curing the problem.</p>
<ol>
<li>Clear the float.</li>
<li>set a min-height on the parent (containing) element. Remembering of course to add a height in your IE specific stylesheet.</li>
</ol>
<p>This is pretty basic stuff, but it&#8217;s been a while since I&#8217;ve hit a problem like this in CSS so it makes sense for me to blog it to help me remember next time; and who knows it might help someone else too.</p>
]]></content:encoded>
			<wfw:commentRss>http://fordie.co.uk/2007/03/20/ffffffliping-floats/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sometimes the little thing you forget causes you the most pain</title>
		<link>http://fordie.co.uk/2006/08/02/sometimes-the-little-thing-you-forget-cause-you-the-most-pain/</link>
		<comments>http://fordie.co.uk/2006/08/02/sometimes-the-little-thing-you-forget-cause-you-the-most-pain/#comments</comments>
		<pubDate>Wed, 02 Aug 2006 06:21:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[aide-mémoire]]></category>
		<category><![CDATA[box model]]></category>
		<category><![CDATA[browsers]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[web standards]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://fordie.co.uk/index.php/2006/08/02/sometimes-the-little-thing-you-forget-cause-you-the-most-pain/</guid>
		<description><![CDATA[I spend a lot of time wrestling with CSS working round IE&#8217;s broken box model. A lot of this pain could have been avoided, if only I&#8217;d remembered about the &#8220;doctype switch&#8221;. If you don&#8217;t know what a box model is, or why IE&#8217;s is broken, have a look at this. There are lot&#8217;s of [...]]]></description>
			<content:encoded><![CDATA[<p>I spend <strong>a lot</strong> of time wrestling with CSS working round IE&#8217;s broken box model.</p>
<p>A lot of this pain could have been avoided, if only I&#8217;d remembered about the &#8220;doctype switch&#8221;.</p>
<p>If you don&#8217;t know what a box model is, or why IE&#8217;s is broken, <a href="http://www.communitymx.com/content/article.cfm?cid=E0989953B6F20B41">have a look at this</a>.</p>
<p>There are lot&#8217;s of CSS hacks that help you get around this issue, but by far the most effective solution is to put IE into &#8220;Standards Mode&#8221;, this is done using a doctype declaration.  As the name sort of implies, this is a line of code that declares the type of document you are serving to your client.<br />
I knew that I could use a doctype to change IE&#8217;s rendering mode (because <a href="http://thinkdrastic.net/">gnarly</a> reminded me the other day), but I couldn&#8217;t remember which one to use. There are lot&#8217;s of articles on the web about this, but none that I saw simply said &#8220;if you want standards mode &#8211; do this&#8221;.</p>
<h2>So here it is&#8230;</h2>
<p>Thanks to Hurricane on the DDN Forum</p>
<h3>If you want to put IE into standards compliant mode</h3>
<p>Use:</p>
<blockquote cite="Hurricane"><p>A full strict doctype, either HTML 4.01 strict or XHTML 1.0 strict without an XML prologue.</p></blockquote>
<p>In other words:</p>
<pre name="code" class="xhtml">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;</pre>
<p>needs to be the first thing in your xhtml document</p>
]]></content:encoded>
			<wfw:commentRss>http://fordie.co.uk/2006/08/02/sometimes-the-little-thing-you-forget-cause-you-the-most-pain/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

