Tuesday, December 2, 2008

Wrapping pre tags

Ok, here's a quickie... my previous post had the problem of long code lines. I.e. the code was in a <pre> tag but most of it was getting cut off since the column was too narrow.

Found this after a couple mins of searching...
pre {
white-space: pre-wrap;
white-space: -moz-pre-wrap !important;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
word-wrap: break-word;
}

No comments: