Pages

3/20/2011

Code in text box with scroll bars

The following is the CSS used in my template to quote code with <PRE> <CODE>:

pre { 
 font: 100% courier,monospace; 
 width: 100%;
 overflow-x: auto;
 max-height: 400px
 border: 1px dotted #281;
 border-left: none;
 background-color: #fff;
 padding-bottom: 16px;
 font-size: 1em;
 word-wrap: normal;
}

code { 
 font: 100% courier,monospace; 
}

No comments: