Dear All,
I've been struggling with a problem. I'm producing an online edition of an author's diary:
Much of the diary is, like poetry or code, dependent on whitespace.
The online diary pages are being rendered dynamically by a php script and are pulled from an MySQL database.
My problem isn't the dynamics, but rather, line wrapping.
By using <pre wrap>, I can maintain the whitespace in the diary entries and have line wrapping in everything other than Microsoft's Internet Explorer. I'm aware that "wrap" has been depricated.
I've tested the pages in Mozilla, Netscape 4.*, Netscape 6.*, Konqueror, and Galeon and they render as intended.
Can anyone think of a way that I can maintain whitespace *and* wrap lines according to browser width?
To save anyone the trouble, yes, I've tried putting the output in a fixed-width <div> container and all that happens in IE is that lines exceed the container width and one can't even scroll horizontally to read them.
Rendering the diary entries in <textarea> is one possibility; however, some markup (such as hyperlinks and italics) are also in the text so that's not a possibility.
Can anyone think of anything else I can do?
Many thanks,
Ian
I've been struggling with a problem. I'm producing an online edition of an author's diary:
Much of the diary is, like poetry or code, dependent on whitespace.
The online diary pages are being rendered dynamically by a php script and are pulled from an MySQL database.
My problem isn't the dynamics, but rather, line wrapping.
By using <pre wrap>, I can maintain the whitespace in the diary entries and have line wrapping in everything other than Microsoft's Internet Explorer. I'm aware that "wrap" has been depricated.
I've tested the pages in Mozilla, Netscape 4.*, Netscape 6.*, Konqueror, and Galeon and they render as intended.
Can anyone think of a way that I can maintain whitespace *and* wrap lines according to browser width?
To save anyone the trouble, yes, I've tried putting the output in a fixed-width <div> container and all that happens in IE is that lines exceed the container width and one can't even scroll horizontally to read them.
Rendering the diary entries in <textarea> is one possibility; however, some markup (such as hyperlinks and italics) are also in the text so that's not a possibility.
Can anyone think of anything else I can do?
Many thanks,
Ian