Difference between revisions of "User talk:Drakkos"

From Discworld MUD Wiki
Jump to: navigation, search
(request css change to make pre tags wrap long lines)
Line 24: Line 24:
  
 
Thanks. [[User:Frazyl|Frazyl]] 01:16, 31 March 2010 (UTC)
 
Thanks. [[User:Frazyl|Frazyl]] 01:16, 31 March 2010 (UTC)
 +
 +
<pre>
 +
Sqqqqqqqqq qqq  qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq kjda ljsdf lfj lsfjs ldfjlskjflskdjf lfjlsdfjlsdjf lsdfj selfj slkfj slj sdlj asdfsd as s a ASAS
 +
</pre>

Revision as of 05:08, 31 March 2010

meeeeeeeeeeeeeow


Greetings!

Sorry to bother you, but I think a simple change in css might make quoting things from the mud much easier, namely by making <pre> tags wrap long lines and I think maybe only you can change the css file(s) for the wiki.

This is in response to some complaints raised by visitors about lack of wrapping lines in <pre> tags that results in horizontal scrolling and breaks in the layout.

Unfortunately, other options like using the template:prebox doesn't preserve white space or newlines and requires adding lots of <br> tags which change the space between lines. (See other options considered here and here.)

I'm wondering if it would be possible to add the following lines to the existing lines in the css file(s) in the pre section:

pre {
 overflow-x: auto; /* Use horizontal scroller if needed; for Firefox 2, not needed in Firefox 3 */
 white-space: pre-wrap; /* css-3 */
 white-space: -moz-pre-wrap !important; /* 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+ */
}

I think this would make it work like people expect, preserve white space and newlines but wrap if it doesn't fit in the browser's window. It seems to work in local tests.

Thanks. Frazyl 01:16, 31 March 2010 (UTC)

Sqqqqqqqqq qqq  qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq kjda ljsdf lfj lsfjs ldfjlskjflskdjf lfjlsdfjlsdjf lsdfj selfj slkfj slj sdlj asdfsd as s a ASAS