Saga ~ Our Online Roleplaying Family

SagaFamily Commons => OOC/OT => Topic started by: Namae Nai on March 19, 2008, 04:14:06 PM

Title: Fun with BB Code: Tables and Anchors!
Post by: Namae Nai on March 19, 2008, 04:14:06 PM
I've been messing around with BB Code lately and it occurs to me that it might be comething that everyone would like to learn a little bit about, if not for here than for other forums.

Here's how to make a table:

[table][tr][td]One  [/td][td]Two  [/td][td]Three  [/td][/tr]
[tr][td]Four  [/td][td]Five  [/td][td]Six  [/td][/tr]
[tr][td]Seven  [/td][td]Eight  [/td][td]Nine  [/td][/tr]


And it looks like this:

One Two Three
Four Five Six
Seven Eight Nine

Notice how they all line up on the left side? That's because they're actually in an invisible borderless table that aligns them in perfect rows and columns. You can align most anything this way, including pictures and smilies!. Say I want to play a game of tic-tac-toe, using  :fln: instead of X's and :angel: instead of O's.

[table]
[tr][td] :angel:[/td][td]  |  [/td][td] :fln: [/td][td]  |  [/td][td] [/td][/tr]
[tr][td]-----[/td][td]--+--[/td][td]-----[/td][td]--+--[/td][td]-----[/td][/tr]
[tr][td] [/td][td]  |  [/td][td] :fln:[/td][td]  |  [/td][td] :angel:[/td][/tr]
[tr][td]-----[/td][td]--+--[/td][td]-----[/td][td]--+--[/td][td]-----[/td][/tr]
[tr][td] :angel:[/td][td]  |  [/td][td] :fln:[/td][td]  |  [/td][td] :fln:[/td][/tr][/table]



:angel:   |  :fln:    | 
---------+-------------+-----------
   |  :fln:   |  :angel:
---------+-------------+-----------
:angel:   |  :fln:   |  :fln:

The code looks complicated, but it breaks down into rows and data cells. The three tags that form a table are td, tr, and table.

Anyone have any questions?
Title: Re: Fun with BB Code: Tables and Anchors!
Post by: Lyrima on March 21, 2008, 05:30:55 AM
That looks SO cool! :)

Um...definitely  not my thing..but I bet my children would be interested in that!