by Tempest » Tue Jun 09, 2009 7:10 pm
It would be a redundant and less flexible BBcode because you can use [ table={text1} ]{text2}[ /table ] and modify any attributes you want; cellpadding, cellspacing, border, bgcolor, you-name-it. [where {text1} is the width of the table followed by the attribute(s) you want to use].
Example:
Code: Select all
[table=50% rules=ALL bgcolor=#96B8FA][tr][th]Line 1, cell 1[/th][th]Line 1, cell 2[/th][/tr][tr][td]Line 2, cell 1[/td][td]Line 2, cell 2[/td][/tr][tr][td]Line 3, cell 1[/td][td]Line 3, cell 2[/td][/tr][/table]
Will give this:
Line 1, cell 1 | Line 1, cell 2 |
---|
Line 2, cell 1 | Line 2, cell 2 |
Line 3, cell 1 | Line 3, cell 2 |
Note that the attribute "border" (as well as some other attributes) doesn't work with this theme because table borders are done a bit differently (I may fix this eventually). So if you use border=1, then it will appear fine on every theme except this one (i.e. the borders will not be displayed). So it's preferable to use the attribute "rules" (ALL, COLS, ROWS) to display internal borders. It's not ideal, but it should be enough to improve the readability of your table.
Edit: attribute "rules" doesn't work with MIE v6 (ie the table above doesn't have internal borders)... for some reasons. Also creating a predefined BBcode with border=1 doesn't solve this problem. It's how the themes are designed; some attributes are "locked".
It would be a redundant and less flexible BBcode because you can use [ table={text1} ]{text2}[ /table ] and modify any attributes you want; cellpadding, cellspacing, border, bgcolor, you-name-it. [where {text1} is the width of the table followed by the attribute(s) you want to use].
Example:
[code][table=50% rules=ALL bgcolor=#96B8FA][tr][th]Line 1, cell 1[/th][th]Line 1, cell 2[/th][/tr][tr][td]Line 2, cell 1[/td][td]Line 2, cell 2[/td][/tr][tr][td]Line 3, cell 1[/td][td]Line 3, cell 2[/td][/tr][/table][/code]
Will give this:
[table=50% rules=ALL bgcolor=#96B8FA][tr][th]Line 1, cell 1[/th][th]Line 1, cell 2[/th][/tr][tr][td]Line 2, cell 1[/td][td]Line 2, cell 2[/td][/tr][tr][td]Line 3, cell 1[/td][td]Line 3, cell 2[/td][/tr][/table]
Note that the attribute "border" (as well as some other attributes) doesn't work with this theme because table borders are done a bit differently (I may fix this eventually). So if you use border=1, then it will appear fine on every theme except this one (i.e. the borders will not be displayed). So it's preferable to use the attribute "rules" (ALL, COLS, ROWS) to display internal borders. It's not ideal, but it should be enough to improve the readability of your table.
Edit: attribute "rules" doesn't work with MIE v6 (ie the table above doesn't have internal borders)... for some reasons. Also creating a predefined BBcode with border=1 doesn't solve this problem. It's how the themes are designed; some attributes are "locked".