Re: [CSS3] CSS Text Level 3, 6.1: text-align: string

I apologize if you've seen this more than once. I've been having some  
e-mail problems that caused it to be sent from the wrong server.
--------------------------------

On Dec 31, 2008, at 5:05 PM, L. David Baron wrote:

> On Wednesday 2008-12-31 16:57 -0800, Brad Kemper wrote:
>> Wow. OK. I didn't realize it would be that hard to get a reasonable
>> fallback value. In the case of decimal numbers, I would want the  
>> columns
>
> This was the discussion about fallback if text-align: <string> was
> used on something not a table cell; not the case about fallback if
> the cell doesn't have appropriate text.

Yes, you are right. Sorry. Here is the use case:

.numbers { font-family:courier; font-size:14px; color: red; text- 
align:"."; }

Now, imagine that besides applying this class to a table cell, I also  
apply it to block elements as well, in order to pick up the other  
properties:

<div class="numbers">
$ 123.50<BR>
$ 0.75<BR>
$300.00
</div>

Ideally, those would be right aligned. And you are probably right  
about this part not being that important, if it is a big deal, since  
there are other ways to get it to have another alignment (such a  
DIV.numbers rule). My druthers would be to allow author flexibility or  
to have "right" be the fallback value in this situation. But of  
course, I don't have to do the work to implement my druthers in the  
browser program.

Received on Thursday, 1 January 2009 04:08:21 UTC