W3C home > Mailing lists > Public > www-style@w3.org > May 2010

Re: Splitting 'display'

From: Brad Kemper <brad.kemper@gmail.com>
Date: Mon, 3 May 2010 10:06:35 -0700
Cc: Peter Moulder <Peter.Moulder@infotech.monash.edu.au>, www-style list <www-style@w3.org>
Message-Id: <080156F6-332A-43C3-9564-1E6251E35E78@gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>

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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:45 UTC