Text Appearance Problem

All things related to the general running of the forum - got a suggestion? Here's where it should go.
Post Reply
User avatar
Lord Jim
Posts: 29716
Joined: Thu Jun 10, 2010 12:44 pm
Location: TCTUTKHBDTMDITSAF

Text Appearance Problem

Post by Lord Jim »

A question for one of our board techy folks...

I started a thread here:

viewtopic.php?f=3&t=5063

Where I copied and pasted some polling info from another site....

When I posted it, the columns didn't line up properly so I manually moved the spacing around until they did.

But for some reason, even though when I click on edit, and I can see that the spacing is set the way I put it, in both the preview and live on the site the numbers all run together again....

Any idea why this might be happening and how I might be able to avoid it in the future?

Thanks... :kiss:
ImageImageImage

User avatar
Scooter
Posts: 17119
Joined: Thu Apr 15, 2010 6:04 pm
Location: Toronto, ON

Re: Text Appearance Problem

Post by Scooter »

Some discussion board formats (and this appears to be one of them) simply eliminate all extraneous spaces within a typed line of text (leaving only one or two space between each word or group of characters). Maintaining the spacing in a table requires putting the whole thing in a code box ([ code][ /code]). BUT, there is still a bit of a trick to it (one that I usually get too impatient to bother with) because the text in a code box uses a monospaced font, so merely visualizing how you think the columns should look as you type is not enough; since the posting box uses a variable spaced font, you actually have to count the number of characters and spaces you are using to properly align each column.

I'm just thinking now, because I have never tried this, but the easiest way might be to compose the table in a word processing program using a monospaced font like Courier, then copying and pasting it here within [ code][ /code] tags. It will not look aligned in the posting box, but when you preview it, it should look just like the original you typed.

(note where I used formatting tags I introduced spaces so they would not format as a code box)
"The dildo of consequence rarely comes lubed." -- Eileen Rose

User avatar
Scooter
Posts: 17119
Joined: Thu Apr 15, 2010 6:04 pm
Location: Toronto, ON

Re: Text Appearance Problem

Post by Scooter »

This is what I got by formatting the table in WordPad, using Courier as the font. If you quote this post so you can see how it actually transcribed into the editing box, you can see that it does not look aligned (in a variable spaced font):

Code: Select all

Poll                 Date           Sample   Gingrich Romney 
RCP Average          11/13 - 11/30  --       26.6     20.4 
Rasmussen Reports    11/30 - 11/30  1000 LV  38       17 
CNN/Opinion Research 11/18 - 11/20  402  A   24       20 
Quinnipiac           11/14 - 11/20  1039 RV  26       22 
USA Today/Gallup     11/13 - 11/17  946  RV  22       21 
FOX News             11/13 - 11/15  370  RV  23       22 
"The dildo of consequence rarely comes lubed." -- Eileen Rose

User avatar
Lord Jim
Posts: 29716
Joined: Thu Jun 10, 2010 12:44 pm
Location: TCTUTKHBDTMDITSAF

Re: Text Appearance Problem

Post by Lord Jim »

Thanks Scooter.
ImageImageImage

User avatar
Econoline
Posts: 9607
Joined: Sun Apr 18, 2010 6:25 pm
Location: DeKalb, Illinois...out amidst the corn, soybeans, and Republicans

Re: Text Appearance Problem

Post by Econoline »

Cool! Good solution, Scooter!

BTW, one way of putting in "extraneous spaces" when the board format doesn't want to allow them is to put in an appropriate number of periods............................................................and then change the font color for the line of periods to white. (Actually, I guess you could use a row of any random characters; periods [or decimal points, or dots, or whatever you want to call them] are just what I use.)
People who are wrong are just as sure they're right as people who are right. The only difference is, they're wrong.
God @The Tweet of God

User avatar
Sean
Posts: 5826
Joined: Tue Apr 06, 2010 10:17 am
Location: Gold Coast

Re: Text Appearance Problem

Post by Sean »

*snigger*


Periods...
Why is it that when Miley Cyrus gets naked and licks a hammer it's 'art' and 'edgy' but when I do it I'm 'drunk' and 'banned from the hardware store'?

Post Reply