Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION Preventing word-wrapping within <code></code>?
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:

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

I added the following to style.css:
article section pre code embed{

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.


Users browsing this thread: 1 Guest(s)