perlorg / cnntp

www.nntp.perl.org site
5 stars 4 forks source link

Add word-wrap to <pre>-tagged text #2

Closed jmacdotorg closed 4 years ago

jmacdotorg commented 4 years ago

This adds some CSS directives that will wrap text in <pre> blocks -- and thus all the body text of displayed NNTP messages.

The proposed CSS code is copied from this article: https://www.w3docs.com/snippets/css/how-to-wrap-text-in-a-pre-tag-with-css.html

I have tested this using locally loaded stylesheets, and I find that this vastly improves readability of messages in a typical modern web browser. Without it, one must manually scroll the view left and right in order to read any paragraphs longer than one screen-width.