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


Messages In This Thread
Preventing word-wrapping within <code></code>? - by leestwise - 2017-08-05, 03:50:23



Users browsing this thread: 2 Guest(s)