<?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 Tutorials and CSS Articles &#187; CSS Floats</title>
	<atom:link href="http://www.cssmaster.co.uk/tag/css-floats/feed" rel="self" type="application/rss+xml" />
	<link>http://www.cssmaster.co.uk</link>
	<description>CSS tutorials and articles</description>
	<lastBuildDate>Tue, 02 Feb 2010 01:43:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CSS Floats</title>
		<link>http://www.cssmaster.co.uk/css-floats</link>
		<comments>http://www.cssmaster.co.uk/css-floats#comments</comments>
		<pubDate>Wed, 27 Jan 2010 23:43:13 +0000</pubDate>
		<dc:creator>CSS Master</dc:creator>
				<category><![CDATA[CSS Tutorials]]></category>
		<category><![CDATA[CSS Floats]]></category>
		<category><![CDATA[CSS Layouts]]></category>

		<guid isPermaLink="false">http://www.cssmaster.co.uk/?p=87</guid>
		<description><![CDATA[Often you&#8217;ll want an item to be left or right aligned with text wrapped around it, this is what CSS Floats are used for.  CSS Floats are used in the majority of CSS layouts, they&#8217;re very handy and you should learn how they work inside and out.
The best example to use for CSS floats [...]]]></description>
			<content:encoded><![CDATA[<p>Often you&#8217;ll want an item to be left or right aligned with text wrapped around it, this is what <strong>CSS Floats</strong> are used for.  CSS Floats are used in the majority of CSS layouts, they&#8217;re very handy and you should learn how they work inside and out.</p>
<p>The best example to use for CSS floats is floating an image to the left or right and having text wrap around it.  Take the following example:<br />
<div id="attachment_88" class="wp-caption alignnone" style="width: 457px"><a href="http://www.cssmaster.co.uk/wp-content/uploads/2010/01/float.jpg"><img src="http://www.cssmaster.co.uk/wp-content/uploads/2010/01/float.jpg" alt="CSS Float" title="CSS Float" width="447" height="261" class="size-full wp-image-88" /></a><p class="wp-caption-text">CSS Float</p></div><br />
To achieve the above is easy, let&#8217;s take a look at the mark-up.<br />
[code]&lt;div&gt;All of your text here. &lt;img src="images/floated.jpg" alt="Floats" class="floatleftexample" /&gt; and the rest of your text here &lt;/div&gt;[/code]<br />
And now the CSS&#8230;<br />
[code].floatleftexample { float:left; }[/code]<br />
This will force the image to &#8216;float&#8217; to the left and all text to flow around it.  </p>
<p>If you use floats on block elements you can quite easily make very effective columned layouts.  Floating two divs to the left and setting widths will give you two adjacent elements.  Handy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cssmaster.co.uk/css-floats/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

