|
<?xml version="1.0" encoding="ISO-8859-1"?>
<x_symbol id='xColEqualizer'>
<sources>
<src><file>xcolequalizer.js</file><note><![CDATA[Default.]]></note></src>
</sources>
<copyright>Original by moi. Modified by Mike Foster.</copyright>
<license>Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL</license>
<groups>
<grp>Size</grp>
</groups>
<type>Function</type>
<description><![CDATA[Equalize the heights of any number of columns. Pass any number of pairs of elements to this function.]]></description>
<syntax>xColEqualizer(parent1, child1, parent2, child2, ...)</syntax>
<parameters>
<par><name>parent1</name><note><![CDATA[element reference or id string of relative or absolute column.]]></note></par>
<par><name>child1</name><note><![CDATA[element reference or id string of static child (content container).]]></note></par>
</parameters>
<return><![CDATA[the height to which each column was set.]]></return>
<dependencies>
<dep>xHeight</dep>
</dependencies>
<demos>
<demo><url>http://cross-browser.com/x/examples/layout3.html</url><note><![CDATA[This demo does not use xColEqualizer but it uses the same technique.]]></note></demo>
</demos>
<tests>
</tests>
<comments>
<comment><date>10Oct06</date><author>mf</author><note><![CDATA[Equalizing column heights has been explored in a number of different applications. It is highly dependent on the HTML structure. Here is the structure I have found to work well with this technique. A 'column' should be a DIV with position:absolute or position:relative. Contained within this column DIV should be a 'content container' DIV with position:static. The column DIV should have overflow:hidden, and the child DIV should have overflow:visible.]]></note></comment>
<comment><date>9Oct06</date><author>mf</author><note><![CDATA[Thanks, moi!]]></note></comment>
</comments>
<revisions>
<rev><num>1</num><date>8Nov05</date><author>mf</author><note><![CDATA[Initial release.]]></note></rev>
</revisions>
</x_symbol>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I have been a software developer since 2005, focusing on .Net applications with MS SQL backends, and recently, C++ applications in Linux, Mac OS X, and Windows.