What I would like to do is something like this: <table> <col class="RightAlignedColumn" /> <col class="CenterAlignedColumn" /> <col class="LeftAlignedColumn" /> <tr> <td>should be aligned right</td> <td>should be aligned center</td> <td>should be aligned left</td> </tr> </table>
However, if I understand correctly, you cannot apply the text-align property to a "col" element to align the contents of the entire column. I have tried to do so, and failed. According to the document at http://www.w3.org/TR/REC-CSS2/tables.html#q4, border, background, width, and visibility are the only properties that apply to col elements. So if I have a multi-column table and want to align the contents of the various columns, the "correct" way would be something like this: <tr> <td class="RightAlignedColumn">should be aligned right</td> <td class="CenterAlignedColumn">should be aligned center</td> <td class="LeftAlignedColumn">should be aligned left</td> </tr> </table> I can get it to work that way, but it seems wasteful and unintuitive to do it that way instead of just applying the text-align property once at the column level. I've searched the web and can't find any commentary on the reason for this. Any insight? Thanks, Conan ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
