Re: Splitting 'display'

On May 3, 2010, at 9:56 AM, Tab Atkins Jr. wrote:

> Your statement that the display:inline vs. inline-block describes
> placement wrt inline siblings of the box" seems incorrect.  Inlines
> and inline-blocks act the same wrt their siblings (that is, they have
> the same display-outside value, 'inline').  The difference is that an
> inline has display-inside:inline, which means that any initial or
> final linebox children get merged into the lineboxes of its parent,
> while an inline-block has display-inside:block, which doesn't do that.

With 'display:inline-block', you also can have margin on the outside, which you don't get with 'display:inline'.

Received on Monday, 3 May 2010 17:07:28 UTC