Tuesday, 18 October 2011

CSS For Code Blocks

The code blocks on this blog are formatted using the following CSS.
.code { border:1px solid #E1E1E1; color:#333344; background:#FAFAFA; font-family:monospace; overflow:auto; font-size:11px; padding:0.5em; white-space: pre-wrap; /* css-3 */ white-space: -moz-pre-wrap !important; white-space: -pre-wrap; /* Opera 4-6 */ white-space: -o-pre-wrap; /* Opera 7 */ word-wrap: break-word; /* Internet Explorer 5.5+ */ }

No comments:

Post a Comment