Sunday, 16. September 2007 15:32:03, by David Jobet


How to prevent the <pre>code</pre> of overflowing on the right, in the DOKUWIKI theme

In this theme, I've noticed that too long sentences were overflowing on the right part of the site when you preformat them.

To prevent this , edit your style.css in you theme/dokuwiki directory and seek this :

#content pre
 font-family : Courier;
 font-size : 12px;
 background-color: #dee7ec;
 overflow: auto;

Adding overflow: auto; will make scrollbars appear when the sentences are too long for the site display.

David : Wow, another post I've missed. Thank you, I'll add it to the default theme.