<?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>Rayhan's blog (raynux.com) &#187; HTML</title>
	<atom:link href="http://raynux.com/blog/category/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://raynux.com/blog</link>
	<description>Rayhan's Personal Web Blog Site</description>
	<lastBuildDate>Mon, 11 Apr 2011 06:33:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Painless css layout implementation with float clearfix tweaking.</title>
		<link>http://raynux.com/blog/2008/06/24/painless-css-layout-implementation-with-float-clearfix-tweaking/</link>
		<comments>http://raynux.com/blog/2008/06/24/painless-css-layout-implementation-with-float-clearfix-tweaking/#comments</comments>
		<pubDate>Tue, 24 Jun 2008 07:36:17 +0000</pubDate>
		<dc:creator>rayhan</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Reference]]></category>
		<category><![CDATA[Layout]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://raynux.com/blog/?p=31</guid>
		<description><![CDATA[Most of the time I forget what I did to solve a problem in the past. So I have decided to do some shorthand documentation. This is how I solve a very tricky problem when working with css in layout designing. I add the following css rules in my style file. .clearfix:after { content: "."; [...]]]></description>
			<content:encoded><![CDATA[<p>Most of the time I forget what I did to solve a problem in the past. So I have decided to do some shorthand documentation.</p>
<p>This is how I solve a very tricky problem when working with css in layout designing. I add the following  css rules in my style file.</p>
<pre>
<code>
.clearfix:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}
/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
/* End hide from IE-mac */
/* row can be in any place */
.row{
	clear: both;
	margin-bottom: .3em;
}
.row:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}
/* Hides from IE-mac \*/
* html .row {height: 1%;}
/* End hide from IE-mac */
.column{
	float: left;
	padding: 0;
	margin: 0;
	margin-right: 15px;
	padding-right: 0;
}
.last{
	margin-right:0;
	padding-right:0;
}

</code>
</pre>
<p>Then I add the simple row, and column class to the html elements to get the work done. like</p>
<pre>
<code>
        &lt;div class="row"&gt;
            &lt;h2&gt;Header&lt;/h2&gt;
        &lt;/div&gt;
        &lt;div class="row"&gt;
            &lt;div class="column"&gt;Home&lt;/div&gt;
            &lt;div class="column"&gt;Services&lt;/div&gt;
            &lt;div class="column"&gt;Products&lt;/div&gt;
            &lt;div class="column last"&gt;News&lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="row"&gt;
            &lt;h2&gt;Content&lt;/h2&gt;
            &lt;div class="column"&gt;Body Column 1&lt;/div&gt;
            &lt;div class="column"&gt;Body Column 2
                &lt;div class="column row"&gt;
                    &lt;div class="column"&gt;
                        Nested Body Column 1
                    &lt;/div&gt;
                    &lt;div class="column last"&gt;
                        Nested Body Column 2
                    &lt;/div&gt;
                &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class="column last"&gt;Body Column 3&lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="row"&gt;
            &lt;div class="column"&gt;Footer Text&lt;/div&gt;
            &lt;div class="column last"&gt;Copyright text&lt;/div&gt;
        &lt;/div&gt;
    </code>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://raynux.com/blog/2008/06/24/painless-css-layout-implementation-with-float-clearfix-tweaking/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

