<?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>ABCoder &#187; css</title>
	<atom:link href="http://abcoder.com/topics/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://abcoder.com</link>
	<description>ABCoder - Coding is Simple as A b c</description>
	<lastBuildDate>Sat, 17 Jul 2010 11:45:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Pure CSS Arrows</title>
		<link>http://abcoder.com/css/pure-css-arrows/</link>
		<comments>http://abcoder.com/css/pure-css-arrows/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 11:44:44 +0000</pubDate>
		<dc:creator>rahen</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[border]]></category>
		<category><![CDATA[corner]]></category>
		<category><![CDATA[css art]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[interesting]]></category>

		<guid isPermaLink="false">http://abcoder.com/?p=675</guid>
		<description><![CDATA[CSS corner experiment using border attributes with html example page.


Related posts:<ol><li><a href='http://abcoder.com/css/css-equal-height-columns/' rel='bookmark' title='Permanent Link: CSS Equal Height Columns'>CSS Equal Height Columns</a> <small>Pure CSS three columns equal height hack with and without background image, bottom border fix and many more. Please go through the full article for different phenomena of div based multi-columns layout with free html, jQuery, javascript, css source code and images....</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>This is a very interesting post! I was doing some experiments with CSS. Using css border properties I created arrow shapes. Hope you&#8217;ll enjoy it.</p>
<p><a href="http://abcoder.com/css-arrows.html" target="_blank">Link to the html page</a>.</p>
<p>Screenshot:</p>
<p><img src="http://abcoder.com/wp-content/uploads/2010/07/pure-css-arrows.png" alt="" title="pure-css-arrows" width="430" height="254" class="alignnone size-full wp-image-677" /></p>


<p>Related posts:</p><ol><li><a href='http://abcoder.com/css/css-equal-height-columns/' rel='bookmark' title='Permanent Link: CSS Equal Height Columns'>CSS Equal Height Columns</a> <small>Pure CSS three columns equal height hack with and without background image, bottom border fix and many more. Please go through the full article for different phenomena of div based multi-columns layout with free html, jQuery, javascript, css source code and images....</small></li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://abcoder.com/css/pure-css-arrows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Equal Height Columns</title>
		<link>http://abcoder.com/css/css-equal-height-columns/</link>
		<comments>http://abcoder.com/css/css-equal-height-columns/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 22:21:58 +0000</pubDate>
		<dc:creator>adnan</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[column]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[equal]]></category>
		<category><![CDATA[excellent]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[height]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[magic]]></category>
		<category><![CDATA[multi-columns]]></category>
		<category><![CDATA[pure]]></category>
		<category><![CDATA[table]]></category>
		<category><![CDATA[table-less]]></category>
		<category><![CDATA[tableless]]></category>
		<category><![CDATA[tricky]]></category>
		<category><![CDATA[useful]]></category>

		<guid isPermaLink="false">http://abcoder.com/?p=145</guid>
		<description><![CDATA[Pure CSS three columns equal height hack with and without background image, bottom border fix and many more. Please go through the full article for different phenomena of div based multi-columns layout with free html, jQuery, javascript, css source code and images.


Related posts:<ol><li><a href='http://abcoder.com/javascript/ie6-fix-for-select-box-over-absolute-positioned-element/' rel='bookmark' title='Permanent Link: IE6 fix for select box over absolute positioned element'>IE6 fix for select box over absolute positioned element</a> <small>The detailed instruction with css and jquery code for drop down menu over select box - fix for ie6....</small></li>
<li><a href='http://abcoder.com/css/pure-css-arrows/' rel='bookmark' title='Permanent Link: Pure CSS Arrows'>Pure CSS Arrows</a> <small>CSS corner experiment using border attributes with html example page....</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Once upon a time people used tables for designing website layout. Definitely table tag has many advantages but it&#8217;s not that flexible &#038; extensile. You can not use proper positioning or floating attributes css style for table based layout. It&#8217;s not that commodious to handle table width/height from Dreamweaver, the layout gets messy when you drag any border of table, td or tr as the dimensions automatically get changed. The most important incentive for the current web sphere is SEO (Search Engine Optimization) which is dramatically &#038; automatically mended when DIV based layout is used where TABLE based layout is toilsome for search bots to crawl &#038; takes much page loading time. And at some point it makes more sense to use table for displaying tabular formatted data only, for example gmail uses table for the email list, this could be done using UL/LI, but table is more appropriate in this case.</p>
<p>Lately most web designers use DIV for page layout designing for its flexibility and robustness. Unlike table div has a big problem (in fact it&#8217;s the nature of div) when you want to give same height to multi-columns div based page layout, you can not do that very easily. I always used javascript for this purpose, but wished if I could do it with css, cos when the javascript is disabled the page layout will be not as expected in most of the cases.</p>
<p>Yes it is possible to create equal height columns with css! You can make the height of multiple floated divs equal using CSS only and no javascript or invalid css. Before beginning I assume you have adequate knowledge on HTML, CSS, javascript and you have already Firebug add-on installed on your Firefox :)</p>
<p>Lemme start from the beginning:</p>
<h3>Default three column layout</h3>
<p><a target="_blank" title="Default three column layout" href='http://abcoder.com/wp-content/uploads/2009/09/default-three-column-layout.html'><img src="http://abcoder.com/wp-content/uploads/2009/09/default-three-column-layout.jpg" alt="default-three-column-layout" title="default-three-column-layout" width="430" height="201" class="alignnone size-full wp-image-246" /><br />
Link to the HTML page</a></p>
<p>When you apply float left and fixed width to multiple adjacent divs, by default the layout looks like the above screen shot. You can see it from browser or have a look at the source code (html/css) on the following link above. You see as the contents are not same in the 3 divs, the height is different.<br />
The next example is making the height of the 3 divs same using javascript (jQuery).</p>
<h3>Three column layout &#8211; equal height using jQuery</h3>
<p><a target="_blank" title="Three column layout - equal height using jQuery" href='http://abcoder.com/wp-content/uploads/2009/09/three-column-layout-js-equal-height.html'><img src="http://abcoder.com/wp-content/uploads/2009/09/three-column-layout-equal-height-jquery.jpg" alt="Three column layout - equal height using jQuery" title="Three column layout - equal height using jQuery" width="430" height="201" class="alignnone size-full wp-image-251" /><br />
Link to the HTML page</a></p>
<p>This is mostly and widely used for making equal height columns using javascript. I&#8217;ve used jQuery here. You may have a look at the source code from the link above.</p>
<pre class="brush: jscript;">$(function(){
	var H = 0;
	$(&quot;div&quot;).each(function(i){
		var h = $(&quot;div&quot;).eq(i).height();
		if(h &gt; H) H = h;
	});
	$(&quot;div&quot;).height(H);
});</pre>
<p>Now here comes the css equal height technique! The mantra is to use a large amount of bottom padding and the same amount of negative bottom margin to the floated divs and keep them inside an overflow hidden div. That&#8217;s all, and the magic happens!</p>
<h3>Three column layout &#8211; equal height using pure CSS</h3>
<p><a target="_blank" title="CSS Equal Height - three column layout" href="http://abcoder.com/wp-content/uploads/2009/09/css-equal-height-three-column-layout.html"><img src="http://abcoder.com/wp-content/uploads/2009/09/css-equal-height-three-column-layout.jpg" alt="CSS Equal Height - three column layout" title="CSS Equal Height - three column layout" width="430" height="201" class="size-full wp-image-256" /><br />
Link to the HTML page</a></p>
<p>Let me get into details on how to do it. At First have a look at <a target="_blank" href="http://abcoder.com/wp-content/uploads/2009/09/css-equal-height-three-column-layout-trick.html" title="CSS Equal Height three column layout tricks">this link</a>. Here I&#8217;ve used a huge amount (9000px) of bottom padding and the same amount of negative bottom margin (-9000px). But this makes the columns look so long and still not equal height at bottom. Now on <a target="_blank" title="CSS Equal Height - three column layout" href="http://abcoder.com/wp-content/uploads/2009/09/css-equal-height-three-column-layout.html">this link</a> I&#8217;ve used a holder div with overflow:hidden and that&#8217;s it, it is doing the magic by hiding the overflow section.</p>
<pre class="brush: css;">body{margin-bottom:50px}
div.holder { overflow:hidden }
div.holder div { float:left; width:30%; background-color:#9C0; margin-right:5px; padding:10px; padding-bottom:9000px; margin-bottom:-9000px }</pre>
<p>Hope it&#8217;s clear now.</p>
<p>There is another method which use a background image with 1px height and color matched with the div&#8217;s bg color and body&#8217;s bg color. Please have a look at the html link, it&#8217;s self-explanatory.</p>
<h3>Three column layout &#8211; equal height using pure CSS with Background Image</h3>
<p><a target="_blank" title="CSS Equal Height - three column layout using bg image" href='http://abcoder.com/wp-content/uploads/2009/09/css-bg-image-equal-height-three-column-layout.html'><img src="http://abcoder.com/wp-content/uploads/2009/09/css-bg-image-equal-height-three-column-layout.jpg" alt="CSS Equal Height - three column layout using bg image" title="CSS Equal Height - three column layout using bg image" width="430" height="189" class="size-full wp-image-256" /><br />
Link to the HTML page</a></p>
<p>Now I&#8217;ll try border to the columns and we&#8217;ll see the problem and it&#8217;s solution.</p>
<h3>Three column layout &#8211; equal height with border</h3>
<p><a target="_blank" title="CSS Equal Height - three column layout using border" href='http://abcoder.com/wp-content/uploads/2009/09/css-equal-height-three-column-layout-with-border.html'><img src="http://abcoder.com/wp-content/uploads/2009/09/css-equal-height-three-column-layout-with-border.jpg" alt="CSS Equal Height - three column layout using border" title="CSS Equal Height - three column layout using border" width="430" height="193" class="size-full wp-image-256" /><br />
Link to the HTML page</a></p>
<p>Here you can see bottom border is missing which is obvious as we&#8217;ve used a huge bottom padding, from Firebug if you turn off overflow:hidden to the holder div and scroll down at the bottom of the page you&#8217;ll see the bottom border there but not equal height.<br />
So how to solve this issue? There are 2 ways to do it &#8211; using a bg image in a tricky way or another pure tricky css hack.</p>
<h3>Three column layout &#8211; equal height with bottom border fix using bg image</h3>
<p><a target="_blank" title="CSS Equal Height - three column layout using border fix" href='http://abcoder.com/wp-content/uploads/2009/09/css-equal-height-three-column-layout-with-border-bg-image-fix.html'><img src="http://abcoder.com/wp-content/uploads/2009/09/css-equal-height-three-column-layout-with-border-bg-image-fix.jpg" alt="CSS Equal Height - three column layout using border fix" title="CSS Equal Height - three column layout using border fix" width="430" height="190" class="size-full wp-image-256" /><br />
Link to the HTML page</a></p>
<p>Here I&#8217;ve used a 1px bg image for the background image and placed it at left-bottom of the bottom-border div with no-repeat and also applied 1px bottom padding. The holder div is inside the bottom-border div. Please feel free to play around with firebug!</p>
<p>This is the last method for bottom border fix without any bg image, just pure css.</p>
<h3>Three column layout &#8211; equal height with bottom border fix using pure css and no bg image</h3>
<p><a target="_blank" title="CSS Equal Height - three column layout using border css fix" href='http://abcoder.com/wp-content/uploads/2009/09/css-equal-height-three-column-layout-with-bottom-border-fix.html'><img src="http://abcoder.com/wp-content/uploads/2009/09/css-equal-height-three-column-layout-with-bottom-border-fix.jpg" alt="CSS Equal Height - three column layout using border fix" title="CSS Equal Height - three column layout using border fix" width="430" height="189" class="size-full wp-image-256" /><br />
Link to the HTML page</a></p>
<p>I&#8217;m not gonna explain the details of this last method, find it out yourself! :)</p>


<p>Related posts:</p><ol><li><a href='http://abcoder.com/javascript/ie6-fix-for-select-box-over-absolute-positioned-element/' rel='bookmark' title='Permanent Link: IE6 fix for select box over absolute positioned element'>IE6 fix for select box over absolute positioned element</a> <small>The detailed instruction with css and jquery code for drop down menu over select box - fix for ie6....</small></li>
<li><a href='http://abcoder.com/css/pure-css-arrows/' rel='bookmark' title='Permanent Link: Pure CSS Arrows'>Pure CSS Arrows</a> <small>CSS corner experiment using border attributes with html example page....</small></li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://abcoder.com/css/css-equal-height-columns/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
