I read that every column of the table can be styled using the <colgroup> and <col> . I tried the following, but style styling does not work. How can i fix this? When I do this using the width property, it works. Is there something wrong with the text-align property?
<html><body><table> <colgroup> <col style="text-align:right" /> <col style="text-align:center" /> <col style="text-align:left" /> </colgroup> <tr> <td>aaaaaaaaaaa</td> <td>bbbbbbbbbbb</td> <td>ccccccccccc</td> </tr> <tr> <td>aaa</td> <td>bbb</td> <td>ccc</td> </tr> </table></body></html>
As a result, each column is aligned by default, ignoring the specification executed in colgroup .

I am using Chrome 17.
source share