View Single Post
Old 10-04-2012, 11:18 PM   PM User | #2
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,447
Thanks: 0
Thanked 496 Times in 488 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
It would be far easier to just set a column min-width in the CCS. You can set column specific information for the table by assigning classes inside the <col> and <colgroup> tags that precede the <thead> tag.

The other thing you haven't taken into account is that with most fonts the characters are not all the same width and so iiiiiiiiiiiiiiiiiiiiiiiii is not the same width as MMMMMMMMMMMMMMMMMMMMMMMMM even though both are 25 characters long.
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote