- From: fantasai <fantasai.lists@inkedblade.net>
- Date: Wed, 06 Aug 2014 17:57:32 +0100
- To: Brad Kemper <brad.kemper@gmail.com>, Lea Verou <lea@verou.me>
- CC: Christoph Päper <christoph.paeper@crissov.de>, www-style list <www-style@w3.org>
On 08/02/2014 11:06 PM, Brad Kemper wrote: > > >> On Aug 2, 2014, at 10:09 AM, Lea Verou <lea@verou.me> wrote: >> >> I’m leaning towards agreeing with François here. Is there any other application of this kind of alignment, besides spreadsheets? > > Sure. Any tabular information with dollar amounts in one column, but which sometimes might have text. > > Actually, what I'd really like for that is decimal alignment on the numbers, and a secondary alignment choice for how all the text and numbers align after the numbers are lined up (that is, where to put the left over space of the widest numbers or of the text, after you've lined up the decimals). > > So for instance, 'text-align: decimal-center' would be the same as 'text-align: center' if there was no decimal in the cell (no period character followed by a number, or if there is more than one period in the same cell). If it is a decimal, and there is horizontal space left over in the table column after decimal alignment, then get the width of the widest number and use it to center the whole text column of decimal aligned numbers within the table column. Yeah, we had that in CSS, too. Nobody wanted to implement it though, so it was dropped... http://www.w3.org/TR/2008/REC-CSS2-20080411/tables.html#column-alignment http://www.w3.org/TR/2012/WD-css3-text-20121113/#character-alignment ~fantasai
Received on Wednesday, 6 August 2014 16:58:05 UTC