It looks like the width property isn't set on the ubbcode-body property. And after checking, that's it:
.ubbcode-block {
width: 210px;
margin: 5px 2em;
background: #FFF;
border: 1px solid #AAAA11;
padding: 0px;
border-spacing: 0px;
}
.ubbcode-header {
display: block;
font-weight: bold;
padding: 4px;
border-bottom: 1px solid #AAAA11;
}
.ubbcode-body {
width: 500px;
margin: 4px;
overflow: auto;
font-size: 10pt;
display: block;
}
ubbcode-block is set to 210, but ubbcode-body is set to 500, so it's wider than the actual code block.