0
JohnRich

Columnar Lists

Recommended Posts

Every once in a while I have the need to post data in columns, like this:

Washington D.C... 46.2
Louisiana........ 13.2
Maryland......... 9.4
Mississippi...... 9.2
Nevada........... 8.3
New Mexico....... 8.2
Illinois......... 7.5

The problem, as you can see, is that this forum uses a proportional font, which doesn't assign the same amount of space to each character in a line. The above data, when put in Courier font, has all the numerical data lined up vertically in a nice neat column. However, in the font used here, the state names vary in width, messing up the alignment of the following numerical data.

So, is there a way I can change the font to use a non-proportional variety, to keep my data aligned?

Share this post


Link to post
Share on other sites
>What does "pre" stand for?

It also stands for the lengths Sangiro goes to
to make this a good and useful place.

I asked for the same help JohnRich just
did some time back and the next day there
was an email from Sangiro saying that he
had added the "pre" tag.

Like all good hackers he seems to have
forgotten to add it to the documentation
though :-) :-)

Skr

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

0