Please note that new user registrations disabled at this time.

Creating a table in a post.

Important announcements and related feedback. If you want something added, altered, or removed from GB, post about it here.
Post Reply
User avatar
Tricky
Posts: 3562
Joined: Fri Oct 28, 2005 10:21 pm
Location: Norway
Contact:

Creating a table in a post.

Post by Tricky »

I am currently working on a topic that requires me to outline and compare a bunch of facts. Ideally this is done in a table, but I found no such way to add one. Instead I figured out a way to draw a table, using ascii characters, and line it out equally using the [CODE tags. It doesn't look perfect, but it gets close enough to a real table.

However, my little ascii table relies heavily on the assumption that the length of the 'code quotation box' is the same on every computer, regardless of browser or screen resolution.

Are the character lengths of these CODE text boxes always fixed?
[INDENT]'..tolerance when fog rolls in clouds unfold your selfless wings feathers that float from arabesque pillows I sold to be consumed by the snow white cold if only the plaster could hold withstand the flam[url="http://bit.ly/foT0XQ"]e[/url] then this fountain torch would know no shame and be outstripped only by the sun that burns with the glory and honor of your..'[/INDENT]
User avatar
Tricky
Posts: 3562
Joined: Fri Oct 28, 2005 10:21 pm
Location: Norway
Contact:

Post by Tricky »

Code: Select all

12345678901234567890123456789012345678901234567890123456789012345678901234567890
         0         0         0         |         0         0         0         0
         0         0         0         |         0         0         0         0
         0       left*       0         |         0       right       0         0
                                       |                                       0
                                       |                                       0
                                       |                                       0
————————————————————————————————————————————————————————————————————————————————
                                       |                                       0
                                       |                                       0
                                       |                                       0
————————————————————————————————————————————————————————————————————————————————
                                       |                                       0
                                       |                                       0
                                       |                     
————————————————————————————————————————————————————————————————————————————————
                                       |                                       0
                                       |                                       0
                                       |                                       0
————————————————————————————————————————————————————————————————————————————————


Kinda like this. I think this is the maximum length, 80 characters, at least on my screen. Any longer and a sliding bar will appear in the bottom.
[INDENT]'..tolerance when fog rolls in clouds unfold your selfless wings feathers that float from arabesque pillows I sold to be consumed by the snow white cold if only the plaster could hold withstand the flam[url="http://bit.ly/foT0XQ"]e[/url] then this fountain torch would know no shame and be outstripped only by the sun that burns with the glory and honor of your..'[/INDENT]
User avatar
Tricky
Posts: 3562
Joined: Fri Oct 28, 2005 10:21 pm
Location: Norway
Contact:

Post by Tricky »

OK. Considering that nobody mentioned anything about my table being displayed incorrectly, I am going to assume it works for everyone on every type of browser and resolution.
[INDENT]'..tolerance when fog rolls in clouds unfold your selfless wings feathers that float from arabesque pillows I sold to be consumed by the snow white cold if only the plaster could hold withstand the flam[url="http://bit.ly/foT0XQ"]e[/url] then this fountain torch would know no shame and be outstripped only by the sun that burns with the glory and honor of your..'[/INDENT]
User avatar
BuckGB
Posts: 1576
Joined: Mon Oct 09, 2000 10:00 pm
Contact:

Post by BuckGB »

Yeah, I think vBulletin's CODE box displays properly regardless of browser and resolution. It's used on a lot of forums for displaying proper programming code and I've never had a problem reading anything I've seen.
Post Reply