<?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>israeljernigan.com &#187; float</title>
	<atom:link href="http://www.israeljernigan.com/tag/float/feed" rel="self" type="application/rss+xml" />
	<link>http://www.israeljernigan.com</link>
	<description>personal web blogger</description>
	<lastBuildDate>Sat, 17 Oct 2009 16:28:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CSS Float: The Basics To Get You Started</title>
		<link>http://www.israeljernigan.com/css-float-the-basics-to-get-you-started</link>
		<comments>http://www.israeljernigan.com/css-float-the-basics-to-get-you-started#comments</comments>
		<pubDate>Fri, 18 Jan 2008 11:00:13 +0000</pubDate>
		<dc:creator>Israel Jernigan</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[float]]></category>
		<category><![CDATA[learning]]></category>

		<guid isPermaLink="false">http://www.israeljernigan.com/css-float-the-basics-to-get-you-started</guid>
		<description><![CDATA[This is the first a series of blog posts that I&#8217;m going to be writing that has to do with the CSS float property. I hope you can learn from this and be able to have a broader understanding of how you can use CSS to your benefit.
&#8220;So what is it good for&#8221;, you say? [...]]]></description>
			<content:encoded><![CDATA[<p>This is the first a series of blog posts that I&#8217;m going to be writing that has to do with the CSS <strong>float</strong> property. I hope you can learn from this and be able to have a broader understanding of how you can use CSS to your benefit.</p>
<p><strong>&#8220;So what is it good for&#8221;,</strong> you say? One of the easiest uses of the <strong>float</strong> property is to wrap text around a html block-level element.</p>
<p>You can make an image or even a section on your webpage have text wrap around it. I will show you examples of both.<br />
<span id="more-26"></span><br />
First, you will need a long paragraph</p>
<pre>&lt;div id="post-float-content"&gt;&lt;p&gt;This is a paragraph of text to experiment with the float property. This is a paragraph of text to experiment with the float property. This is a paragraph of text to experiment with the float property. This is a paragraph of text to experiment with the float property. This is a paragraph of text to experiment with the float property. &lt;/p&gt;&lt;/div&gt;</pre>
<p>Next, you will need the element you want floated.</p>
<pre>&lt;span class="post-float-element"&gt;This is the html element being floated.&lt;/span&gt;</pre>
<p>If you want you can also use an image or any other element you want floated. Here is an example.</p>
<pre>&lt;img src="#" class="post-float-element" alt="Image Test for Float"  /&gt;</pre>
<p>Any element you assign the <strong>float</strong> property to will become a block-level element.</p>
<p>Now put the code together, and you will soon be on your way to text wrapping bliss. For this example, I want my floated element to be near the top. So I will put it outside the paragraph tag. You can put it anywhere you like, even inside the paragraph. But you won&#8217;t see any wrapping if you put it at the end of the paragraph. Feel free to experiment until you get what you are looking to achieve.</p>
<h3>Now for the CSS.</h3>
<p>I&#8217;ve added some basic styling to the floated element. So that you can see how the block-level element is behaving inside the paragraph. It should be very apparent what is going on.</p>
<pre>
.post-float-element{
float:left;
width:100px;
height:50px;
border:1px solid #444;
padding:2px;
background-color:#dedede;
clear:left;
}</pre>
<p>Here is the example in full. I hope you&#8217;ve enjoyed this basic post about the <strong>float</strong> property. There will be more to come integrating the <strong>float</strong> property into other parts of your website.</p>
<p id="post-float-content"><span class="post-float-element">This is the html element being floated.</span>This is a paragraph of text to experiment with the float property. This is a paragraph of text to experiment with the float property. This is a paragraph of text to experiment with the float property. This is a paragraph of text to experiment with the float property.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.israeljernigan.com/css-float-the-basics-to-get-you-started/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
