W3C home > Mailing lists > Public > www-style@w3.org > January 2009

Re: [selectors] [css3-content] The ::inside pseudo-element

From: Giovanni Campagna <scampa.giovanni@gmail.com>
Date: Wed, 21 Jan 2009 14:06:41 +0100
Message-ID: <65307430901210506m6b745456uacd03d2a64da0ebd@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>, www-style@w3.org
2009/1/20 Boris Zbarsky <bzbarsky@mit.edu>

> Giovanni Campagna wrote:
>> Doing some testing, I actually discovered that ::inside is need because
>> yes, ::before does not introduce a new table-cell, but it introduces an
>> inline box. Text-align (and other useful properties, like float) does not
>> apply to inline
> You can use an inline-block if you want text-align, no?  If you float it
> you'll get a block, of course, but I'm still not sure why you need ::inside
> in that case.
> -Boris
How would you do that? If you display the ::before with inline-block, it
will not float (only block can float), neither it will text-align unless you
manually widen the inline-block box (but it will align left of the widened
block, not left of the table-cell).

(The use case is the same as the first post, aligning generated content to
the start edge of a table-cell, while putting the dom content aligned on the
right, like in Microsoft Excel "Contability" formatting)

Received on Wednesday, 21 January 2009 13:07:24 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:23 UTC