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

Re: inline vs inline-block

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 3 May 2013 07:43:16 -0700
Message-ID: <CAAWBYDALjGujG-G75vaoROBGdds6ncd=P2zFrNGh8-=8O4aQ+g@mail.gmail.com>
To: Niels Matthijs <niels.matthijs@internetarchitects.be>
Cc: www-style list <www-style@w3.org>
On Fri, May 3, 2013 at 2:44 AM, Niels Matthijs
<niels.matthijs@internetarchitects.be> wrote:
> I know the difference between display:inline and display:inline-block, but I
> was wondering if there’s a good reason why someone would prefer inline over
> inline-block? The only reason that I can think of is if you want to
> hard-block top/bottom paddings/margins, but are there any other things that
> display:inline can handle which inline-block can’t?
> Or put differently, is there still a use-case for applying display:inline
> instead of inline-block (taking browser support out of the equation).

I suggest you try setting "span, i, b, u, em, strong, mark {display:
inline-block;}" and see how long that lasts on a real site.  ^_^  The
moment one of those elements starts near the end of a line and wants
to continue to the next line, it'll be obvious.

Received on Friday, 3 May 2013 14:44:06 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:29 UTC