<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Use CSS display:table for Layout</title>
	<atom:link href="http://www.onenaught.com/posts/201/use-css-displaytable-for-layout/feed" rel="self" type="application/rss+xml" />
	<link>http://www.onenaught.com/posts/201/use-css-displaytable-for-layout</link>
	<description>A blog on web standards, accessibility, css, javascript, xslt, and more</description>
	<lastBuildDate>Mon, 09 Jan 2012 03:47:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Stephen Akins</title>
		<link>http://www.onenaught.com/posts/201/use-css-displaytable-for-layout/comment-page-1#comment-14915</link>
		<dc:creator>Stephen Akins</dc:creator>
		<pubDate>Wed, 14 Sep 2011 20:12:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.onenaught.com/?p=201#comment-14915</guid>
		<description>@MJ

That&#039;s a good point, but I don&#039;t think it&#039;s difficult to fix.  For instance, I have already modified my code above to work with the onresize event.  (see http://stephenakins.blogspot.com/2011/01/uniform-div-heights-for-liquid-css-p.html).  It&#039;s not the same thing as what you&#039;re talking abot but if the dynamic content could be made to trigger a reflow function that first got the new height, it should work fine.  Maybe I&#039;ll update my code to accommodate dynamic content.</description>
		<content:encoded><![CDATA[<p>@MJ</p>
<p>That&#8217;s a good point, but I don&#8217;t think it&#8217;s difficult to fix.  For instance, I have already modified my code above to work with the onresize event.  (see <a href="http://stephenakins.blogspot.com/2011/01/uniform-div-heights-for-liquid-css-p.html" rel="nofollow">http://stephenakins.blogspot.com/2011/01/uniform-div-heights-for-liquid-css-p.html</a>).  It&#8217;s not the same thing as what you&#8217;re talking abot but if the dynamic content could be made to trigger a reflow function that first got the new height, it should work fine.  Maybe I&#8217;ll update my code to accommodate dynamic content.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MJ</title>
		<link>http://www.onenaught.com/posts/201/use-css-displaytable-for-layout/comment-page-1#comment-14914</link>
		<dc:creator>MJ</dc:creator>
		<pubDate>Wed, 14 Sep 2011 15:44:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.onenaught.com/?p=201#comment-14914</guid>
		<description>@Stephen Akins: using javascript to make columns&#039; height equal is only good if the content inslde those columns is not dynamic (for example slide down elements or loading content dynamically with AJAX depending on user action).

Once the heights are set on DomReady you would need a lot more code to recalculate proper height everytime something changes dynamicallly. Even then you could get page flicker when recalculating proper height.

And what about when the height of some content elements is animated?</description>
		<content:encoded><![CDATA[<p>@Stephen Akins: using javascript to make columns&#8217; height equal is only good if the content inslde those columns is not dynamic (for example slide down elements or loading content dynamically with AJAX depending on user action).</p>
<p>Once the heights are set on DomReady you would need a lot more code to recalculate proper height everytime something changes dynamicallly. Even then you could get page flicker when recalculating proper height.</p>
<p>And what about when the height of some content elements is animated?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: When learning html - DesignersTalk</title>
		<link>http://www.onenaught.com/posts/201/use-css-displaytable-for-layout/comment-page-1#comment-14909</link>
		<dc:creator>When learning html - DesignersTalk</dc:creator>
		<pubDate>Thu, 18 Aug 2011 13:42:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.onenaught.com/?p=201#comment-14909</guid>
		<description>[...] Use CSS display:table for Layout — onenaught.com  Quite old but is it right? [...]</description>
		<content:encoded><![CDATA[<p>[...] Use CSS display:table for Layout — onenaught.com  Quite old but is it right? [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Akins</title>
		<link>http://www.onenaught.com/posts/201/use-css-displaytable-for-layout/comment-page-1#comment-14874</link>
		<dc:creator>Stephen Akins</dc:creator>
		<pubDate>Sun, 29 May 2011 22:41:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.onenaught.com/?p=201#comment-14874</guid>
		<description>@AK - See my comment above for using jQuery to solve the issue.  It works perfectly in any browser that supports jQuery, including many mobile browsers.</description>
		<content:encoded><![CDATA[<p>@AK &#8211; See my comment above for using jQuery to solve the issue.  It works perfectly in any browser that supports jQuery, including many mobile browsers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: steve</title>
		<link>http://www.onenaught.com/posts/201/use-css-displaytable-for-layout/comment-page-1#comment-14873</link>
		<dc:creator>steve</dc:creator>
		<pubDate>Sun, 29 May 2011 04:16:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.onenaught.com/?p=201#comment-14873</guid>
		<description>I don&#039;t see the meaning of these (yet a lot buggy) properties.

Seeing that {display:table-cell} doesn&#039;t need a specific parent, it seems not so different than {display:inline-block}.
Not to mention that {display:table-column} doesn&#039;t work at all ...

Much better and much more interesting the CSS3 {display:box} with the others following box-properties.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t see the meaning of these (yet a lot buggy) properties.</p>
<p>Seeing that {display:table-cell} doesn&#8217;t need a specific parent, it seems not so different than {display:inline-block}.<br />
Not to mention that {display:table-column} doesn&#8217;t work at all &#8230;</p>
<p>Much better and much more interesting the CSS3 {display:box} with the others following box-properties.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AK</title>
		<link>http://www.onenaught.com/posts/201/use-css-displaytable-for-layout/comment-page-1#comment-14868</link>
		<dc:creator>AK</dc:creator>
		<pubDate>Mon, 16 May 2011 04:06:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.onenaught.com/?p=201#comment-14868</guid>
		<description>CSS tables give the best of both worlds. But as usual IE is making front-end developers disappointed, IE6 amazingly has a big market share today and is mostly used in business environment.</description>
		<content:encoded><![CDATA[<p>CSS tables give the best of both worlds. But as usual IE is making front-end developers disappointed, IE6 amazingly has a big market share today and is mostly used in business environment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Hurt</title>
		<link>http://www.onenaught.com/posts/201/use-css-displaytable-for-layout/comment-page-1#comment-14801</link>
		<dc:creator>Bob Hurt</dc:creator>
		<pubDate>Fri, 18 Feb 2011 19:39:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.onenaught.com/?p=201#comment-14801</guid>
		<description>depending on the fickle machinations of IE-land, you may need the following meta tag (or something similar) in your &#039;head&#039; section:

&lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=EmulateIE8&quot; /&gt;

for an explanation of why Microsoft thinks this is desirable:
http://msdn.microsoft.com/en-us/library/cc288325%28v=vs.85%29.aspx</description>
		<content:encoded><![CDATA[<p>depending on the fickle machinations of IE-land, you may need the following meta tag (or something similar) in your &#8216;head&#8217; section:</p>
<p>&lt;meta http-equiv=&#8221;X-UA-Compatible&#8221; content=&#8221;IE=EmulateIE8&#8243; /&gt;</p>
<p>for an explanation of why Microsoft thinks this is desirable:<br />
<a href="http://msdn.microsoft.com/en-us/library/cc288325%28v=vs.85%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/cc288325%28v=vs.85%29.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Akins</title>
		<link>http://www.onenaught.com/posts/201/use-css-displaytable-for-layout/comment-page-1#comment-14792</link>
		<dc:creator>Stephen Akins</dc:creator>
		<pubDate>Wed, 26 Jan 2011 19:50:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.onenaught.com/?p=201#comment-14792</guid>
		<description>You can use jQuery to make all of the cells on the same row, the same height... even if there are a dynamic number of cells on each row (meaning all of the rows &quot;Float Left&quot; but the number of DIVs on each row depend on the width of the user&#039;s browser window).  

Here is the jQuery for those of you who are interested (I&#039;m assuming the floating DIVs have the class &quot;floatingDiv&quot; assigned to it):

$(document).ready(function() {

 var currentTallest = 0;
 var currentRowStart = 0;
 var rowDivs = new Array();

 $(&#039;div.floatingDiv&#039;).each(function(index) {

  if(currentRowStart != $(this).position().top) {

   // we just came to a new row.  Set all the heights on the completed row
   for(currentDiv = 0 ; currentDiv &lt; rowDivs.length ; currentDiv++) rowDivs[currentDiv].height(currentTallest);

   // set the variables for the new row
   rowDivs.length = 0; // empty the array
   currentRowStart = $(this).position().top;
   currentTallest = $(this).height();
   rowDivs.push($(this));

  } else {

   // another div on the current row.  Add it to the list and check if it&#039;s taller
   rowDivs.push($(this));
   currentTallest = (currentTallest &lt; $(this).height()) ? ($(this).height()) : (currentTallest);

  }
  // do the last row
  for(currentDiv = 0 ; currentDiv &lt; rowDivs.length ; currentDiv++) rowDivs[currentDiv].height(currentTallest);

 });

});</description>
		<content:encoded><![CDATA[<p>You can use jQuery to make all of the cells on the same row, the same height&#8230; even if there are a dynamic number of cells on each row (meaning all of the rows &#8220;Float Left&#8221; but the number of DIVs on each row depend on the width of the user&#8217;s browser window).  </p>
<p>Here is the jQuery for those of you who are interested (I&#8217;m assuming the floating DIVs have the class &#8220;floatingDiv&#8221; assigned to it):</p>
<p>$(document).ready(function() {</p>
<p> var currentTallest = 0;<br />
 var currentRowStart = 0;<br />
 var rowDivs = new Array();</p>
<p> $(&#8216;div.floatingDiv&#8217;).each(function(index) {</p>
<p>  if(currentRowStart != $(this).position().top) {</p>
<p>   // we just came to a new row.  Set all the heights on the completed row<br />
   for(currentDiv = 0 ; currentDiv &lt; rowDivs.length ; currentDiv++) rowDivs[currentDiv].height(currentTallest);</p>
<p>   // set the variables for the new row<br />
   rowDivs.length = 0; // empty the array<br />
   currentRowStart = $(this).position().top;<br />
   currentTallest = $(this).height();<br />
   rowDivs.push($(this));</p>
<p>  } else {</p>
<p>   // another div on the current row.  Add it to the list and check if it&#039;s taller<br />
   rowDivs.push($(this));<br />
   currentTallest = (currentTallest &lt; $(this).height()) ? ($(this).height()) : (currentTallest);</p>
<p>  }<br />
  // do the last row<br />
  for(currentDiv = 0 ; currentDiv &lt; rowDivs.length ; currentDiv++) rowDivs[currentDiv].height(currentTallest);</p>
<p> });</p>
<p>});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sanjeev</title>
		<link>http://www.onenaught.com/posts/201/use-css-displaytable-for-layout/comment-page-1#comment-13852</link>
		<dc:creator>Sanjeev</dc:creator>
		<pubDate>Sat, 11 Apr 2009 04:26:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.onenaught.com/?p=201#comment-13852</guid>
		<description>Thanks Anoop,

Actually i was really trying very hard to find some table layout without using Table then, i come across some techniques

 &lt;ol id=&quot;main&quot;&gt;
    &lt;li id=&quot;main&quot;&gt;left block&lt;/li&gt;
    &lt;li id=&quot;main&quot;&gt;body block&lt;/li&gt;
    &lt;li id=&quot;main&quot;&gt;right block&lt;/li&gt;
  &lt;/ol&gt;

   &lt;style&gt;
    * {margin:0;padding:0;}
    #main{display:table-row; list-style-type:none }
  #left,#body,#right {display:table-cell;}
  &lt;/style&gt;
  Its really worked for me</description>
		<content:encoded><![CDATA[<p>Thanks Anoop,</p>
<p>Actually i was really trying very hard to find some table layout without using Table then, i come across some techniques</p>
<p> &lt;ol id=&quot;main&quot;&gt;<br />
    &lt;li id=&quot;main&quot;&gt;left block&lt;/li&gt;<br />
    &lt;li id=&quot;main&quot;&gt;body block&lt;/li&gt;<br />
    &lt;li id=&quot;main&quot;&gt;right block&lt;/li&gt;<br />
  &lt;/ol&gt;</p>
<p>   &lt;style&gt;<br />
    * {margin:0;padding:0;}<br />
    #main{display:table-row; list-style-type:none }<br />
  #left,#body,#right {display:table-cell;}<br />
  &lt;/style&gt;<br />
  Its really worked for me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sanjeev</title>
		<link>http://www.onenaught.com/posts/201/use-css-displaytable-for-layout/comment-page-1#comment-13851</link>
		<dc:creator>Sanjeev</dc:creator>
		<pubDate>Sat, 11 Apr 2009 04:21:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.onenaught.com/?p=201#comment-13851</guid>
		<description>Thanks Anoop,

Actually i was really trying very hard to find some table layout without using Table then, i come across some techniques...


  left block
  body block
  right block



  * {margin:0;padding:0;}
  #main{display:table-row; list-style-type:none }
  #left,#body,#right {display:table-cell;}


Its really worked for me</description>
		<content:encoded><![CDATA[<p>Thanks Anoop,</p>
<p>Actually i was really trying very hard to find some table layout without using Table then, i come across some techniques&#8230;</p>
<p>  left block<br />
  body block<br />
  right block</p>
<p>  * {margin:0;padding:0;}<br />
  #main{display:table-row; list-style-type:none }<br />
  #left,#body,#right {display:table-cell;}</p>
<p>Its really worked for me</p>
]]></content:encoded>
	</item>
</channel>
</rss>

