<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://www.foldr.org/~michaelw/log/theme/style/rss.css" type="text/css"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xml:lang="en">

	<channel>
		<title>Random Bits and Pieces :: css</title>
		<link>http://www.foldr.org/~michaelw/log</link>
		<description>Michael Weber</description>
		<language>en</language>
		<lastBuildDate>Thu, 18 Aug 2005 08:46:00 GMT</lastBuildDate>
		<generator>blosxom ver.2.0</generator>


		<item>
			<title>Clearing Floats Without Structural Markup</title>
			<link>http://www.foldr.org/~michaelw/log/css/clearing-floats</link>
			<guid isPermaLink="true">http://www.foldr.org/~michaelw/log/css/clearing-floats</guid>
			<category>http://www.foldr.org/~michaelw/log/css/</category>
			<pubDate>Thu, 18 Aug 2005 08:46:00 GMT</pubDate>
			<content:encoded><![CDATA[
Tony Aslett developed a way to <a
href="http://www.positioniseverything.net/easyclearing.html">clear
float without structural markup</a>.  The technique is used on this site.

<pre><code>
.clearfloat:after {
    content: ""; 
    display: block; 
    height: 0; 
    clear: both; 
    visibility: hidden;
}
</code></pre> 

<div style="border:thin solid grey; margin:1em; width:25em; padding:1ex 0.5em;">
  <div style="float:left; border:thin solid black; background-color:yellow; margin:0.5ex 0.5em; height:15ex;">
    Floating content here
  </div>
  Normal content here.  
</div>

<p style="clear:both">
Observe how the floating box overlaps the bottom border of its container.
</p>

<div class="clearfloat" style="border:thin solid grey; margin:1em; width:25em; padding:1ex 0.5em;">
  <div style="float:left; border:thin solid black; background-color:yellow; margin:0.5ex 0.5em; height:15ex;">
    Floating content here
  </div>
  Normal content here.  The floating box is fully enclosed in the container.
</div>
]]></content:encoded>
			<comments>http://www.foldr.org/~michaelw/log/css/clearing-floats#writeback</comments>
		</item>

	</channel>
</rss>
