<?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>Css Snippets &#187; clear</title>
	<atom:link href="http://www.csssnippets.be/tag/clear/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.csssnippets.be</link>
	<description>Snippets for you, snippets for me</description>
	<lastBuildDate>Wed, 23 Jun 2010 09:35:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>5 handige clear float tips</title>
		<link>http://www.csssnippets.be/2009/11/5-handige-clear-float-tips/</link>
		<comments>http://www.csssnippets.be/2009/11/5-handige-clear-float-tips/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 06:10:59 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Non Valid]]></category>
		<category><![CDATA[W3C]]></category>
		<category><![CDATA[Xhtml Strict]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[solution]]></category>
		<category><![CDATA[clear]]></category>
		<category><![CDATA[clearfix]]></category>
		<category><![CDATA[float]]></category>
		<category><![CDATA[handig]]></category>
		<category><![CDATA[layout]]></category>

		<guid isPermaLink="false">http://www.csssnippets.be/?p=609</guid>
		<description><![CDATA[Floats moeten altijd gecleard worden als je geen onvoorziene omstandigheden wilt hebben in je layout, hier zijn 5 handige manieren om dit te doen:]]></description>
			<content:encoded><![CDATA[<p>Floats moeten altijd gecleard worden als je geen onvoorziene omstandigheden wilt hebben in je layout, hier zijn 5 handige manieren om dit te doen:</p>
<h4>Tip 1</h4>
<h3>HTML</h3>
<pre title="code" class="xhtml">
&lt;div id="outer"&gt;
	&lt;div id="inner"&gt;
		&lt;p&gt;big floating contents&lt;/p&gt;
	&lt;/div&gt;
	&lt;p&gt;Main Content&lt;/p&gt;
&lt;/div&gt;
</pre>
<h3>CSS</h3>
<pre title="code" class="css">
#outer {
overflow: auto;
height: 1%; /* for IE6 */
}
</pre>
<h4>Tip 2</h4>
<h3>HTML</h3>
<pre title="code" class="xhtml">
&lt;div class="clearfix"&gt;
	&lt;div class="floater"&gt;This text won't extend past the bottom of the "clearfix" div.&lt;/div&gt;
&lt;/div&gt;
</pre>
<h3>CSS</h3>
<pre title="code" class="css">
.clearfix:after {
content: ".";
display: block;
height: 0;
font-size: 0;
clear: both;
visibility: hidden;
}
.clearfix {
display: inline-block;
}
/* Hides from IE5/Mac \*/
* html .clearfix {
height: 1px;
}
.clearfix {
display: block;
}
/* End hide from IE5/Mac */
</pre>
<h4>Tip 3</h4>
<h3>HTML</h3>
<pre title="code" class="xhtml">
&lt;div class="spacer"&gt;&lt;/div&gt;
</pre>
<h3>CSS</h3>
<pre title="code" class="css">
div.spacer {
clear: both;
}
</pre>
<h4>Tip 4</h4>
<h3>HTML</h3>
<pre title="code" class="xhtml">
&lt;br /&gt;
</pre>
<h3>CSS</h3>
<pre title="code" class="css">
br {
clear: both;
height:0;
font-size: 1px;
line-height: 0;
}
</pre>
<h4>Tip 5</h4>
<h3>HTML</h3>
<pre title="code" class="xhtml">
&lt;div class="newBFC"&gt;
	&lt;div class="floater"&gt;
	This text won't extend past the bottom of the "newBFC" div.
	&lt;/div&gt;
&lt;/div&gt;
</pre>
<h3>CSS</h3>
<pre title="code" class="css">
.newBFC {
overflow: hidden;
_overflow: visible; /* not valid */
_overflow-x:hidden; /* not valid */
_height: 0; /* not valid */
}
/*\*//*/
.newBFC {display: inline-block;}
/**/
</pre>



	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.csssnippets.be%2F2009%2F11%2F5-handige-clear-float-tips%2F&amp;title=5%20handige%20clear%20float%20tips&amp;annotation=Floats%20moeten%20altijd%20gecleard%20worden%20als%20je%20geen%20onvoorziene%20omstandigheden%20wilt%20hebben%20in%20je%20layout%2C%20hier%20zijn%205%20handige%20manieren%20om%20dit%20te%20doen%3A" class="google bookmarks" title="Google Bookmarks">Google Bookmarks</a>
	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.csssnippets.be%2F2009%2F11%2F5-handige-clear-float-tips%2F&amp;title=5%20handige%20clear%20float%20tips&amp;bodytext=Floats%20moeten%20altijd%20gecleard%20worden%20als%20je%20geen%20onvoorziene%20omstandigheden%20wilt%20hebben%20in%20je%20layout%2C%20hier%20zijn%205%20handige%20manieren%20om%20dit%20te%20doen%3A" class="digg" title="Digg">Digg</a>
	<a rel="nofollow" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http%3A%2F%2Fwww.csssnippets.be%2F2009%2F11%2F5-handige-clear-float-tips%2F&amp;Title=5%20handige%20clear%20float%20tips" class="blinklist" title="BlinkList">BlinkList</a>
	<a rel="nofollow" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.csssnippets.be%2F2009%2F11%2F5-handige-clear-float-tips%2F" class="technorati" title="Technorati">Technorati</a>
	<a rel="nofollow" href="http://twitter.com/home?status=5%20handige%20clear%20float%20tips%20-%20http%3A%2F%2Fwww.csssnippets.be%2F2009%2F11%2F5-handige-clear-float-tips%2F" class="twitter" title="Twitter">Twitter</a>
	<a rel="nofollow" href="http://delicious.com/post?url=http%3A%2F%2Fwww.csssnippets.be%2F2009%2F11%2F5-handige-clear-float-tips%2F&amp;title=5%20handige%20clear%20float%20tips&amp;notes=Floats%20moeten%20altijd%20gecleard%20worden%20als%20je%20geen%20onvoorziene%20omstandigheden%20wilt%20hebben%20in%20je%20layout%2C%20hier%20zijn%205%20handige%20manieren%20om%20dit%20te%20doen%3A" class="delicious" title="del.icio.us">del.icio.us</a>
	<a rel="nofollow" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.csssnippets.be%2F2009%2F11%2F5-handige-clear-float-tips%2F&amp;t=5%20handige%20clear%20float%20tips" class="facebook" title="Facebook">Facebook</a>
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.csssnippets.be%2F2009%2F11%2F5-handige-clear-float-tips%2F&amp;title=5%20handige%20clear%20float%20tips" class="stumbleupon" title="StumbleUpon">StumbleUpon</a>

<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.csssnippets.be/2009/11/5-handige-clear-float-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
