Displaying Sometimes tabular data in HTML

OK, here's the issue, I am reading fields from a database.  One of them is a memo field which sometimes contains tabular data and sometimes does not.  It is a notes field and can contain almost anything.  However, when the notes contain tabs I would like to display them properly, for example:

-----
John, the estimated support will be as follows:

                                Amount
1 to 10 users             $100.00
10  -20                     $200.00
20 + users                $500.00
-----

With the exception that instead of spaces like in the above example, the memo field will actuall contain tabs.

I have tried repalcing tabs with \t and using Java like below but I lose my font in the <pre>:

<SCRIPT LANGUAGE='Javascript'>
                document.write("<font face=\"Arial\" size=\"3\" color=\"#008000\"><pre>")
      document.write("100 Meter\t400 Meter\t1500 Meter\r")
      document.write("110 Hurdles\tHigh Jump\tlong Jump\r")
      document.write("Javelin\t\tPole Vault\tShot Put\r")
      document.write("Discus")
      document.write("</pre></font>")
</SCRIPT>


Is there any easy way to do this?

Luke
ResolvLLCAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Saqib KhanSenior DeveloperCommented:
when you grab the variable out of databae try this.

myNotes = Rs("MemoField")
mynotes = Replace(myNotes, "vbCrlf", "<br>")
Response.write myNotes
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ResolvLLCAuthor Commented:
That works great for adding a return, I need tabs.
0
ResolvLLCAuthor Commented:
Or I need to change the font in <pre>  </pre>
0
ResolvLLCAuthor Commented:
This was a stupid thing on my part.  In the preview in front page this wasn't displaying properly.  Once saved and viewed in IE, it is fine.
Thanks for your help
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development Software

From novice to tech pro — start learning today.