resizing codeblocks in webhelp

Posts: 3
Joined: Wed Oct 30, 2013 10:13 pm

resizing codeblocks in webhelp

Post by melster10 » Thu Oct 31, 2013 2:26 pm

Our codeblocks in webhelp were overruning the background color upon resizing the browser window. I saw in Oxygen's webhelp_topic.css file they added this entry to cause horizontal scroll bars for these elements, seemed like a good fix (I tried it in ours and it worked), but is it the best way?

Code: Select all

* Make the programlisting/codeblock stand-up.
pre {
padding: 0.5em;
background-color: #EEE;
overflow: auto;
max-height: 600px;
margin: 0.5em;

Posts: 6980
Joined: Fri Jul 09, 2004 5:18 pm

Re: resizing codeblocks in webhelp

Post by Radu » Thu Oct 31, 2013 2:47 pm


This is mostly an HTML-CSS related question and not related to Oxygen, maybe you should consider writing on a forum which has a larger user base like:

Radu Coravu
<oXygen/> XML Editor

Post Reply