Posting code on tumblr

related: css , tumblr

This theme doesn’t seem to provide any nice option for quoting code blocks.  I overrode its default blockquote formatting with this:

blockquote {
    background-color: #efefff;
    font-size: 12px;
    font-family: “Droid Sans Mono”, monospace, sans-serif;
    font-style: normal;
    line-height: 14px;
    background-image: none;
    margin-left: 20px;
    padding-left: 5px;
    white-space: normal;
    word-wrap: break-word;

Edit : word-wrap is a nice addition.

And added the google web font in the HTML head:

<link href=‘’ rel=’stylesheet’ type=’text/css’>

It went… okay.