It’s very glitchy if you enter a long string of short code directly into your wordpress page. However if you switch the view to “text” instead of “visual” you can then clean up your string. It seems wordpress adds code to the line for you if it spreads out onto extra lines.
When I saw this it was an easy fix and everything worked ok.
If there is a div tag, it will be displayed a block element and therefore will not remain on the same line. It can be changed in your css, without removing the div tag.
Visit http://www.sitepoint.com/web-foundations/display-css-property/
They have a list of all the current css properties. You want to customize the display property, so it no longer displays as a block level element. Your answer will probably look something like this on your stylesheet.
{
display: inline;
}
or
{
display: inline-block;
}