in reply to Re: Formatting CGI script error messages
in thread Formatting CGI script error messages
I didn't know about the "overflow: scroll" thing. Pretty neat. It got me looking back at HTML/CSS documentation, and I actually found that <pre> has a "wrap" attribute!
Unfortunately, the "wrap" attribute doesn't work in IE. However, your "word-wrap: break-word" trick does (thanks! -- I didn't know about that one either). So now I have this, which works in both NS and IE:
<pre style="word-wrap: break-word" wrap>...</pre>
(Note that "white-space: normal" is no good, though, because it collapses multiple spaces and newlines (at least, it does in NS; IE seems to not honour that either).)
- Steve
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Formatting CGI script error messages
by Anonymous Monk on Nov 18, 2004 at 03:31 UTC |