<?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>KILLERSITES.COM &#187; css columns</title>
	<atom:link href="http://www.killersites.com/blog/tag/css-columns/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.killersites.com/blog</link>
	<description>Real world talk about web design, programming and the business of web design.</description>
	<lastBuildDate>Fri, 06 Nov 2009 16:49:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Matching Columns Script &#8211; Update.</title>
		<link>http://www.killersites.com/blog/2007/matching-columns-script-update/</link>
		<comments>http://www.killersites.com/blog/2007/matching-columns-script-update/#comments</comments>
		<pubDate>Sat, 17 Feb 2007 14:06:45 +0000</pubDate>
		<dc:creator>Stefan Mischook</dc:creator>
				<category><![CDATA[Ajax - Javascript]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[css columns]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.killersites.com/blog/2007/matching-columns-script-update/</guid>
		<description><![CDATA[Hi,
I decided to create another blog post to make it easier to find the updated version of the important matching columns script &#8211; it was buried in the originals article&#8217;s comments.
Notes:

The original matching columns video tutorial
The original discussion on the web design forum

 -
Updated script by: Jonathan del Mar 
I have modified the script to [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>I decided to create another blog post to make it easier to find the updated version of the important <a href="http://www.killersites.com/blog/2006/matching-div-heigths/">matching columns script</a> &#8211; it was buried in the originals article&#8217;s comments.</p>
<p>Notes:</p>
<ul>
<li>The original <a href="http://killersites.com/videoTutorials/Tutorial_WebDesign2/matching_divs.html">matching columns video tutorial</a></li>
<li>The original discussion on the <a href="http://www.killersites.com/mvnforum/mvnforum/viewthread?thread=4110#20896">web design forum</a></li>
</ul>
<p> -</p>
<p>Updated script by: Jonathan del Mar </p>
<p>I have modified the script to work with multiple class groups also with elements with multiple class names</p>
<p>/*<br />
Derived from a script by Alejandro Gervasio.<br />
Modified to work in FireFox by Stefan Mischook for Killersites.com</p>
<p>Modified to work with multiple class groups also with elements with multiple class names<br />
by Jonathan del Mar (dec-14-2006)</p>
<p>How it works: just apply the CSS class of ‘column’ to your pages’ main columns.</p>
<p>to work with different classes<br />
add</p>
<p>var columns = new Array(’class_name1′, ‘class_name1′…);</p>
<p>by Jonathan del Mar</p>
<p>by default the script will call<br />
matchColumns();<br />
and the default class_name is ‘column’<br />
(see the bottom of this script)<br />
by Jonathan del Mar</p>
<p>*/<br />
matchColumns=function(my_class){</p>
<p>var divs,contDivs,maxHeight,divHeight,d;</p>
<p>// get all elements in the document</p>
<p>divs=document.getElementsByTagName(’div’);</p>
<p>contDivs=[];</p>
<p>// initialize maximum height value<br />
maxHeight=0;<br />
if (!my_class) {<br />
my_class = ‘column’;<br />
}</p>
<p>my_regex = new RegExp(’(.* |^)’ + my_class + ‘( .*|$)’);</p>
<p>// iterate over all elements in the document</p>
<p>for(var i=0;i elements with class attribute ‘container’</p>
<p>//if(/\bcolumn\b/.test(divs[i].className)){<br />
// modified by Jonathan del Mar to match ‘column’ in multiple classes</p>
<p>if(my_regex.test(divs[i].className)){<br />
d=divs[i];</p>
<p>contDivs[contDivs.length]=d;</p>
<p>// determine height for element</p>
<p>if(d.offsetHeight){</p>
<p>divHeight=d.offsetHeight;</p>
<p>}</p>
<p>else if(d.style.pixelHeight){</p>
<p>divHeight=d.style.pixelHeight;</p>
<p>}</p>
<p>// calculate maximum height</p>
<p>maxHeight=Math.max(maxHeight,divHeight);</p>
<p>}</p>
<p>}</p>
<p>// assign maximum height value to all of container elements</p>
<p>for(var i=0;i<br />
var columns = new Array(’class_name1′, ‘class_name2′, …);</p>
<p>to your html header. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.killersites.com/blog/2007/matching-columns-script-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
