(No screenshot available)
| Author | David McRitchie |
|---|---|
| Created | Jul 17, 2009 |
| Updated | Jul 18, 2009 |
| Installs (this week) | 3 |
| Installs (total) | 636 |
The primary use of the
tag in HTML is to display code or other material where the character and line spacing is wanted as written with a fixed font (non-proportional) and will not flow from one line to another. Sometimes there is not enough space to properly display text and it will fall off of the edge of the page or overlap with something to the right. There is a special white-space attribute to handle this ("pre-wrap") but it is not the default by any means.
Wrap long lines intags with
PRE {white-space: pre-wrap !important;}
A variant is Wrap PRE text (http and https only) (19596).
If you always want to do this you can put this code into your userChrome.css
If you want the ability to toggle this on and off easier than through Stylish, there is an extension "Toggle Word Wrap"; however, the keyboard shortcut Ctrl+Shift+O conflicts with that of the "Open Long URL" extension, which can be resolved with the "keyconfig" extension.
Additional Infomation:
Paragraphs, Lines
More Info
Feedback
Discussions
No discussions posted yet. Be the first to ask a question or review this style.