Creating a table in your posts

Everything about ToME 4.x.x. No spoilers, please

Moderator: Moderator

Post Reply
Message
Author
madmonk
Reaper
Posts: 2257
Joined: Wed Dec 12, 2007 12:21 am
Location: New Zealand

Creating a table in your posts

#1 Post 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)
Regards

Jon.

Post Reply