How to specifiy the column width and text alignment of an HTML table using CSS?
Posted
by xkcd
on Stack Overflow
See other posts from Stack Overflow
or by xkcd
Published on 2010-06-15T19:45:29Z
Indexed on
2010/06/15
19:52 UTC
Read the original article
Hit count: 184
Is it possible to specify the width of a table column in percentages using css? Also is it possible to specify the text alignment of a specific column?
For example I have a table that has 3 columns. I would like to say
col1.width = 20%
col2.width = 40%
col3.width = 40%
col1.text-align = left;
col2.text-align = right;
col3.text-align = center;
© Stack Overflow or respective owner