White Dragon Society Forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Creating Tables

Go down

Creating Tables Empty Creating Tables

Post  Admin Thu Apr 24, 2008 1:51 pm

Here are the tags that are used in the creation of Tables. The button used to automatically generate a Tables is the last one in the 4th set of buttons above the post box. You can view the effects while trying them out by using the Preview Button next to the Send Button.

Note: The use of a space is used in the beginning of tags to allow tags to be viewed instead of functioning like they should for the purpose of instruction. Do not use spaces in tags when using the tags for yourself.

[ table] = Start Table | [ /table] = End Table
[ tr] = Start Row | [ /tr] = End Row
[ td] = Start Cell | [ /td] = End Cell

Advanced
[ table border="1"] = Start Table with Border size 1
If you do not include the border property, there will be no borders to distinguish cells. There can be use of this however.
[ td][ fontstyle] = Start Cell using particular Font style (bold, italic, etc.) | [ /fontstyle][ /td] = End Cell and Style
Unfortunetly if you want an entire row formated a certain way, you have to do it cell by cell.
< th> = Start Heading | < /th> = End Heading

Code:
[table border="1"]
<th>Heading 1</th>
<th>Heading 2</th>
<th>Heading 3</th>
[tr]
[td]Row 1, Cell 1[/td][td]Row 1, Cell 2[/td][td]Row 1, Cell 3[/td]
[/tr]
[tr]
[td][i]Row 2, Cell 1[/i][/td][td][u]Row 2, Cell 2[/u][/td][td][/td]
[/tr]
[/table]
Result:
Heading 1Heading 2Heading 3
Row 1, Cell 1Row 1, Cell 2Row 1, Cell 3
Row 2, Cell 1Row 2, Cell 2
Did you notice that Row 2, Cell 3 was left blank and borders don't show for that cell in the table? It looks like it's filled in solid. To fix that you have to put "non-breaking space" in that cell.
See the code below to see the difference.
Code:
[table border="1"]
<th>Blank</th>
<th>non-breaking space</th>
[tr]
[td]  [/td][td]& n b s p ;[/td]
[/tr]
[/table]
The code for non-breaking space will still work even displayed as code, therefore spaces where placed in between each character. Remove the spaces to for it to become a blank space.
Result:
Blanknon-breaking space
 
As you can see comparing the code to the table, just leaving blank space between the start and end doesn't work. You have to use the non-breaking space for the results you want.

Admin

Number of posts : 30
Registration date : 2008-04-02

http://whitedragonsociety.rpg-dynasty.com

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum