<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: short content is breaking my template!</title>
	<link>http://ask.metafilter.com/24517/short-content-is-breaking-my-template/</link>
	<description>Comments on Ask MetaFilter post short content is breaking my template!</description>
	<pubDate>Sun, 25 Sep 2005 10:01:26 -0800</pubDate>
	<lastBuildDate>Sun, 25 Sep 2005 10:01:26 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: short content is breaking my template!</title>
		<link>http://ask.metafilter.com/24517/short-content-is-breaking-my-template</link>	
		<description>Simple CSS question. I&apos;m fooling around with the template for a wiki and, well, &lt;a href=&quot;http://www.mcsweetie.com/askmefi.gif&quot;&gt;this is what&apos;s happening&lt;/a&gt;.  &lt;br /&gt;&lt;br /&gt; here&apos;s the css for the content DIV:&lt;br&gt;
&lt;code&gt;&lt;br&gt;
.content {&lt;br&gt;
   width: 90%;&lt;br&gt;
   border-right: 1px solid black;&lt;br&gt;
   border-left: 1px solid black;&lt;br&gt;
   border-bottom: 1px solid black;&lt;br&gt;
   border-top: 1px solid black;&lt;br&gt;
   padding: 10px 10px 10px 10px;&lt;br&gt;
   background-color: white;&lt;br&gt;
   margin-bottom: 10px;&lt;br&gt;
   padding-left: 20px;&lt;br&gt;
   padding-right: 20px&lt;br&gt;
}&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
The image itself is inside of the DIV and doesn&apos;t have any style applied to it. Any ideas?</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2005:site.24517</guid>
		<pubDate>Sun, 25 Sep 2005 09:59:53 -0800</pubDate>
		<dc:creator>mcsweetie</dc:creator>
		
			<category>css</category>
		
	</item> <item>
		<title>By: o2b</title>
		<link>http://ask.metafilter.com/24517/short-content-is-breaking-my-template#389041</link>	
		<description>Are you sure the image isn&apos;t inheriting a float from somewhere?&lt;br&gt;
&lt;br&gt;
That&apos;s exactly what I would expect to see if the image was floated, but the content wasn&apos;t as tall as the image.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.24517-389041</guid>
		<pubDate>Sun, 25 Sep 2005 10:01:26 -0800</pubDate>
		<dc:creator>o2b</dc:creator>
	</item><item>
		<title>By: o2b</title>
		<link>http://ask.metafilter.com/24517/short-content-is-breaking-my-template#389042</link>	
		<description>I didn&apos;t offer a solution: there are a couple.&lt;br&gt;
&lt;br&gt;
First, if your images are going to be a consistent and predictable height, set a min-height on the container. IE doesn&apos;t obey the min-height though, so you&apos;ll need to give it a height too (but just for IE). My CSS would look like this:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;div.container {min-height: 100px; _height: 100px;}&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
If the image is not consistent, I would put a non-semantic clearing element in the contianer, just prior to closing it. My HTML would look like this:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;&amp;lt;div class=&quot;container&quot;&amp;gt;&lt;br&gt;
&lt;br&gt;
lorem ipsum&lt;br&gt;
&lt;br&gt;
&amp;lt;img src=&quot;foo&quot; /&amp;gt;&lt;br&gt;
&lt;br&gt;
&amp;lt;br style=&quot;clear: both;&quot; /&amp;gt;&lt;br&gt;
&amp;lt;/div&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
Sometimes a BR doesn&apos;t cut it, and I have to use a DIV instead.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.24517-389042</guid>
		<pubDate>Sun, 25 Sep 2005 10:06:39 -0800</pubDate>
		<dc:creator>o2b</dc:creator>
	</item><item>
		<title>By: signal</title>
		<link>http://ask.metafilter.com/24517/short-content-is-breaking-my-template#389043</link>	
		<description>Well known issue. &lt;a href=&quot;http://www.sitepoint.com/blogs/2005/02/26/simple-clearing-of-floats/&quot;&gt;This &lt;/a&gt;should point you in the right direction.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.24517-389043</guid>
		<pubDate>Sun, 25 Sep 2005 10:07:26 -0800</pubDate>
		<dc:creator>signal</dc:creator>
	</item><item>
		<title>By: o2b</title>
		<link>http://ask.metafilter.com/24517/short-content-is-breaking-my-template#389044</link>	
		<description>Sorry, my &quot;containers&quot; are your &quot;content&quot;. I didn&apos;t see that.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.24517-389044</guid>
		<pubDate>Sun, 25 Sep 2005 10:07:31 -0800</pubDate>
		<dc:creator>o2b</dc:creator>
	</item><item>
		<title>By: o2b</title>
		<link>http://ask.metafilter.com/24517/short-content-is-breaking-my-template#389047</link>	
		<description>Whoa -- I&apos;d totally forgotten about the overflow:auto trick.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.24517-389047</guid>
		<pubDate>Sun, 25 Sep 2005 10:09:11 -0800</pubDate>
		<dc:creator>o2b</dc:creator>
	</item><item>
		<title>By: mcsweetie</title>
		<link>http://ask.metafilter.com/24517/short-content-is-breaking-my-template#389082</link>	
		<description>great! thanks for you help, guys.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.24517-389082</guid>
		<pubDate>Sun, 25 Sep 2005 11:21:00 -0800</pubDate>
		<dc:creator>mcsweetie</dc:creator>
	</item>
	</channel>
</rss>
