Blog Style Update

My good friend John Blackman reminded me that my embedded code here was looking pretty bad so I made a few changes to improve the layout by increasing the size and adding wrapping. The wrapping is a bit tricky but the following bit of CSS does the trick for pre tags:

pre code {
  white-space: pre-wrap;       /* css-3 */
  white-space: -moz-pre-wrap !important;  /* Mozilla, since 1999 */
  white-space: -pre-wrap;      /* Opera 4-6 */
  white-space: -o-pre-wrap;    /* Opera 7 */
  word-wrap: break-word;       /* Internet Explorer 5.5+ */
}

Found via this bog.

I also took a moment to increase the reading area width by 100px and adjust some margins.

This entry was posted in blog. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>