code {
background: #f4f4f4;
border: 1px solid #ddd;
border-left: 3px solid #f36d33;
color: #666;
page-break-inside: avoid;
font-family: monospace;
font-size: 15px;
line-height: 1.6;
margin-bottom: 1.6em;
max-width: 100%;
overflow: auto;
padding: 1em 1.5em;
display: block;
word-wrap: break-word;
}
The above has worked well for me. You may also need the block below if your spacing is messed up (some css templates suffer from this).
css, format, tagcode, px, ddd, font, monospace, height, margin, width, overflow, auto, padding, display, spacing, templates,