print title and contents on a custom tpl.php template?
A different approach would be to: 


Use the Block Class module - which will also allow you to add
more classes per block.
Use CSS to apply the same styling to all blocks in the sidebar:

.sidebar .block { border: 1px solid #ccc} 
.sidebar .block-title {color: blue}