PDA

View Full Version : Tip - Columns in posts



Basil
06-16-2010, 11:18 PM
I just ran across a discussion of posting columns in another forum and one of our members (TR3 Driver) taught me something I didn't know. When you try to make columns is a post, by using spaces, it doesn't work because the extra spaces disappear when you save your post. However, it appears that if you type your columns between two UBB "Code Tags" your spaces will say as you intended and thus you can easily put data in columns:

<div class="ubbcode-block"><div class="ubbcode-header">Code:</div><div class="ubbcode-body ubbcode-pre" ><pre>
Column 1 Column 2 Column 3
Some text Some text Some text
Some text Some text Some text
Some test Some text Some text
</pre>[/QUOTE]

But if I try the same thing without the code tags:

Column 1 Column 2 Column 3
Some text Some text Some text
Some text Some text Some text
Some test Some text Some text

By the way, you can enter code tags by selecting "code" from the http://www.britishcarforum.com/bcforum/images/markup_panel/new_default/code.gif menu item in the "full editor" or you can just type a starting and ending code tag manually. It would look like this:

<div class="ubbcode-block"><div class="ubbcode-header">Code:</div><div class="ubbcode-body ubbcode-pre" ><pre>
{code}Type your test here{/code}</pre>[/QUOTE] but replace the {} with [] brackets.

Another way to add extra spaces, is to use the ASCII code for "no break space" which would look like this in the editor screen (but becomes a space when you save your post):
<div class="ubbcode-block"><div class="ubbcode-header">Code:</div><div class="ubbcode-body ubbcode-pre" ><pre>&amp;nbsp</pre>[/QUOTE]