<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel>
            <title>Ed Eliot - Latest Blog Comments</title>
            <link>http://www.ejeliot.com/</link>
            <description>Web Standards, PHP, HTML, CSS, JavaScript and other technologies</description>
            <language>en-gb</language>
         <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/ejeliot/comments-rss" type="application/rss+xml" /><feedburner:browserFriendly></feedburner:browserFriendly><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item><title>Postbank lenen on CSS Sprite Generator Source Code Released</title><description>&lt;p&gt;Let's give it a go and see what we've got here. Thanks my man&lt;/p&gt;
</description><link>http://www.ejeliot.com/blog/123</link><pubDate>Fri, 18 Sep 2009 02:11:04 PDT</pubDate><guid isPermaLink="true">http://www.ejeliot.com/blog/123#1421</guid></item><item><title>Postbank lenen on Automatic versioning of CSS, JavaScript and Images</title><description>&lt;p&gt;That's the way to go. Never get confused about finding the problem, files will always be the newest and will be loaded again.&lt;/p&gt;
</description><link>http://www.ejeliot.com/blog/125</link><pubDate>Fri, 18 Sep 2009 02:09:08 PDT</pubDate><guid isPermaLink="true">http://www.ejeliot.com/blog/125#1420</guid></item><item><title>Afsar on Equal Height Columns using CSS</title><description>&lt;p&gt;Nice and helpful post... Thank you very much.. :-)&lt;/p&gt;
</description><link>http://www.ejeliot.com/blog/61</link><pubDate>Wed, 16 Sep 2009 21:28:39 PDT</pubDate><guid isPermaLink="true">http://www.ejeliot.com/blog/61#1417</guid></item><item><title>Afsar on Equal Height Columns using CSS</title><description>&lt;p&gt;Nice and helpful post... Thank you very much.. :-)&lt;/p&gt;
</description><link>http://www.ejeliot.com/blog/61</link><pubDate>Wed, 16 Sep 2009 21:27:53 PDT</pubDate><guid isPermaLink="true">http://www.ejeliot.com/blog/61#1416</guid></item><item><title>Chhh on PHP Tip: Getting the property count for an object</title><description>&lt;p&gt;if your object has a nested structure such a simple conversion won't help you to count ALL the properties recursively, but you can use this small recursive function&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/**
* Recursively converts stdObject to an associative array
*/
function __object2array($object) {
   if (is_object($object) || is_array($object)) {
	   foreach ($object as $key =&gt; $value) {
		   $array[$key] = $this-&gt;__object2array($value);
	   }
   } else {
	$array = $object;
   }
   return $array;
}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and then use 
count(__object2array($yourObj), 1)
to recursively count the properties with a standard fucntion.&lt;/p&gt;
</description><link>http://www.ejeliot.com/blog/86</link><pubDate>Thu, 10 Sep 2009 07:49:48 PDT</pubDate><guid isPermaLink="true">http://www.ejeliot.com/blog/86#1411</guid></item><item><title>Martin Adamko on Equal Height Columns using CSS</title><description>&lt;p&gt;Last try: 
(sorry for the mess)&lt;/p&gt;
&lt;p&gt;Hi, every one. Appreciate your posts. I have simple jQuery solution. I�guess jQuery is cross browser compatible, so it should work in most cases (even on iPhone... ?). And when it does not work... it still looks like before, so only pros.
KEYWORDS: floated divs, same height, jquery, stretch 100%
After tuning my layout with only CSS I�was so desperate, when I�realied that my column won't stretch. So I�looked all around the web. This article's hack is cool, but way too complicated for me to keep in mind. I�found out, that any DIV element can stretch to 100% height if parent element is set fixed height like:
&amp;lt;div class=&amp;quot;row&amp;quot; style=&amp;quot;width: 150px; height:100px; background-color:#369; padding: 10px;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;float: left; width: 50px; height: 100%; background-color:#C60;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt; All working great. Let's remove height atribure from &amp;quot;row&amp;quot;. The row DIV simply disappears except the padding:
&amp;lt;div class=&amp;quot;row&amp;quot; style=&amp;quot;width: 150px; background-color:#369; padding: 10px;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;float: left; width: 50px; height: 100%; background-color:#C60;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;
We bring it back adding a�clearing element:
&amp;lt;div class=&amp;quot;row&amp;quot; style=&amp;quot;width: 150px; background-color:#369; padding: 10px;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;float: left; width: 50px; height: 100%; background-color:#C60;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&amp;lt;br style=&amp;quot;clear: both;&amp;quot; /&amp;gt; &amp;lt;!-- the clearing element --&amp;gt;&amp;lt;/div&amp;gt;
Next, add next column wich is certainly heigher using line breaks or whatever content: &amp;lt;div class=&amp;quot;row&amp;quot; style=&amp;quot;width: 150px; background-color:#369; padding: 10px;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;float: left; width: 50px; height: 100%; background-color:#C60;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;float: left; width: 50px; height: 100%; background-color: #6C3;&amp;quot;&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;br style=&amp;quot;clear: both;&amp;quot; /&amp;gt; &amp;lt;!-- the clearing element --&amp;gt;&amp;lt;/div&amp;gt;
The row now has two columns. First small, second larger. We make it same size by setting their parent's height after the content is loaded using jQuery. Remember, that they stil have height: 100% set. Put this script in the header:
&amp;lt;script src=&amp;quot;http://code.jquery.com/jquery-latest.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;script&amp;gt; $(document).ready(function(){ $(&amp;quot;.row&amp;quot;).each(function () { $(this).height($(this).height()); }); });&amp;lt;/script&amp;gt;
What this script does is, that it gets elements with .row class set, and applies height of itself to itself.
RECAP: Container has no idea how high it is. We need to tell it, what height it is. If we know, what size we want it to get, simply put CSS declaration &amp;quot;height: {desired_height}units;&amp;quot;. If we don't know yet, or we want it to be organic, we use script to find the height of container, and tell it to have &amp;quot;it's own height&amp;quot;.
The whole HTML would look like this:
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;&amp;lt;head&amp;gt;&amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=UTF-8&amp;quot; /&amp;gt;&amp;lt;script src=&amp;quot;http://code.jquery.com/jquery-latest.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;script&amp;gt; $(document).ready(function(){ $(&amp;quot;.row&amp;quot;).each(function () { $(this).height($(this).height()); }); });&amp;lt;/script&amp;gt;&amp;lt;title&amp;gt;Untitled Document&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;&amp;lt;div class=&amp;quot;row&amp;quot; style=&amp;quot;width: 150px; background-color:#369; padding: 10px;&amp;quot;&amp;gt;&amp;lt;div class=&amp;quot;column&amp;quot; style=&amp;quot;float: left; width: 50px; height: 100%; background-color:#C60;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&amp;lt;div class=&amp;quot;column&amp;quot; style=&amp;quot;float: left; width: 50px; height: 100%; background-color: #6C3;&amp;quot;&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div class=&amp;quot;column&amp;quot; style=&amp;quot;float: left; width: 50px; background-color:#C60;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&amp;lt;br style=&amp;quot;clear: both;&amp;quot; /&amp;gt; &amp;lt;!-- the clearing element --&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;
Note that last column has no height: 100%; set, so it remains unchanged.
Hope I�helped.&lt;/p&gt;
</description><link>http://www.ejeliot.com/blog/61</link><pubDate>Thu, 10 Sep 2009 07:22:28 PDT</pubDate><guid isPermaLink="true">http://www.ejeliot.com/blog/61#1410</guid></item><item><title>Martin Adamko on Equal Height Columns using CSS</title><description>&lt;p&gt;Guess the code got cut out. Trying the BBCode otherwise... sorry:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(document).ready(function(){
  $(".row").each(function () {
    $(this).height($(this).height());
  });
});

Untitled Document




  
    &amp;nbsp;
  
  
    
	
	
  
  
    &amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
</description><link>http://www.ejeliot.com/blog/61</link><pubDate>Thu, 10 Sep 2009 07:15:29 PDT</pubDate><guid isPermaLink="true">http://www.ejeliot.com/blog/61#1409</guid></item><item><title>Martin Adamko on Equal Height Columns using CSS</title><description>&lt;p&gt;Hi, every one.
Appreciate your posts. I have simple jQuery solution. I�guess jQuery is cross browser compatible, so it should work in most cases (even on iPhone... ?). And when it does not work... it still looks like before, so only pros.&lt;/p&gt;
&lt;p&gt;KEYWORDS: floated divs, same height, jquery, stretch 100%&lt;/p&gt;
&lt;p&gt;After tuning my layout with only CSS I�was so desperate, when I�realied that my column won't stretch. So I�looked all around the web. This article's hack is cool, but way too complicated for me to keep in mind. I�found out, that any DIV element can stretch to 100% height if parent element is set fixed height like:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;All working great. Let's remove height atribure from "row". The row DIV simply disappears except the padding:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We bring it back adding a�clearing element:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Next, add next column wich is certainly heigher using line breaks or whatever content:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The row now has two columns. First small, second larger. We make it same size by setting their parent's height after the content is loaded using jQuery. Remember, that they stil have height: 100% set. Put this script in the header:&lt;/p&gt;
&lt;p&gt;$(document).ready(function(){
  $(".row").each(function () {
    $(this).height($(this).height());
  });
});&lt;/p&gt;
&lt;p&gt;What this script does is, that it gets elements with .row class set, and applies height of itself to itself.&lt;/p&gt;
&lt;p&gt;RECAP: Container has no idea how high it is. We need to tell it, what height it is. If we know, what size we want it to get, simply put CSS declaration "height: {desired_height}units;". If we don't know yet, or we want it to be organic, we use script to find the height of container, and tell it to have "it's own height".&lt;/p&gt;
&lt;p&gt;The whole HTML would look like this:&lt;/p&gt;
&lt;p&gt;$(document).ready(function(){
  $(".row").each(function () {
    $(this).height($(this).height());
  });
});&lt;/p&gt;
&lt;p&gt;Untitled Document&lt;/p&gt;
&lt;p&gt;&amp;nbsp;
  
  
    
	
	
  
  
    &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note that last column has no height: 100%; set, so it remains unchanged.&lt;/p&gt;
&lt;p&gt;Hope I�helped.&lt;/p&gt;
</description><link>http://www.ejeliot.com/blog/61</link><pubDate>Thu, 10 Sep 2009 07:07:19 PDT</pubDate><guid isPermaLink="true">http://www.ejeliot.com/blog/61#1408</guid></item><item><title>chicken on Dynamic Picture Captions with JavaScript</title><description>&lt;p&gt;Great post, learning about js can save us so much time, thanks a lot. Time is passing, but many articles like this one stay up to date by themselves!&lt;/p&gt;
</description><link>http://www.ejeliot.com/blog/64</link><pubDate>Thu, 10 Sep 2009 06:01:41 PDT</pubDate><guid isPermaLink="true">http://www.ejeliot.com/blog/64#1407</guid></item><item><title>Mamsaac on How well do you know your preferred scripting language?</title><description>&lt;p&gt;Here to brag and say I knew them all ;)&lt;/p&gt;
&lt;p&gt;I have some experience using Python with Django, and I think that it has been very productive for me, as a programmer and designer =) You won't regret learning other languages and frameworks, they open your mind in some very special ways.&lt;/p&gt;
&lt;p&gt;I program PHP, mostly, but also use Python, Java, a bit of C and C++, and of course JavaScript... PHP could improve some things and learn from other languages, but also the communities learn from all the good practices, which are very often avoided by the PHP programmers. It's the bad thing that it got so exposed to amateurs... you find some ugly code some times =)&lt;/p&gt;
</description><link>http://www.ejeliot.com/blog/82</link><pubDate>Sat, 29 Aug 2009 20:58:45 PDT</pubDate><guid isPermaLink="true">http://www.ejeliot.com/blog/82#1405</guid></item></channel></rss>
