If you cannot affect how the DIV is generated - you can apply external inline style to it e.g.
li > div {
display:inline-block;
}
Demo: http://jsfiddle.net/KCdg3/5/
This will automatically makes any DIV inside of LI an inline element - without affecting your generated HTML structure. You can fine-tune the CSS selector as needed.