Page 1 of 1

Creating a table in a post.

Posted: Thu Aug 26, 2010 6:24 am
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?

Posted: Thu Aug 26, 2010 6:33 am
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.

Posted: Thu Aug 26, 2010 6:40 am
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.

Posted: Tue Aug 31, 2010 2:59 pm
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.