<?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 Float &#187; Examples</title>
	<atom:link href="http://www.cssfloat.com/category/css-examples/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cssfloat.com</link>
	<description>CSS Float tips, tutorials. Learn CSS Float.</description>
	<lastBuildDate>Sun, 10 Jan 2010 19:49:49 +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>CSS Float Right</title>
		<link>http://www.cssfloat.com/css-float-right/</link>
		<comments>http://www.cssfloat.com/css-float-right/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 18:51:51 +0000</pubDate>
		<dc:creator>CSSFloat</dc:creator>
				<category><![CDATA[Examples]]></category>

		<guid isPermaLink="false">http://www.cssfloat.com/?p=18</guid>
		<description><![CDATA[Floating an element right is exactly like floating left, except the code is
{float: right;} ie. #floatrightexample {float: right;}
This time we&#8217;re going to be floating an image that already has its width defined. Hence, there&#8217;s no need to include the width in the CSS code.

Also, did you notice the change in the CSS code?
We used a [...]]]></description>
			<content:encoded><![CDATA[<p>Floating an element right is exactly like <a title="CSS Float Tutorial - Float Fleft Example" href="http://www.cssfloat.com/css-float-left/">floating left</a>, except the code is</p>
<p class="csscode">{float: right;} ie. #floatrightexample {float: right;}</p>
<p>This time we&#8217;re going to be floating an image that already has its width defined. Hence, there&#8217;s no need to include the width in the CSS code.</p>
<p><a title="Upload images" href="http://www.tmace.com" target="_blank"><img id="floatrightexample" src="http://www.cssfloat.com/images/tmace-ad.png" border="0" alt="Tmace - Upload GIF, JPG, BMP, PSP, PSD &amp; more" width="400" height="114" /></a></p>
<p>Also, did you notice the change in the CSS code?</p>
<p>We used a &#8216;#&#8217; instead of a &#8216;.&#8217;. This simply refers whether we&#8217;re using <a title="CSS - Class or ID" href="http://www.cssfloat.com/css-class-versus-id/">id or class</a>, this is important for creating valid CSS.</p>
<p class="htmlc">The html code will look something like this&#8230;</p>
<p class="htmlc">&lt;img id=&#8221;floatrightexample&#8221; src=&#8221;images/image.png&#8221; height=&#8221;100&#8243; width=&#8221;100&#8243; alt=&#8221;CSS float right example&#8221; border=&#8221;0&#8243; /&gt;</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.cssfloat.com/css-float-left-example/" rel="bookmark">CSS Float Left Example</a></li><li><a href="http://www.cssfloat.com/css-class-verus-id/" rel="bookmark">CSS - Class Verus ID</a></li><li><a href="http://www.cssfloat.com/external-stylesheets/" rel="bookmark">External Stylesheets</a></li><li><a href="http://www.cssfloat.com/css-style-tags/" rel="bookmark">CSS Style Tags</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.cssfloat.com/css-float-right/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Float Left Example</title>
		<link>http://www.cssfloat.com/css-float-left-example/</link>
		<comments>http://www.cssfloat.com/css-float-left-example/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 15:02:28 +0000</pubDate>
		<dc:creator>CSSFloat</dc:creator>
				<category><![CDATA[Examples]]></category>

		<guid isPermaLink="false">http://www.cssfloat.com/?p=5</guid>
		<description><![CDATA[Here&#8217;s an example of using CSS Float to float an item left.
The square below with a blue border is a div tag aptly named &#8220;floatleftexample&#8221;.
.floatleftexample {float: left; width: 320px; border: 1px solid #00f; margin: 10px;}




In order for the blue square to float left of this text, the floatleftexample div must be above this paragraph in [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s an example of using CSS Float to float an item left.</p>
<p>The square below with a blue border is a div tag aptly named &#8220;floatleftexample&#8221;.</p>
<style>.floatleftexample {float: left; width: 320px; border: 1px solid #00f; margin: 10px;}</style>
<div class="floatleftexample"><script type="text/javascript"><!--
google_ad_client = "pub-5898025502000312";
/* 300x250, created 8/7/08 */
google_ad_slot = "4822333880";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>In order for the blue square to float left of this text, the floatleftexample div must be above this paragraph in the html code.</p>
<h3><strong>Float Left Code</strong></h3>
<p>Let&#8217;s start with the CSS code. This can be placed between style tags or in an external stylesheet.</p>
<div class="csscode">.floatleftexample {float: left; width: 320px;}</div>
<p>That&#8217;s it! Pretty simple eh? Remember to include a width to make the CSS valid.</p>
<p>and the html code&#8230;</p>
<p>&lt;div class=&#8221;floatleftexample&#8221;&gt;Contents of the blue square&lt;/div&gt;</p>
<p>&lt;p&gt;Text to the right of the Blue square.&lt;/p&gt;</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.cssfloat.com/css-float-right/" rel="bookmark">CSS Float Right</a></li><li><a href="http://www.cssfloat.com/external-stylesheets/" rel="bookmark">External Stylesheets</a></li><li><a href="http://www.cssfloat.com/css-class-verus-id/" rel="bookmark">CSS - Class Verus ID</a></li><li><a href="http://www.cssfloat.com/css-style-tags/" rel="bookmark">CSS Style Tags</a></li><li><a href="http://www.cssfloat.com/css-float/" rel="bookmark">CSS Float</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.cssfloat.com/css-float-left-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
