Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

Two Easy Formatting Tricks!

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
This topic is archived.
Home » Discuss » The DU Lounge Donate to DU
 
On the Road Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Apr-07-04 01:16 PM
Original message
Two Easy Formatting Tricks!
Edited on Wed Apr-07-04 01:18 PM by ribofunk
When cutting and pasting the results of, say, a poll, I always want the columns to line up -- but they often don't, partly due to proportional spacing:

Bush.............46.0
Kerry............49.5
Other.............3.2
Not sure..........1.3
Total...........100.0

By adding "tt" between square brackets, you can specify a "typewriter" font that has the same width for all characters:

Kerry............49.5
Other.............3.2
Not sure..........1.3
Total...........100.0


I also want to insert extra blank spaces sometimes, but multiple spaces are normally reduced to one space. So, in the previous example, if the dots ("......") are replaced by spaces, you get the following:

Bush 46.0
Kerry 49.5
Other 3.2
Not sure 1.3
Total 100.0

To show each blank space separately, you can put "pre" between square brackets (indicating that the text is pre-formatted), and voila!

Bush             46.0 
Kerry 49.5
Other 3.2
Not sure 1.3
Total 100.0


I've been trying to find a way to do this ever since I started posting at DU three years ago, and just found how by looking at an old HTML guide:

http://archive.ncsa.uiuc.edu/General/Internet/WWW/HTMLPrimerAll.html

Most of the tags work on DU if you substitute square brackets for the "<" and ">" signs.
Printer Friendly | Permalink |  | Top
pagerbear Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Apr-07-04 01:20 PM
Response to Original message
1. In that case, could you use table tags?
Printer Friendly | Permalink |  | Top
 
On the Road Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Apr-07-04 01:26 PM
Response to Reply #1
2. Yes, Table Tags Used to be Part of the Pop-Up DU HTML Guide
I've used them a couple of times, but they're pretty clunky and complicated for most posting purposes.

Although cutting and pasting the HTML for a table from another sire resulted in a black screen for some reason. Don't know why this is.
Printer Friendly | Permalink |  | Top
 
On the Road Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Apr-07-04 01:28 PM
Response to Reply #2
4. Results of Copying Table HTML. You Might Want to Try Your Own Tags:












first row, first cell contents
first row, last cell contents



You might want to try your own tags. I know it's worked.



caption contents
first header cell contents last header cell contents
Printer Friendly | Permalink |  | Top
 
NewHampster Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Apr-07-04 01:28 PM
Response to Original message
3. Be Careful
You may regret bestowing knowledge upon the unwashed masses.

  :)
Printer Friendly | Permalink |  | Top
 
pagerbear Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Apr-07-04 10:15 PM
Response to Reply #3
7. The phrase "unwashed masses" should be banned from DU!
Printer Friendly | Permalink |  | Top
 
katieforeman Donating Member (785 posts) Send PM | Profile | Ignore Wed Apr-07-04 01:55 PM
Response to Original message
5. Thanks. That's helpful.
Printer Friendly | Permalink |  | Top
 
SheWhoMustBeObeyed Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Apr-07-04 01:56 PM
Response to Original message
6. Cool, thanks!
:thumbsup:
Printer Friendly | Permalink |  | Top
 
SoCalDem Donating Member (1000+ posts) Send PM | Profile | Ignore Thu Apr-08-04 12:37 AM
Response to Original message
8. cool.. thanks
Edited on Thu Apr-08-04 12:37 AM by SoCalDem

Bush 46.0
Kerry 49.5
Other 3.2
Not sure 1.3
Total 100.0
Printer Friendly | Permalink |  | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Fri May 03rd 2024, 06:34 AM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » The DU Lounge Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC