W3C home > Mailing lists > Public > www-html@w3.org > March 1999

Wordwrap in <PRE>-formatted text

From: Arne Stenstadvold, ABTV <arne@abtv.no>
Date: Wed, 17 Mar 1999 13:47:47 +-100
Message-ID: <01BE707C.BE4681E0@abtvs20002.tvnorge.no>
To: "'www-html@w3.org'" <www-html@w3.org>

Anybody out there who can help me with information on how to get wordwrapping in preformatted text?
I use the <PRE> command, but need the text to wrap according to the size of the browser window.

With Netscape Navigator (v.4.5) I can use the tag:

<PRE WRAP="virtual"> (the value "virtual" could be anything at all, it works anyway)

This does NOT work with Microsoft Internet Explorer (v.3.02 or v.4.0)
Most employees in my company use MSIE, so I need a command that work with this browser.

I have looked thorugh the HTML recommendations on the W3.org site, and I can't find anything that suggests wordwrap in PRE-formatted text. 
BUT it says on the page:  "http://www.w3.org/TR/REC-html40/struct/text.html#h-9.3.4"
that the <PRE> command:

" - May leave white space intact.
  - May render text with a fixed-pitch font.
  - May disable automatic word wrap.
  - Must not disable bidirectional processing."

The use of the word "MAY" leads me to believe that it is possible to ENABLE wordwrap.
But how? And what is the command? And are there different commands for different browsers?

Appreciate any input you can give me.
If this is the wrong list to ask this question, please tell me!

Arne Stenstadvold

Received on Wednesday, 17 March 1999 07:48:01 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:50 UTC