<?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; CSSFloat</title>
	<atom:link href="http://www.cssfloat.com/author/CSSFloat/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>External Stylesheets</title>
		<link>http://www.cssfloat.com/external-stylesheets/</link>
		<comments>http://www.cssfloat.com/external-stylesheets/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 19:48:21 +0000</pubDate>
		<dc:creator>CSSFloat</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.cssfloat.com/?p=44</guid>
		<description><![CDATA[External style sheets are great for applying the same styles to multiple pages on a website. Unlike internal styles, which need to be added to every single page, external style sheets can be imported directly from a .css file. The .css file must be linked from within the &#60;head&#62; section of your web code.
Here&#8217;s the [...]]]></description>
			<content:encoded><![CDATA[<p>External style sheets are great for applying the same styles to multiple pages on a website. Unlike internal styles, which need to be added to every single page, external style sheets can be imported directly from a .css file. The .css file must be linked from within the &lt;head&gt; section of your web code.</p>
<p>Here&#8217;s the code to be placed between &lt;head&gt; and &lt;/head&gt;:</p>
<div class="csscode">&lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;cssfloat.css&#8221; /&gt;</div>
<p>Replacing cssfloat.css with whatever you named the CSS file.</p>
<p>If you want to take a look at the external style sheet which was previously contolling the CSS on CSSFloat.com, here it is &#8211; http://www.cssfloat.com/cssfloat.css</p>
<p>You can create a CSS file using any basic text editor, like NotePad. Instead of saving the document as .txt, hit the drop menu and select all files. You can then type in whatever.css and save the document as a cascading style sheet.</p>
<h3>Benefits of External Style Sheets</h3>
<p>The biggest positive of using CSS in external style sheets is mentioned above. The ability to apply the same styles to multiple pages, and thus the ability to change the whole look of a website by altering one .css file.</p>
<p>Other benefits include less code on your pages. Removing all of the on-page styles will reduce your page size. Consequently your pages will load slightly faster, the code will be easier to edit in future and search engine spiders will appreciate your greater keyword density!</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><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-float-left-example/" rel="bookmark">CSS Float Left Example</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-right/" rel="bookmark">CSS Float Right</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/external-stylesheets/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CSS Style Tags</title>
		<link>http://www.cssfloat.com/css-style-tags/</link>
		<comments>http://www.cssfloat.com/css-style-tags/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 19:03:07 +0000</pubDate>
		<dc:creator>CSSFloat</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.cssfloat.com/?p=27</guid>
		<description><![CDATA[Style tags contain on-page CSS. Style tags can be placed anywhere within a document but are usually found within the &#60;head&#62; section.
#onpage-example {color: #90C; font: 1.2em "Palatino Linotype", "Book Antiqua", Palatino, serif;}
For example, this sentence was styled by the CSS in style tags directly above in the HTML code.
Don&#8217;t believe me? You&#8217;ll have to right [...]]]></description>
			<content:encoded><![CDATA[<p>Style tags contain on-page CSS. Style tags can be placed anywhere within a document but are usually found within the &lt;head&gt; section.</p>
<style>#onpage-example {color: #90C; font: 1.2em "Palatino Linotype", "Book Antiqua", Palatino, serif;}</style>
<p id="onpage-example">For example, this sentence was styled by the CSS in style tags directly above in the HTML code.</p>
<p>Don&#8217;t believe me? You&#8217;ll have to right click and view the source code for proof.</p>
<p>Opening a style tag is simple, it&#8217;s &lt;style&gt;. To close the style tag, it&#8217;s like most tags, &lt;/style&gt;.</p>
<p>Here&#8217;s the CSS code embedded in style tags on this page.</p>
<div class="csscode">#onpage-example {color: #90C; font: 1.2em &#8220;Palatino Linotype&#8221;, &#8220;Book Antiqua&#8221;, Palatino, serif;}</div>
<div id="crp_related"><h3>Related Posts:</h3><ul><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-float-left-example/" rel="bookmark">CSS Float Left Example</a></li><li><a href="http://www.cssfloat.com/css-float/" rel="bookmark">CSS Float</a></li><li><a href="http://www.cssfloat.com/css-float-right/" rel="bookmark">CSS Float Right</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.cssfloat.com/css-style-tags/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSS &#8211; Class Verus ID</title>
		<link>http://www.cssfloat.com/css-class-verus-id/</link>
		<comments>http://www.cssfloat.com/css-class-verus-id/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 18:57:35 +0000</pubDate>
		<dc:creator>CSSFloat</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.cssfloat.com/?p=23</guid>
		<description><![CDATA[When coding CSS, the choice between using class or id can be confusing to inexperienced web developers. The main reason for this is because most web browsers simply skip over these errors and process class and id styles exactly the same.
The general rule&#8230;
If you intend to use the CSS style more than once on a [...]]]></description>
			<content:encoded><![CDATA[<p>When coding CSS, the choice between using class or id can be confusing to inexperienced web developers. The main reason for this is because most web browsers simply skip over these errors and process class and id styles exactly the same.</p>
<p>The general rule&#8230;</p>
<p>If you intend to use the CSS style more than once on a page, the correct choice is class. Classes use the full stop symbol &#8216;.&#8217;.</p>
<p>For example&#8230;</p>
<div class="csscode">.csscode {background: #0ef; padding: 15px; border: 1px dashed #00c;}</div>
<p>If you intend to use the CSS property only on one object per page, you should use ID. The hash sign &#8216;#&#8217; is the symbol for ID.</p>
<div class="csscode">#copyright {text-align: center; font: 0.8em arial; padding-bottom: 20px;}</div>
<p>Why is getting Class or ID important?</p>
<p>From a website visitors point of view, class or id does not matter. Even with errors the website will still look the same in most browsers. The importance of selecting the correct class or id syntax is more to do with web developers and search engines. Writing valid CSS helps fellow developers understand your code. There is also the unproven belief that valid CSS and HTML increases your chances of better search engine rankings.</p>
<p>To check if your website&#8217;s CSS is valid, visit <a title="CSS Validation" href="http://jigsaw.w3.org/css-validator/" target="_blank">http://jigsaw.w3.org/css-validator/</a></p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.cssfloat.com/external-stylesheets/" rel="bookmark">External Stylesheets</a></li><li><a href="http://www.cssfloat.com/css-float-right/" rel="bookmark">CSS Float Right</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-left-example/" rel="bookmark">CSS Float Left Example</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-class-verus-id/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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>
