Make Firefox wrap html pre tags
Written by Guillermo Garron
Date: 2015-03-15 19:00:32 00:00
How to make Firefox properly wrap html pre tags?
For some reason I still do not know Firefox does not wrap html pre tags properly as Safari, Chrome and IE does.
To make it work as the above mentioned browsers, add this lines to your css file.
pre {
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
}
That should be it.