<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://php.apsique.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Php y otras yerbas - La mejor explicación para crear columnas de alto variable con CSS - Comentarios</title>
 <link>http://php.apsique.com/contenido/mejor_explicacion_crear_columnas_alto_variable_con_css</link>
 <description>Comentarios para &quot;La mejor explicación para crear columnas de alto variable con CSS&quot;</description>
 <language>es</language>
<item>
 <title>Gracias por el truco, me</title>
 <link>http://php.apsique.com/contenido/mejor_explicacion_crear_columnas_alto_variable_con_css#comment-115428</link>
 <description>&lt;p&gt;Gracias por el truco, me funciona perfecto en Mozilla, IE y Chrome (¿nadie usa Chrome?).&lt;br /&gt;
Para eliminar el espacio en blanco que queda abajo, disminuí a 0 pt el tamaño de letra del div vacío con que se cierra el contenedor.&lt;br /&gt;
Quedó entonces así:&lt;br /&gt;
&amp;lt;div style=&#039;clear:both; font-size:0pt&#039;&amp;gt;&amp;lt;/div&amp;gt;&lt;/p&gt;
</description>
 <pubDate>Tue, 09 Mar 2010 17:37:25 -0800</pubDate>
 <dc:creator>Feo</dc:creator>
 <guid isPermaLink="false">comment 115428 at http://php.apsique.com</guid>
</item>
<item>
 <title>La pregunta del millon, como</title>
 <link>http://php.apsique.com/contenido/mejor_explicacion_crear_columnas_alto_variable_con_css#comment-114820</link>
 <description>&lt;p&gt;La pregunta del millon, como hacer para que el alto de Col1 y Col2 sea igual pero sin definir una alto fijo, o sea, si crece una por tener mayor contenido, crezca la otra.&lt;/p&gt;
</description>
 <pubDate>Fri, 19 Feb 2010 04:13:06 -0800</pubDate>
 <dc:creator>Perejilillo desconocido</dc:creator>
 <guid isPermaLink="false">comment 114820 at http://php.apsique.com</guid>
</item>
<item>
 <title>¿En cuál, especificamente?</title>
 <link>http://php.apsique.com/contenido/mejor_explicacion_crear_columnas_alto_variable_con_css#comment-95163</link>
 <description>&lt;p&gt;¿En cuál, especificamente? Yo estoy en la 3.0.8 y lo veo bien.&lt;/p&gt;
</description>
 <pubDate>Fri, 17 Apr 2009 13:54:56 -0700</pubDate>
 <dc:creator>clbustos</dc:creator>
 <guid isPermaLink="false">comment 95163 at http://php.apsique.com</guid>
</item>
<item>
 <title>Lo siento pero en la última</title>
 <link>http://php.apsique.com/contenido/mejor_explicacion_crear_columnas_alto_variable_con_css#comment-95156</link>
 <description>&lt;p&gt;Lo siento pero en la última version de firefox no funciona :(&lt;/p&gt;
</description>
 <pubDate>Fri, 17 Apr 2009 11:39:51 -0700</pubDate>
 <dc:creator>ManuelEstevez</dc:creator>
 <guid isPermaLink="false">comment 95156 at http://php.apsique.com</guid>
</item>
<item>
 <title>después de la primera;</title>
 <link>http://php.apsique.com/contenido/mejor_explicacion_crear_columnas_alto_variable_con_css#comment-83370</link>
 <description>&lt;p&gt;después de la primera; viene las sentencias para los render de Geko(firefox, ...), porque son lo únicos que implementan &quot;:after&quot;&lt;br /&gt;
la siguiente y última son para el amigo IE; que yo la verdad no sé muy bien porque funciona con eso; porque si le cambias el orden deja de funcionar.&lt;br /&gt;
cosas de la programación esotérica para IE&lt;/p&gt;
</description>
 <pubDate>Tue, 29 Jul 2008 02:36:59 -0700</pubDate>
 <dc:creator>acido69</dc:creator>
 <guid isPermaLink="false">comment 83370 at http://php.apsique.com</guid>
</item>
<item>
 <title>Hola, 
Está muy bien pero</title>
 <link>http://php.apsique.com/contenido/mejor_explicacion_crear_columnas_alto_variable_con_css#comment-83360</link>
 <description>&lt;p&gt;Hola, &lt;/p&gt;
&lt;p&gt;Está muy bien pero si la columna de la derecha, por ejemplo, crece más que la de la izquierda, queda un feo hueco debajo de la columna de la izquierda, ¿sabrías como hacer para que las dos columnas sean igual de altas?&lt;/p&gt;
&lt;p&gt;Saludos.&lt;/p&gt;
</description>
 <pubDate>Mon, 28 Jul 2008 22:50:10 -0700</pubDate>
 <dc:creator>Perejilillo desconocido</dc:creator>
 <guid isPermaLink="false">comment 83360 at http://php.apsique.com</guid>
</item>
<item>
 <title>Muchas gracias!
Me queda la</title>
 <link>http://php.apsique.com/contenido/mejor_explicacion_crear_columnas_alto_variable_con_css#comment-83335</link>
 <description>&lt;p&gt;Muchas gracias!&lt;br /&gt;
Me queda la duda: ¿Por qué poner una nueva definición de .tr  tras la inicial?&lt;/p&gt;
</description>
 <pubDate>Mon, 28 Jul 2008 15:52:12 -0700</pubDate>
 <dc:creator>clbustos</dc:creator>
 <guid isPermaLink="false">comment 83335 at http://php.apsique.com</guid>
</item>
<item>
 <title>te recomiendo que al DIV</title>
 <link>http://php.apsique.com/contenido/mejor_explicacion_crear_columnas_alto_variable_con_css#comment-83334</link>
 <description>&lt;p&gt;te recomiendo que al DIV contenedor le pongas un nombre de clase: ejemplo &quot;tr&quot;&lt;br /&gt;
tu css:&lt;br /&gt;
.tr { display: inline-block; }&lt;br /&gt;
.tr:after, .container:after{&lt;br /&gt;
    content: &quot;.&quot;;&lt;br /&gt;
    display: block;&lt;br /&gt;
    height: 0;&lt;br /&gt;
    clear: both;&lt;br /&gt;
    visibility: hidden;&lt;br /&gt;
}&lt;br /&gt;
* html .tr { height: 1% }&lt;br /&gt;
.tr { display: block }&lt;/p&gt;
&lt;p&gt;Y listo; arreglado. Lo malo de usar &quot;clear:both&quot; es que te deja un espacio por debajo.&lt;br /&gt;
más info: &lt;a href=&#039;http://code.google.com/p/fcss/source/browse/trunk/?r=2&#039;&gt;http://code.google.com/p/fcss/source/browse/trunk/?r=2&lt;/a&gt;&lt;/p&gt;
</description>
 <pubDate>Mon, 28 Jul 2008 15:37:00 -0700</pubDate>
 <dc:creator>acido69</dc:creator>
 <guid isPermaLink="false">comment 83334 at http://php.apsique.com</guid>
</item>
<item>
 <title>La mejor explicación para crear columnas de alto variable con CSS</title>
 <link>http://php.apsique.com/contenido/mejor_explicacion_crear_columnas_alto_variable_con_css</link>
 <description>&lt;p&gt;Uno de los grandes misterios de la humanidad es como crear una estructura de dos o más columnas de alto variable, usando sólo CSS. En más de una ocasión he tenido que reinventar la rueda, pero gracias a &lt;a href=&#039;http://www.barelyfitz.com&#039;&gt;BarelyFitz Design&lt;/a&gt; y su artículo &lt;a href=&#039;http://www.barelyfitz.com/screencast/html-training/css/positioning/&#039;&gt;Learn CSS Positioning in Ten Steps&#039;&lt;/a&gt;, ¡he visto la luz!&lt;/p&gt;

&lt;p&gt;La idea, muy sencilla, es la siguiente&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Utilizar un div contenedor con position:relative&lt;/li&gt;
&lt;li&gt;Cada columna se define con un ancho definido (que puede ser un porcentaje, para que sea fluido) y con float:left&lt;/li&gt;
&lt;li&gt;Como último elemento  dentro del div contenedor, creamos un div con clear:both&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Eso sería todo! Veamos como se ve :)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Código fuente:&lt;/strong&gt;&lt;/p&gt;
&lt;div class=&#039;code&#039;&gt;&lt;div class=&quot;hl-main&quot;&gt;&lt;ol class=&quot;hl-main&quot;&gt;&lt;li&gt;&amp;nbsp;&lt;span class=&quot;hl-brackets&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;hl-reserved&quot;&gt;div&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-var&quot;&gt;style&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;=&#039;&lt;/span&gt;&lt;span class=&quot;hl-var&quot;&gt;position:relative&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;hl-var&quot;&gt;width:50&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;%;&lt;/span&gt;&lt;span class=&quot;hl-var&quot;&gt;background:purple&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;hl-var&quot;&gt;color:white&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;Este es el contenedor&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;hl-reserved&quot;&gt;div&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-var&quot;&gt;style&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;=&#039;&lt;/span&gt;&lt;span class=&quot;hl-var&quot;&gt;width:20&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;%;&lt;/span&gt;&lt;span class=&quot;hl-var&quot;&gt;float:left&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;hl-var&quot;&gt;background:&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;#&lt;/span&gt;&lt;span class=&quot;hl-var&quot;&gt;bbb&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;;&#039;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;Col 1&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;hl-reserved&quot;&gt;br&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-brackets&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;Col 1&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;hl-reserved&quot;&gt;br&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-brackets&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;Col 1&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;hl-reserved&quot;&gt;div&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;hl-reserved&quot;&gt;div&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-var&quot;&gt;style&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;=&#039;&lt;/span&gt;&lt;span class=&quot;hl-var&quot;&gt;width:20&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;%;&lt;/span&gt;&lt;span class=&quot;hl-var&quot;&gt;float:left&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;hl-var&quot;&gt;background:&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;#&lt;/span&gt;&lt;span class=&quot;hl-var&quot;&gt;ccc&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;;&#039;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;Col 2&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;hl-reserved&quot;&gt;div&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;hl-reserved&quot;&gt;div&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hl-var&quot;&gt;style&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;=&#039;&lt;/span&gt;&lt;span class=&quot;hl-var&quot;&gt;clear:both&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;hl-var&quot;&gt;background:&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;#&lt;/span&gt;&lt;span class=&quot;hl-var&quot;&gt;333&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;hl-var&quot;&gt;color:white&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;Pie&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;hl-reserved&quot;&gt;div&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;hl-code&quot;&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;hl-reserved&quot;&gt;div&lt;/span&gt;&lt;span class=&quot;hl-brackets&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Demo:&lt;/strong&gt;&lt;/p&gt;
&lt;div style=&#039;position:relative;width:50%;background:purple;color:white&#039;&gt;
Este es el contenedor
&lt;div style=&#039;width:20%;float:left;background:#bbb;&#039;&gt;Col 1&lt;br /&gt;Col 1&lt;br /&gt;Col 1&lt;/div&gt;
&lt;div style=&#039;width:20%;float:left;background:#ccc;&#039;&gt;Col 2&lt;/div&gt;
&lt;div style=&#039;clear:both;background:#333;color:white&#039;&gt;Pie&lt;/div&gt;
&lt;/div&gt;

&lt;!--break--&gt;</description>
 <comments>http://php.apsique.com/contenido/mejor_explicacion_crear_columnas_alto_variable_con_css#comments</comments>
 <category domain="http://php.apsique.com/lenguajes/css">CSS</category>
 <category domain="http://php.apsique.com/categoria/temas_generales/gran_red">La gran Red</category>
 <category domain="http://php.apsique.com/categoria/temas_generales/programacion">Programación</category>
 <category domain="http://php.apsique.com/categoria/busquedas_comunes/columnas">columnas</category>
 <category domain="http://php.apsique.com/categoria/busquedas_comunes/html">html</category>
 <pubDate>Mon, 28 Jul 2008 09:45:33 -0700</pubDate>
 <dc:creator>clbustos</dc:creator>
 <guid isPermaLink="false">1495 at http://php.apsique.com</guid>
</item>
</channel>
</rss>
