Monospaced code/command line snippets with wordpress

After messing around with various <code> and <pre> tags in wordpress I finally just took at look at the source and found the CSSs it was calling and added this to one of them:

pre { font-size: small;
      border:1px solid #ccc; }

Gives it that nice box around the code and keeps everything monospaced.

Leave a comment

0 Comments.

Leave a Reply


[ Ctrl + Enter ]