Sunday, April 25, 2010

Back in Blogger

Left Blogger for Wordpress, and now back again.
Since having my own domain name, discovery: Wordpress won't allow you to map your custom domain to your WP (free) blog without paying first. Hurrah for Blogger for giving this service for free.

Now, I'm mentally spent after struggling, and finally coming up with a decent way to show code blocks in my blogs.

Good thing Blogger allows you to change and tweak the CSS innards - another thing that you'd have to pay for in WP, that you get for free in Blogger.

Here's my custom pre tag inserted:
.post pre {
  background: #D8D8D8; 
  padding: 1em 5px; 
  overflow: auto;
  margin: 7px 0; 
  width: 563px; 
  font: 1.1em Consolas, Courier New, sans-serif;
  color: #000000;
  font-size: 1.1em;
  font-weight: bold;
  border: 1px dashed #424242; 
}

Changing the overflow setting from hidden to auto gave the desired horizontal scroll bar for long text, much the same way I had in WP.
Fonts, padding, and some other pieces were borrowed from the original Titan theme in WP.

No comments:

Post a Comment