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

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

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 20 Jan 2009 13:33:39 -0500
Message-ID: <49761903.7020002@mit.edu>
To: Giovanni Campagna <scampa.giovanni@gmail.com>
CC: www-style@w3.org

Giovanni Campagna wrote:
> td::before {
>     text-align: left;
>     content: attr(my|currency,string);
> }
> td {
>     text-align: ",";
>     display:table-cell; /* from UA defaults */
> }
> but this approch has a limit: it introduces a new table cell

Uh... it does?  It shouldn't.  Why does it?

 > that moves
> all subsequent cells on the rigth, destroying the whole layout. What I 
> need is content before cell content, not before cell box itself.

That's what ::before does, yes.  It inserts content inside the box, 
before its DOM children.

-Boris
Received on Tuesday, 20 January 2009 18:35:29 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:15 GMT