<?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>Kathy Lin &#187; Code</title>
	<atom:link href="http://www.kathylin.com/blog/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kathylin.com/blog</link>
	<description>Kathy Lin&#039;s personal website -- so it&#039;s mainly about nothing.</description>
	<lastBuildDate>Tue, 16 Mar 2010 16:56:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Centering Divs Using CSS</title>
		<link>http://www.kathylin.com/blog/2007/01/12/centering-divs-using-css/</link>
		<comments>http://www.kathylin.com/blog/2007/01/12/centering-divs-using-css/#comments</comments>
		<pubDate>Fri, 12 Jan 2007 04:40:28 +0000</pubDate>
		<dc:creator>Kathy</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://kathylin.dreamhosters.com/blog/2007/02/12/centering-divs-using-css/</guid>
		<description><![CDATA[Posting to myself so I won&#8217;t forget &#8230;
body {
text-align: center;
min-width: 600px;
}

#wrapper {
margin:0 auto;
width:600px;
text-align: left;
}
The following comes from Andy Budd&#8217;s Website

To centre the div, simply set its width and then use margin auto on the right and left hand sides. Unfortunately this doesn&#8217;t work in IE. However luckily for us, IE also misinterprets text-align: center. Applying [...]]]></description>
			<content:encoded><![CDATA[<p>Posting to myself so I won&#8217;t forget &#8230;</p>
<pre class="example">body {
text-align: center;
min-width: 600px;
}

#wrapper {
margin:0 auto;
width:600px;
text-align: left;
}</pre>
<p>The following comes from <a href="http://www.andybudd.com" target="_blank">Andy Budd&#8217;s Website</a></p>
<blockquote>
<p class="quote">To centre the div, simply set its width and then use margin auto on the right and left hand sides. Unfortunately this doesn&#8217;t work in IE. However luckily for us, IE also misinterprets <code>text-align: center</code>. Applying this to the body centres the div in IE. However it also centres the body text in all the other browsers as well. To get round this you need to use <code>text-align: left;</code> on the div that you&#8217;re centering.</p>
<p class="quote">This gets IE up to scratch. However this is the step I always forget. In Mozilla, if you reduce the size of the browser window, half of your centred div hangs off the left of the page. This is an odd one, but I&#8217;ve been <a href="http://www.andybudd.com/blog/archives/000083.html">reliably informed</a> that it&#8217;s the correct behaviour. To prevent this, just set a <code>min-width</code> on the body tag.</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.kathylin.com/blog/2007/01/12/centering-divs-using-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clearing CSS Floats</title>
		<link>http://www.kathylin.com/blog/2006/09/01/clearing-css-floats/</link>
		<comments>http://www.kathylin.com/blog/2006/09/01/clearing-css-floats/#comments</comments>
		<pubDate>Fri, 01 Sep 2006 12:18:45 +0000</pubDate>
		<dc:creator>Kathy</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://kathylin.dreamhosters.com/blog/2006/09/01/clearing-css-floats/</guid>
		<description><![CDATA[A common problem I&#8217;ve run into when dealing with float based CSS layouts is that the float&#8217;s container doesn&#8217;t stretch to &#8220;include&#8221; the other two floats.   For instance, if a two column layout was done by putting two different div&#8217;s in a container the container div wouldn&#8217;t stretch to enclose the other two.
Here [...]]]></description>
			<content:encoded><![CDATA[<p>A common problem I&#8217;ve run into when dealing with float based CSS layouts is that the float&#8217;s container doesn&#8217;t stretch to &#8220;include&#8221; the other two floats.   For instance, if a two column layout was done by putting two different div&#8217;s in a container the container div wouldn&#8217;t stretch to enclose the other two.</p>
<p>Here are some solutions to that problem that describe the problem itself in more detail.  I decided to link them in case I forgot about them.</p>
<ul>
<li><a href="http://www.positioniseverything.net/easyclearing.html">Clearing Floats without Structural Markup</a> &#8211; This uses CSS 2.0 and the :after psuedo-class.</li>
<li><a href="http://www.quirksmode.org/css/clearing.html">Clearing Floats</a> &#8211; A nice, simple solution that doesn&#8217;t require putting that extra empty &#8220;clear:both&#8221; div tag after the containers that require clearing.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.kathylin.com/blog/2006/09/01/clearing-css-floats/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
