User Profile
Collapse
-
dgotlib started a topic Setting width of <td> elements when creating table dynamically in JavaScriptin JavascriptSetting width of <td> elements when creating table dynamically in JavaScript
I need to create tables dynamically in Javascript, with column widths of 20%, 55%, 15%, 10%.
I can't figure out how to make this work.
I created css classes for each of the four columns.
My css style sheet which, in part, looks like:
Code:table{ font-family: Arial; text-align: left; border-collapse:collapse; table-layout:fixed; } .col1{width:20%;} } .col2{width:55%;}
Last edited by Meetee; Apr 2 '12, 04:50 AM.
No activity results to display
Show More
Leave a comment: