GetSimple Support Forum
QUESTION Preventing word-wrapping within <code></code>? - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: QUESTION Preventing word-wrapping within <code></code>? (/showthread.php?tid=9914)



Preventing word-wrapping within <code></code>? - leestwise - 2017-08-05

I cannot figure out how to prevent word-wrapping in the Innovation theme of GS v3.3.13 when I create a page with the following information in the source editor:

Code:
<pre><code><embed src="./data/uploads/filename.txt"></embed></code></pre>

I added the following to style.css:
Code:
article section pre code embed{
   width:590px;
   height:700px;
}

This provides a nice-sized window for viewing the code. I get a vertical scrollbar when the lines do not fit in the window and sometimes get a horizontal scrollbar. However, for files with lines longer than a certain length, the text is wrapped, whether or not there is a horizontal scrollbar.

...lee