You are viewing the OptimizePress 2.0 Help center. Click here for OptimizePress 3.0 support.
  1. Home
  2. Knowledge Base
  3. Design Questions
  4. Pre Tags Do not Wrap in LiveEditor

Pre Tags Do not Wrap in LiveEditor

Unfortunately, as standard the “Pre” tag inside HTML/CSS is not designed to wrap like other classes. It is possible to make this happen to avoid the long string of text that you may see when the content does not wrap

If you are editing a LiveEditor page, you can go to Page Settings > Other Scripts > Custom CSS and add this:

pre{
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word;
}

This code will make the pre tag content wrap into the box.

If you need to use the pre HTML on another page you will need to add this on the CSS there or add it to your sitewide CSS inside OptimizePress > Dashboard > Global Settings > Custom CSS (Sitewide)

Was this article helpful?

Related Articles

Support Discontinued
As a discontinued platform, OptimizePress 2.0 is no longer officially supported. We recommend upgrading to our new OptimizePress suite. Click the button below to see our latest plans
Upgrade to OptimizePress 3.0