Please have a look at this fiddle - http://jsfiddle.net/Z27hC/
var container = document.createElement(\'span\'); container.style.display = \'inline-block\'; cont
use the dsiplay 'block' of cell
cell.style.display = 'block';
and
cell.style.float= 'left';
to align left if you want to align