View

Cross-browser PRE tag

  1. pre {
  2.   white-space: pre-wrap; /* css-3 */
  3.   white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
  4.   white-space: -pre-wrap; /* Opera 4-6 */
  5.   white-space: -o-pre-wrap; /* Opera 7 */
  6.   word-wrap: break-word; /* Internet Explorer 5.5+ */
  7. }

You may also like