Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

? dohtml 2

Status
Not open for further replies.

WingandaPrayer

Technical User
May 15, 2001
152
Hi,

On a previous website which used html i could use

[pre][/pre]before and after to space out columns as i had set them.

The current site uses something called dohtml.

[pre][/pre] no longer works.All words are seperated by one space only and not lined up as i set them.

Is there a simple format to replace [pre][/pre] as i know nothing about html.

thanks [sadeyes]
 
I can only assume that you are using some special kind of editor, which replaces your syntax with the proper html markup. The [pre][/pre] corresponded to html tags <pre></pre>, which display text with formatting -- including all whitespace and carriage returns. It is hard to say what exactly you can do without seeing the tool which you are using to update the site. The <pre> tag is available in all versions of (x)html so it should not cause problems. Probably the new editor does not replace [pre][/pre] syntax with the corresponding html markup and simply ignores them. I don't know how you could use the dohtml, but here's an assumption. If dohtml allows html tags, try initializing dohtml and then add your text like this:
Code:
<pre>
 My text:
  Col 1     Col 2
  Info      Info
  Info 2    Info 2
 The end
</pre>
Hope it is of some help. If you will let us in on more details of this editor tool you use, we might be able to help more
 

Instead of using PRE, consider using a DIV or SPAN, with the font set to a fixed-pitch font.. something like this:

Code:
<style type="text/css">
.fixed {
   font-family: "courier new", courier, monospace;
}
</style>
...
<div class="fixed">Hello World!</div>

Basically, with the style you can the add a class of "fixed" to any element, and it should work as the PRE tags did.

Hope this helps,
Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top