<?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"
	>
<channel>
	<title>Comments on: Align List Items Horizontally with CSS &#8230;</title>
	<atom:link href="http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/</link>
	<description></description>
	<pubDate>Fri, 04 Jul 2008 12:52:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: CSS improvements in Firefox 3 - Part&#160;One &#187; Broken Links</title>
		<link>http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-68617</link>
		<dc:creator>CSS improvements in Firefox 3 - Part&#160;One &#187; Broken Links</dc:creator>
		<pubDate>Sat, 09 Feb 2008 00:30:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-68617</guid>
		<description>[...] than trying to explain the benefits of this, here&#8217;s a real-world example: Align List Items Horizontally with CSS. inline-table behaves in a similar way, only with tables (obviously), making it slightly less [...]</description>
		<content:encoded><![CDATA[<p>[...] than trying to explain the benefits of this, here&#8217;s a real-world example: Align List Items Horizontally with CSS. inline-table behaves in a similar way, only with tables (obviously), making it slightly less [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cory Duncan</title>
		<link>http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-67666</link>
		<dc:creator>Cory Duncan</dc:creator>
		<pubDate>Thu, 31 Jan 2008 03:25:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-67666</guid>
		<description>This is seriously awesome work. &lt;strong&gt;Thank You.&lt;/strong&gt; Can’t wait until Firefox releases 3.0 with support for display:inline-block.</description>
		<content:encoded><![CDATA[<p>This is seriously awesome work. <strong>Thank You.</strong> Can’t wait until Firefox releases 3.0 with support for display:inline-block.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cory Duncna</title>
		<link>http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-67665</link>
		<dc:creator>Cory Duncna</dc:creator>
		<pubDate>Thu, 31 Jan 2008 03:24:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-67665</guid>
		<description>This is seriously awesome work. &lt;strong&gt;Thank You&lt;/strong&gt;. Can't wait until Firefox releases 3.0 with support for display:inline-block.</description>
		<content:encoded><![CDATA[<p>This is seriously awesome work. <strong>Thank You</strong>. Can&#8217;t wait until Firefox releases 3.0 with support for display:inline-block.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Collins</title>
		<link>http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-59491</link>
		<dc:creator>Paul Collins</dc:creator>
		<pubDate>Thu, 25 Oct 2007 11:52:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-59491</guid>
		<description>Hello,

I found the display:-moz-inline-box; -moz-box-orient:vertical; seems to make my images expand to the full width of the , so they become stretched. Is there any way around this?

Cheers</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I found the display:-moz-inline-box; -moz-box-orient:vertical; seems to make my images expand to the full width of the , so they become stretched. Is there any way around this?</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Stangeland</title>
		<link>http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-59104</link>
		<dc:creator>Andy Stangeland</dc:creator>
		<pubDate>Fri, 19 Oct 2007 13:46:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-59104</guid>
		<description>I had the same problem, but since it was an internal application I just changed to minimum requirements to IE7 and FF3 Minefield.

However I had the same problem with not allowing whitespace.  What I did was to shrink the text in the parent and reexpand on the child elements.

#parent { font-size: 1px; letter-spacing: -1px }
.child { font-size: medium; letter-spacing: normal; }

The problem is that IE7 ignores the spaces so the negative letter-spacing doesn't move anything any closer together in IE7.  But in FF3 it shrinks the space down to 1px and since there is a letter the letter spacing does move them closer and eliminate the gap.

The browser specific stylesheet that another commenter used for IE is also a good idea since conditional comments still validate.  But this is a pure CSS solution that I feel is extremely clean.</description>
		<content:encoded><![CDATA[<p>I had the same problem, but since it was an internal application I just changed to minimum requirements to IE7 and FF3 Minefield.</p>
<p>However I had the same problem with not allowing whitespace.  What I did was to shrink the text in the parent and reexpand on the child elements.</p>
<p>#parent { font-size: 1px; letter-spacing: -1px }<br />
.child { font-size: medium; letter-spacing: normal; }</p>
<p>The problem is that IE7 ignores the spaces so the negative letter-spacing doesn&#8217;t move anything any closer together in IE7.  But in FF3 it shrinks the space down to 1px and since there is a letter the letter spacing does move them closer and eliminate the gap.</p>
<p>The browser specific stylesheet that another commenter used for IE is also a good idea since conditional comments still validate.  But this is a pure CSS solution that I feel is extremely clean.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: j.verhine</title>
		<link>http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-57189</link>
		<dc:creator>j.verhine</dc:creator>
		<pubDate>Sun, 09 Sep 2007 22:16:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-57189</guid>
		<description>you've saved my day with this hack - thanks.</description>
		<content:encoded><![CDATA[<p>you&#8217;ve saved my day with this hack - thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: diyism</title>
		<link>http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-56464</link>
		<dc:creator>diyism</dc:creator>
		<pubDate>Wed, 22 Aug 2007 06:20:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-56464</guid>
		<description>For example:
&#60;span style=&#34;width:700px;border:blue 1px solid;&#34; id=&#34;jack&#34;&#62;
  &#60;span&#62;lkjkdjsf&#60;div&#62;jack&#60;/div&#62;&#60;/span&#62;
  &#60;span style=&#34;width:200px;height:18px;border:red 1px solid;&#34; id=&#34;ppp&#34;&#62;aSame appearance in ie and firefox&#60;/span&#62;
  bbbbb
  &#60;span style=&#34;width:200px;height:28px;border:red 1px solid;&#34;&#62;ie and firefox&#60;/span&#62;cccc&#60;br&#62;
  &#60;span style=&#34;width:150px;height:18px;border:red 1px solid;&#34;&#62;ie and firefox&#60;/span&#62;
&#60;/span&#62;</description>
		<content:encoded><![CDATA[<p>For example:<br />
&lt;span style=&quot;width:700px;border:blue 1px solid;&quot; id=&quot;jack&quot;&gt;<br />
  &lt;span&gt;lkjkdjsf&lt;div&gt;jack&lt;/div&gt;&lt;/span&gt;<br />
  &lt;span style=&quot;width:200px;height:18px;border:red 1px solid;&quot; id=&quot;ppp&quot;&gt;aSame appearance in ie and firefox&lt;/span&gt;<br />
  bbbbb<br />
  &lt;span style=&quot;width:200px;height:28px;border:red 1px solid;&quot;&gt;ie and firefox&lt;/span&gt;cccc&lt;br&gt;<br />
  &lt;span style=&quot;width:150px;height:18px;border:red 1px solid;&quot;&gt;ie and firefox&lt;/span&gt;<br />
&lt;/span&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: diyism</title>
		<link>http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-56463</link>
		<dc:creator>diyism</dc:creator>
		<pubDate>Wed, 22 Aug 2007 06:18:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-56463</guid>
		<description>{var b = document.createElement(&#34;span&#34;);
                   b.innerHTML  =  htmlspecialchars(a[i].nodeValue);
                   a[i].parentNode.replaceChild(b, a[i]);
                  }
              }
         }
     }
}</description>
		<content:encoded><![CDATA[<p>{var b = document.createElement(&quot;span&quot;);<br />
                   b.innerHTML  =  htmlspecialchars(a[i].nodeValue);<br />
                   a[i].parentNode.replaceChild(b, a[i]);<br />
                  }<br />
              }<br />
         }<br />
     }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: diyism</title>
		<link>http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-56452</link>
		<dc:creator>diyism</dc:creator>
		<pubDate>Wed, 22 Aug 2007 05:44:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-56452</guid>
		<description>if (all_span[j].getElementsByTagName('span').length&#62;0
                   &#38;&#38; all_span[j].childNodes.length-all_span[j].getElementsByTagName('span').length&#62;0
                  )
                  {var a=all_span[j].childNodes;
                   for (var i=0;i&#60;a.length;++i)
                       {if (a[i].nodeName=='#text' &#38;&#38; trim(a[i].nodeValue)!='')</description>
		<content:encoded><![CDATA[<p>if (all_span[j].getElementsByTagName(&#8217;span&#8217;).length&gt;0<br />
                   &amp;&amp; all_span[j].childNodes.length-all_span[j].getElementsByTagName(&#8217;span&#8217;).length&gt;0<br />
                  )<br />
                  {var a=all_span[j].childNodes;<br />
                   for (var i=0;i&lt;a.length;++i)<br />
                       {if (a[i].nodeName==&#8217;#text&#8217; &amp;&amp; trim(a[i].nodeValue)!=&#8221;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: diyism</title>
		<link>http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-56449</link>
		<dc:creator>diyism</dc:creator>
		<pubDate>Wed, 22 Aug 2007 05:42:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-56449</guid>
		<description>function ib_fix()
         {var all_span=document.getElementsByTagName('span');
          for (var j=0;j&#60;all_span.length;++j)
              {if (all_span[j].parentNode.tagName!='SPAN' &#38;&#38; all_span[j].getElementsByTagName('span').length==0
                   &#38;&#38; all_span[j].style.cssFloat!='left' &#38;&#38; all_span[j].style.styleFloat!='left'
                  )
                  {typeof(all_span[j].style.cssFloat)!='undefined' ? (all_span[j].style.cssFloat='none'):(all_span[j].style.styleFloat='none');
                  }</description>
		<content:encoded><![CDATA[<p>function ib_fix()<br />
         {var all_span=document.getElementsByTagName(&#8217;span&#8217;);<br />
          for (var j=0;j&lt;all_span.length;++j)<br />
              {if (all_span[j].parentNode.tagName!=&#8217;SPAN&#8217; &amp;&amp; all_span[j].getElementsByTagName(&#8217;span&#8217;).length==0<br />
                   &amp;&amp; all_span[j].style.cssFloat!=&#8217;left&#8217; &amp;&amp; all_span[j].style.styleFloat!=&#8217;left&#8217;<br />
                  )<br />
                  {typeof(all_span[j].style.cssFloat)!=&#8217;undefined&#8217; ? (all_span[j].style.cssFloat=&#8217;none&#8217;):(all_span[j].style.styleFloat=&#8217;none&#8217;);<br />
                  }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: diyism</title>
		<link>http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-56448</link>
		<dc:creator>diyism</dc:creator>
		<pubDate>Wed, 22 Aug 2007 05:41:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-56448</guid>
		<description>function ib_fix()
         {var all_span=document.getElementsByTagName('span');
          for (var j=0;j</description>
		<content:encoded><![CDATA[<p>function ib_fix()<br />
         {var all_span=document.getElementsByTagName(&#8217;span&#8217;);<br />
          for (var j=0;j</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: diyism</title>
		<link>http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-56446</link>
		<dc:creator>diyism</dc:creator>
		<pubDate>Wed, 22 Aug 2007 05:40:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-56446</guid>
		<description>function htmlspecialchars(str)
         {return str.replace(//g, "&#62;");
         }
function trim(str)
         {return str.replace(/(^[\r\n\t ]*&#124;[\r\n\t ]*$)/g, '');
         }</description>
		<content:encoded><![CDATA[<p>function htmlspecialchars(str)<br />
         {return str.replace(//g, &#8220;&gt;&#8221;);<br />
         }<br />
function trim(str)<br />
         {return str.replace(/(^[\r\n\t ]*|[\r\n\t ]*$)/g, &#8221;);<br />
         }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: diyism</title>
		<link>http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-56445</link>
		<dc:creator>diyism</dc:creator>
		<pubDate>Wed, 22 Aug 2007 05:39:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-56445</guid>
		<description>if(window.addEventListener)
  {window.addEventListener('load', ib_fix, false);
  }
else
    {window.attachEvent('onload', ib_fix);
    }</description>
		<content:encoded><![CDATA[<p>if(window.addEventListener)<br />
  {window.addEventListener(&#8217;load&#8217;, ib_fix, false);<br />
  }<br />
else<br />
    {window.attachEvent(&#8217;onload&#8217;, ib_fix);<br />
    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: diyism</title>
		<link>http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-56444</link>
		<dc:creator>diyism</dc:creator>
		<pubDate>Wed, 22 Aug 2007 05:38:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-56444</guid>
		<description>A javascript fixing with the second solution:</description>
		<content:encoded><![CDATA[<p>A javascript fixing with the second solution:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: diyism</title>
		<link>http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-56430</link>
		<dc:creator>diyism</dc:creator>
		<pubDate>Wed, 22 Aug 2007 05:04:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-56430</guid>
		<description>In fact, i'm always looking for an inline-block layout solution.
Although "inline-block" is supported is firfox 3 beta,
but with most people using firefox 2, 
what i can only do is to coin an alternative method.

First, this:
span{display:-moz-inline-box;display:inline-block;vertical-align:middle;overflow:visible;cursor:default;}

Recently, this:
span{float:left;vertical-align:middle;overflow:hidden;cursor:default;}br{clear:left;}</description>
		<content:encoded><![CDATA[<p>In fact, i&#8217;m always looking for an inline-block layout solution.<br />
Although &#8220;inline-block&#8221; is supported is firfox 3 beta,<br />
but with most people using firefox 2,<br />
what i can only do is to coin an alternative method.</p>
<p>First, this:<br />
span{display:-moz-inline-box;display:inline-block;vertical-align:middle;overflow:visible;cursor:default;}</p>
<p>Recently, this:<br />
span{float:left;vertical-align:middle;overflow:hidden;cursor:default;}br{clear:left;}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthias Willerich</title>
		<link>http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-56401</link>
		<dc:creator>Matthias Willerich</dc:creator>
		<pubDate>Tue, 21 Aug 2007 09:12:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-56401</guid>
		<description>I just had a look at your solution and at diyism's, and I couldn't control the width of things as well as overflowing content in his version, even when applied to child containers.

Other than that I'm really torn about using your solution. On one hand it does work for me (with more complex content, I have a div-wrapped image, an h3 and a p in the li), on the other hand I feel it lacks stability. I tested it in a more recent nightly build of Webkit and it worked, but will it work in Firefox 3?
I'm also not fond of the comments to prevent whitespace, but figured that all browsers I tested do display the whitespace in equal width, well, all except IE. As I have a tiny IE-only css anyway (using conditional comments), this does not pose a problem, and it loosens the restrictions a little. Finally, thanks for sharing your solution, it did help me a lot.</description>
		<content:encoded><![CDATA[<p>I just had a look at your solution and at diyism&#8217;s, and I couldn&#8217;t control the width of things as well as overflowing content in his version, even when applied to child containers.</p>
<p>Other than that I&#8217;m really torn about using your solution. On one hand it does work for me (with more complex content, I have a div-wrapped image, an h3 and a p in the li), on the other hand I feel it lacks stability. I tested it in a more recent nightly build of Webkit and it worked, but will it work in Firefox 3?<br />
I&#8217;m also not fond of the comments to prevent whitespace, but figured that all browsers I tested do display the whitespace in equal width, well, all except IE. As I have a tiny IE-only css anyway (using conditional comments), this does not pose a problem, and it loosens the restrictions a little. Finally, thanks for sharing your solution, it did help me a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: diyism</title>
		<link>http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-56133</link>
		<dc:creator>diyism</dc:creator>
		<pubDate>Tue, 14 Aug 2007 09:12:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-56133</guid>
		<description>Your solution is too complex, look at this:



span{display:-moz-inline-box;display:inline-block;vertical-align:middle;overflow:visible;cursor:default;}


aSame appearance in ie and firefox
ie and firefox
ie and firefox
</description>
		<content:encoded><![CDATA[<p>Your solution is too complex, look at this:</p>
<p>span{display:-moz-inline-box;display:inline-block;vertical-align:middle;overflow:visible;cursor:default;}</p>
<p>aSame appearance in ie and firefox<br />
ie and firefox<br />
ie and firefox</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Best of May/June 2007 at Design Resources</title>
		<link>http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-55428</link>
		<dc:creator>Best of May/June 2007 at Design Resources</dc:creator>
		<pubDate>Fri, 27 Jul 2007 12:16:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-55428</guid>
		<description>[...] Align List Items Horizontally with CSS If you ever wanted to display a list of items horizontally with a wrap around once the right margin of your page has been reached, you came across a float:left solution. And if you ever tried to line up items with different heights this way, you know how messy things can get. This article delivers an easy solution of this problem. [...]</description>
		<content:encoded><![CDATA[<p>[...] Align List Items Horizontally with CSS If you ever wanted to display a list of items horizontally with a wrap around once the right margin of your page has been reached, you came across a float:left solution. And if you ever tried to line up items with different heights this way, you know how messy things can get. This article delivers an easy solution of this problem. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for&#160;2007-07-25&#160;&#124;&#160;David&#8217;s kitchen</title>
		<link>http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-55337</link>
		<dc:creator>links for&#160;2007-07-25&#160;&#124;&#160;David&#8217;s kitchen</dc:creator>
		<pubDate>Wed, 25 Jul 2007 11:22:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-55337</guid>
		<description>[...] display: inline-block cross browser A nifty way of aligning list items horizontally (tags: css inline list align) [...]</description>
		<content:encoded><![CDATA[<p>[...] display: inline-block cross browser A nifty way of aligning list items horizontally (tags: css inline list align) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Best of May/June 2007 &#183; Style Grind</title>
		<link>http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-54773</link>
		<dc:creator>Best of May/June 2007 &#183; Style Grind</dc:creator>
		<pubDate>Thu, 12 Jul 2007 03:42:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.ruzee.com/blog/2007/05/align-list-items-horizontally-with-css/#comment-54773</guid>
		<description>[...] Align List Items Horizontally with CSS If you ever wanted to display a list of items horizontally with a wrap around once the right margin of your page has been reached, you came across a float:left solution. And if you ever tried to line up items with different heights this way, you know how messy things can get. This article delivers an easy solution of this problem. [...]</description>
		<content:encoded><![CDATA[<p>[...] Align List Items Horizontally with CSS If you ever wanted to display a list of items horizontally with a wrap around once the right margin of your page has been reached, you came across a float:left solution. And if you ever tried to line up items with different heights this way, you know how messy things can get. This article delivers an easy solution of this problem. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
