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>
Hi!

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> or
<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

arne@abtv.no
IT-administrator
web-master
www.abtv.no
Received on Wednesday, 17 March 1999 07:48:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:38 GMT