Re: [Fwd: Re: [whatwg] simple numbers]

Keryx Web skrev:
> fantasai skrev:
>> I'd like to put it here:
>>   http://csswg.inkedblade.net/ideas/content-formatting
>> (you can edit that yourself if you like)
>>
> 
> Done
> 

Thinking about my suggestion I have realized that I don't know what will 
happen in this case:

HTML:
<tr>
   <td>12</td>
   <td>21</td>
</tr>

CSS:
td:after {
     content: " USD";
}

I thought a browser could make that look exactly like:

<tr>
   <td>12 USD</td>
   <td>21 USD</td>
</tr>

If I am wrong (somebody please inform!) I need to add some rules to my 
number formatting suggestion to accomodate percentage signs, currency 
and other units or symbols.

Alignment is also an area I haven't looked into yet. Not that formatting 
of numbers is exclusively the domain of tables, though.


Lars Gunther

Received on Saturday, 12 January 2008 10:51:06 UTC