Page 1 of 1

Creating a table in your posts

Posted: Tue Jan 08, 2013 8:58 pm
by madmonk
Hi

I have created the elements to allow us to create a table in our posts.

Shown below is a sample on how to construct a table showing each element. There is an issue here; in this particular example if you laid out the code like this all the carriage returns present at the end of each line would appear at the beginning of the table and show up as a large blank space. (Continued after the code)

Code: Select all

[table]
[tr]
[td][color=#0000FF]Stats[/color][/td]
[/tr]
[tr]
[td]STR[/td]
[td]15(18)[/td]
[/tr]
[tr]
[td]DEX[/td]
[td]8(10)[/td]
[/tr]
[tr]
[td]CON[/td][td]12(14)[/td]
[/tr]
[tr]
[td]MAG[/td][td]10(10)[/td]
[/tr]
[tr]
[td]WIL[/td][td]33(26)[/td]
[/tr]
[tr]
[td]CUN[/td][td]36(26)[/td]
[/tr]
[/table]
So to eliminate all the carriage returns you should run the whole table together with no carriage returns:

Code: Select all

[table][tr][td][color=#0000FF]Stats[/color][/td][/tr][tr][td]STR[/td][td]15(18)[/td][/tr][tr][td]DEX[/td][td]8(10)[/td][/tr][tr][td]CON[/td][td]12(14)[/td][/tr][tr][td]MAG[/td][td]10(10)[/td][/tr][tr][td]WIL[/td][td]33(26)[/td][/tr][tr][td]CUN[/td][td]36(26)[/td][/tr][/table]
The end result looks like this (note the lack of blank space):
Stats
STR15(18)
DEX8(10)
CON12(14)
MAG10(10)
WIL33(26)
CUN36(26)