how to edit a table?
|
|
I'm almost done with a script but I'm stuck. I want to edit this:
To
How can I do this? btw, this is my first script.</table></table> |
|
|
There is no "height" for tables: http://www.w3.org/TR/html401/struct/tables.html...
|
|
|
I think that you can do it with the style attribute but I'm not sure of it, you must test it: style="height: 98%;" |
|
|
You could make it 98% by having a cssRule or
The 98% will be relative to tables container |
|
|
Why add style attribute when you have a class name?
You can use min-height for a table, but you'll have to define a few other things, likely vertical-align: bottom; padding: auto; and maybe min-height for each cell, and there is no definition for "percentage" in table or cell heights. However you could use em which refers to line height (or width of "M", and ex is height of "x"), but is equal to the font size. I haven't messed with it much since it's totally inconsistent across browsers. |
|
|
setAttribute still works. |
|
|
Thanks for all the help. I got it to work by using:
|
