<?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: CSS display: inline-block: why it rocks, and why it sucks</title>
	<atom:link href="http://robertnyman.com/2010/02/24/css-display-inline-block-why-it-rocks-and-why-it-sucks/feed/" rel="self" type="application/rss+xml" />
	<link>http://robertnyman.com/2010/02/24/css-display-inline-block-why-it-rocks-and-why-it-sucks/</link>
	<description>Web development and Internet trends</description>
	<lastBuildDate>Wed, 08 Sep 2010 21:31:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: mehrere Block-Elemente zentriert darstellen - Flashforum</title>
		<link>http://robertnyman.com/2010/02/24/css-display-inline-block-why-it-rocks-and-why-it-sucks/#comment-657844</link>
		<dc:creator>mehrere Block-Elemente zentriert darstellen - Flashforum</dc:creator>
		<pubDate>Wed, 01 Sep 2010 20:18:21 +0000</pubDate>
		<guid isPermaLink="false">http://robertnyman.com/?p=1687#comment-657844</guid>
		<description>[...]  [...]</description>
		<content:encoded><![CDATA[<p>[...]  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: My bookmarks for 07/25/2010 &#124; SiliconChaos</title>
		<link>http://robertnyman.com/2010/02/24/css-display-inline-block-why-it-rocks-and-why-it-sucks/#comment-649891</link>
		<dc:creator>My bookmarks for 07/25/2010 &#124; SiliconChaos</dc:creator>
		<pubDate>Sun, 25 Jul 2010 11:33:14 +0000</pubDate>
		<guid isPermaLink="false">http://robertnyman.com/?p=1687#comment-649891</guid>
		<description>[...] » CSS display: inline-block: why it rocks, and why it sucksRobert&#8217;s talk &#8211; Web developm... [...]</description>
		<content:encoded><![CDATA[<p>[...] » CSS display: inline-block: why it rocks, and why it sucksRobert&#8217;s talk &#8211; Web developm&#8230; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matbaa</title>
		<link>http://robertnyman.com/2010/02/24/css-display-inline-block-why-it-rocks-and-why-it-sucks/#comment-646597</link>
		<dc:creator>Matbaa</dc:creator>
		<pubDate>Fri, 09 Jul 2010 13:23:02 +0000</pubDate>
		<guid isPermaLink="false">http://robertnyman.com/?p=1687#comment-646597</guid>
		<description>Thank you. 

	/* For IE 7 */
	zoom: 1;
	*display: inline; was important for me.</description>
		<content:encoded><![CDATA[<p>Thank you. </p>
<p>	/* For IE 7 */<br />
	zoom: 1;<br />
	*display: inline; was important for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Nyman</title>
		<link>http://robertnyman.com/2010/02/24/css-display-inline-block-why-it-rocks-and-why-it-sucks/#comment-639751</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Tue, 01 Jun 2010 22:08:08 +0000</pubDate>
		<guid isPermaLink="false">http://robertnyman.com/?p=1687#comment-639751</guid>
		<description>Roger,

Glad you liked it!</description>
		<content:encoded><![CDATA[<p>Roger,</p>
<p>Glad you liked it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ningbo Hotels</title>
		<link>http://robertnyman.com/2010/02/24/css-display-inline-block-why-it-rocks-and-why-it-sucks/#comment-639704</link>
		<dc:creator>Ningbo Hotels</dc:creator>
		<pubDate>Tue, 01 Jun 2010 15:59:10 +0000</pubDate>
		<guid isPermaLink="false">http://robertnyman.com/?p=1687#comment-639704</guid>
		<description>Hi Robert!

Thank you for this interesting article!
For my personal usage, &quot;display: inline&quot; rocks :-)

I use it to get perfect images gallery and I align for example 3 thumbnails horizontally on a line with equal space on the left and right of my pics.

My CSS code is very simple as I use a &quot;float:left;&quot; with &quot;width:33%;&quot; and an img class including &quot;display: inline&quot;.
I used to have display:block and my thumbnails were not perfectly centered. When I switched to inline, they just moved to a perfect equally aligned position.

So for me, yes this is a magic value :-)

Cheers!
Roger</description>
		<content:encoded><![CDATA[<p>Hi Robert!</p>
<p>Thank you for this interesting article!<br />
For my personal usage, &#8220;display: inline&#8221; rocks <img src='http://robertnyman.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>I use it to get perfect images gallery and I align for example 3 thumbnails horizontally on a line with equal space on the left and right of my pics.</p>
<p>My CSS code is very simple as I use a &#8220;float:left;&#8221; with &#8220;width:33%;&#8221; and an img class including &#8220;display: inline&#8221;.<br />
I used to have display:block and my thumbnails were not perfectly centered. When I switched to inline, they just moved to a perfect equally aligned position.</p>
<p>So for me, yes this is a magic value <img src='http://robertnyman.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Cheers!<br />
Roger</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: What is Inline-Block? &#124; Impressive Webs Toronto</title>
		<link>http://robertnyman.com/2010/02/24/css-display-inline-block-why-it-rocks-and-why-it-sucks/#comment-634291</link>
		<dc:creator>What is Inline-Block? &#124; Impressive Webs Toronto</dc:creator>
		<pubDate>Mon, 26 Apr 2010 20:03:35 +0000</pubDate>
		<guid isPermaLink="false">http://robertnyman.com/?p=1687#comment-634291</guid>
		<description>[...] According to Robert Nyman: Basically, it&#8217;s a way to make elements inline, but preserving their block capabilities such as setting width and height, top and bottom margins and paddings etc. [...]</description>
		<content:encoded><![CDATA[<p>[...] According to Robert Nyman: Basically, it&#8217;s a way to make elements inline, but preserving their block capabilities such as setting width and height, top and bottom margins and paddings etc. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: display:inline-block; ??? &#124; css &#124; understandard.net</title>
		<link>http://robertnyman.com/2010/02/24/css-display-inline-block-why-it-rocks-and-why-it-sucks/#comment-628618</link>
		<dc:creator>display:inline-block; ??? &#124; css &#124; understandard.net</dc:creator>
		<pubDate>Tue, 23 Mar 2010 08:21:39 +0000</pubDate>
		<guid isPermaLink="false">http://robertnyman.com/?p=1687#comment-628618</guid>
		<description>[...] ???????float:left; ????display:inline-block; ????????? ?????CSS display: inline-block: why it rocks, and why it sucks [...]</description>
		<content:encoded><![CDATA[<p>[...] ???????float:left; ????display:inline-block; ????????? ?????CSS display: inline-block: why it rocks, and why it sucks [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Nyman</title>
		<link>http://robertnyman.com/2010/02/24/css-display-inline-block-why-it-rocks-and-why-it-sucks/#comment-625971</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Mon, 08 Mar 2010 09:01:57 +0000</pubDate>
		<guid isPermaLink="false">http://robertnyman.com/?p=1687#comment-625971</guid>
		<description>tOM,

Well, there are a number of downsides to that to, in terms of semantic value and representation, certain lack of width control etc.</description>
		<content:encoded><![CDATA[<p>tOM,</p>
<p>Well, there are a number of downsides to that to, in terms of semantic value and representation, certain lack of width control etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tOM Trottier</title>
		<link>http://robertnyman.com/2010/02/24/css-display-inline-block-why-it-rocks-and-why-it-sucks/#comment-625754</link>
		<dc:creator>tOM Trottier</dc:creator>
		<pubDate>Sun, 07 Mar 2010 02:44:13 +0000</pubDate>
		<guid isPermaLink="false">http://robertnyman.com/?p=1687#comment-625754</guid>
		<description>(actually meant &lt;td&gt;)</description>
		<content:encoded><![CDATA[<p>(actually meant &lt;td&gt;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tOM Trottier</title>
		<link>http://robertnyman.com/2010/02/24/css-display-inline-block-why-it-rocks-and-why-it-sucks/#comment-625750</link>
		<dc:creator>tOM Trottier</dc:creator>
		<pubDate>Sun, 07 Mar 2010 02:42:31 +0000</pubDate>
		<guid isPermaLink="false">http://robertnyman.com/?p=1687#comment-625750</guid>
		<description>Tables! Let  do all the work!

tOM</description>
		<content:encoded><![CDATA[<p>Tables! Let  do all the work!</p>
<p>tOM</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Nyman</title>
		<link>http://robertnyman.com/2010/02/24/css-display-inline-block-why-it-rocks-and-why-it-sucks/#comment-625489</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Fri, 05 Mar 2010 08:32:32 +0000</pubDate>
		<guid isPermaLink="false">http://robertnyman.com/?p=1687#comment-625489</guid>
		<description>Christophe,

Using &lt;code&gt;overflow: hidden&lt;/code&gt; to make a parent element contain all its floated children elements is a great approach, but it won&#039;t be sufficient when the floated children span across multiple rows and and when the items aren&#039;t of equal height.</description>
		<content:encoded><![CDATA[<p>Christophe,</p>
<p>Using <code>overflow: hidden</code> to make a parent element contain all its floated children elements is a great approach, but it won&#8217;t be sufficient when the floated children span across multiple rows and and when the items aren&#8217;t of equal height.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christophe</title>
		<link>http://robertnyman.com/2010/02/24/css-display-inline-block-why-it-rocks-and-why-it-sucks/#comment-625381</link>
		<dc:creator>Christophe</dc:creator>
		<pubDate>Thu, 04 Mar 2010 18:25:42 +0000</pubDate>
		<guid isPermaLink="false">http://robertnyman.com/?p=1687#comment-625381</guid>
		<description>Hi there,
i&#039;m not exactly sure (I&#039;m french) to understand, but problems I often encountered with float, came from &quot;clear&quot; property from the parent element.
To solve it, I use &quot;overflow:hidden&quot; property on parent element, for exemple :
&lt;code&gt;
	ul#display-inline-block-example,
	ul#display-inline-block-example li {
		/* Setting a common base */
		margin: 0;
		padding: 0;
	}

	ul#display-inline-block-example {
		display: block;
                position:relative;
                overflow:hidden;
               width:100%;/*for exemple*/
	}

	ul#display-inline-block-example li {
float:left;
		width: 100px;
		min-height: 100px;
		background: #ccc;
	}
&lt;/code&gt;
What do you think about this tip ?</description>
		<content:encoded><![CDATA[<p>Hi there,<br />
i&#8217;m not exactly sure (I&#8217;m french) to understand, but problems I often encountered with float, came from &#8220;clear&#8221; property from the parent element.<br />
To solve it, I use &#8220;overflow:hidden&#8221; property on parent element, for exemple :<br />
<code><br />
	ul#display-inline-block-example,<br />
	ul#display-inline-block-example li {<br />
		/* Setting a common base */<br />
		margin: 0;<br />
		padding: 0;<br />
	}</p>
<p>	ul#display-inline-block-example {<br />
		display: block;<br />
                position:relative;<br />
                overflow:hidden;<br />
               width:100%;/*for exemple*/<br />
	}</p>
<p>	ul#display-inline-block-example li {<br />
float:left;<br />
		width: 100px;<br />
		min-height: 100px;<br />
		background: #ccc;<br />
	}<br />
</code><br />
What do you think about this tip ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Nyman</title>
		<link>http://robertnyman.com/2010/02/24/css-display-inline-block-why-it-rocks-and-why-it-sucks/#comment-625142</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Wed, 03 Mar 2010 08:44:13 +0000</pubDate>
		<guid isPermaLink="false">http://robertnyman.com/?p=1687#comment-625142</guid>
		<description>Anders,

Yep, the gap is the only actual issue with it. I believe it comes from a long, troublesome heritage of respecting white-space between inline elements, which is, if you ask me, a terrible thing.</description>
		<content:encoded><![CDATA[<p>Anders,</p>
<p>Yep, the gap is the only actual issue with it. I believe it comes from a long, troublesome heritage of respecting white-space between inline elements, which is, if you ask me, a terrible thing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anders</title>
		<link>http://robertnyman.com/2010/02/24/css-display-inline-block-why-it-rocks-and-why-it-sucks/#comment-625053</link>
		<dc:creator>Anders</dc:creator>
		<pubDate>Tue, 02 Mar 2010 20:34:42 +0000</pubDate>
		<guid isPermaLink="false">http://robertnyman.com/?p=1687#comment-625053</guid>
		<description>inline-block is the shizzle! In my opinion floats were never meant to be used as a complex layout mechanism, but rather for having text wrap around images and stuff like that.

One huge advantage is that it removes all the hassle of clearing. On the downside though is the gap issue that you mentioned. Is there any logical reason as to why it should behave that way?</description>
		<content:encoded><![CDATA[<p>inline-block is the shizzle! In my opinion floats were never meant to be used as a complex layout mechanism, but rather for having text wrap around images and stuff like that.</p>
<p>One huge advantage is that it removes all the hassle of clearing. On the downside though is the gap issue that you mentioned. Is there any logical reason as to why it should behave that way?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CSS Brigit &#124; CSS display: inline-block: why it rocks, and why it sucks</title>
		<link>http://robertnyman.com/2010/02/24/css-display-inline-block-why-it-rocks-and-why-it-sucks/#comment-624993</link>
		<dc:creator>CSS Brigit &#124; CSS display: inline-block: why it rocks, and why it sucks</dc:creator>
		<pubDate>Tue, 02 Mar 2010 13:31:02 +0000</pubDate>
		<guid isPermaLink="false">http://robertnyman.com/?p=1687#comment-624993</guid>
		<description>&lt;strong&gt;CSS display: inline-block: why it rocks, and why it sucks...&lt;/strong&gt;

Usually when you want a horizontal list, you need to use float in the CSS code to make it work, with all its drawbacks. However, there is an alternative with display: inline-block....</description>
		<content:encoded><![CDATA[<p><strong>CSS display: inline-block: why it rocks, and why it sucks&#8230;</strong></p>
<p>Usually when you want a horizontal list, you need to use float in the CSS code to make it work, with all its drawbacks. However, there is an alternative with display: inline-block&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Nyman</title>
		<link>http://robertnyman.com/2010/02/24/css-display-inline-block-why-it-rocks-and-why-it-sucks/#comment-624871</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Mon, 01 Mar 2010 16:18:13 +0000</pubDate>
		<guid isPermaLink="false">http://robertnyman.com/?p=1687#comment-624871</guid>
		<description>dougwig,

Absolutely, good point!</description>
		<content:encoded><![CDATA[<p>dougwig,</p>
<p>Absolutely, good point!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dougwig</title>
		<link>http://robertnyman.com/2010/02/24/css-display-inline-block-why-it-rocks-and-why-it-sucks/#comment-624870</link>
		<dc:creator>dougwig</dc:creator>
		<pubDate>Mon, 01 Mar 2010 16:15:24 +0000</pubDate>
		<guid isPermaLink="false">http://robertnyman.com/?p=1687#comment-624870</guid>
		<description>Display:inline-block is also handy when you want to align traditionally block-level content ( say a list or a small form ) within a line-box ( The block level parent ).  Remember vertical-align:middle or text-align:center ? This all works with elements that are display:inline-block.  Rarely needed, but nice to have when you need it.</description>
		<content:encoded><![CDATA[<p>Display:inline-block is also handy when you want to align traditionally block-level content ( say a list or a small form ) within a line-box ( The block level parent ).  Remember vertical-align:middle or text-align:center ? This all works with elements that are display:inline-block.  Rarely needed, but nice to have when you need it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Nyman</title>
		<link>http://robertnyman.com/2010/02/24/css-display-inline-block-why-it-rocks-and-why-it-sucks/#comment-624862</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Mon, 01 Mar 2010 14:47:28 +0000</pubDate>
		<guid isPermaLink="false">http://robertnyman.com/?p=1687#comment-624862</guid>
		<description>Jordan,

Thank you!</description>
		<content:encoded><![CDATA[<p>Jordan,</p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jordan Walker</title>
		<link>http://robertnyman.com/2010/02/24/css-display-inline-block-why-it-rocks-and-why-it-sucks/#comment-624860</link>
		<dc:creator>Jordan Walker</dc:creator>
		<pubDate>Mon, 01 Mar 2010 14:44:13 +0000</pubDate>
		<guid isPermaLink="false">http://robertnyman.com/?p=1687#comment-624860</guid>
		<description>This is a great article about css inlin display, very helpful and informative.</description>
		<content:encoded><![CDATA[<p>This is a great article about css inlin display, very helpful and informative.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Nyman</title>
		<link>http://robertnyman.com/2010/02/24/css-display-inline-block-why-it-rocks-and-why-it-sucks/#comment-624838</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Mon, 01 Mar 2010 10:35:06 +0000</pubDate>
		<guid isPermaLink="false">http://robertnyman.com/?p=1687#comment-624838</guid>
		<description>Jan,

It&#039;s an interesting thought, but apparently it can&#039;t be used to remove white-sapce.

Jon_E,

Yes, since this is a private web site, there&#039;s no time or need, from my point of view, to adapt a design to a web browser used by less than 0.01% of my visitors.

Sarven,

It&#039;s interesting, but only in web browsers that support the &lt;code&gt;:before&lt;/code&gt; pseudo protocol.

Mathias,

Interesting! Seems a bit tricky, but might be a viable option. Thanks!</description>
		<content:encoded><![CDATA[<p>Jan,</p>
<p>It&#8217;s an interesting thought, but apparently it can&#8217;t be used to remove white-sapce.</p>
<p>Jon_E,</p>
<p>Yes, since this is a private web site, there&#8217;s no time or need, from my point of view, to adapt a design to a web browser used by less than 0.01% of my visitors.</p>
<p>Sarven,</p>
<p>It&#8217;s interesting, but only in web browsers that support the <code>:before</code> pseudo protocol.</p>
<p>Mathias,</p>
<p>Interesting! Seems a bit tricky, but might be a viable option. Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
