Actually that is not the correct way to do it....that is a text align property....it SHOULD not apply to block level elements such as tables.
I know that IE5 will align the table on the right but it does it wrong. A more CSS compliant browser such as Netscape 6.x or Mozilla will not align the table to the right.
The correct way to align a block level element to the right would be to add this CSS to the nested table:
margin-left:auto; margin-right:0px
but of course IE5 coughs all over that. So the solution if you have to have it work in IE5 is to do both, so you would end up with something like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "
<html>
<head>
<title>
test
</title>
</head>
<body>
<table width="500" border="1">
<tr>
<td style="text-align:right">
<table style="margin-left:auto; margin-right:0px">
<tr>
<td>
stuff
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
Hope that helps!
===
Supports Mozilla and Web Standards
Knows HTML/XHTML, CSS1, JavaScript, PHP, C++, DOM1
===