The problem with a Label control is that it is usually as wide as it contents. A Label is rendered as a <span> tag, so all it contains is the actual text / contents of the label.
So, the text is actually right-aligned. However, since the label matches the size of the content, you won't notice the difference.
To effectively right-align, you need a container that is larger than the contents. A <td> is one way; a <span> tag with an explicit width wider than the contents is another, and for numbers, a right-aligned text box could be another useful possibility.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to:
The gallery by
Muse (Track 9 from the album:
Hullabaloo)
What's This?