Just wanted to share a wonderfull url with you!
http://getfirebug.com/lite.html
pre-wrap acts like pre but wraps if necessary, while pre-line acts like normal but preserves newlines.
Most of this code is from Ian Hickson, which Lim Chee Aun bloged about in Whitespace
and generated content, explaining the intrincacies about this problem. You can
also find more information at Pre-wrap
alternatives and Get word-wrap
in comments.
.wordwrap {
white-space: pre; /* CSS2 */
white-space: -moz-pre-wrap; /* Mozilla */
white-space: -hp-pre-wrap; /* HP printers */
white-space: -o-pre-wrap; /* Opera 7 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: pre-wrap; /* CSS 2.1 */
white-space: pre-line; /* CSS 3 (and 2.1 as well, actually)
*/
word-wrap: break-word; /* IE */
_white-space: pre; /* IE hack to re-specify in addition to
word-wrap */
}
Opera Dragonfly is Opera’s all-new set of developer tools, designed to give developers
a lightweight-but-powerful application that provides effective mechanisms for web
standards debugging and problem solving without slowing down the browser, and fits
in nicely with the development workflow. The current feature set is as follows: