- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Tue, 20 Jan 2009 13:33:39 -0500
- 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 UTC