I think using
display: inline-block;
would work, however I'm not sure about the browser compatibility.
Another solution would be to wrap your div in another div (if you want to maintain the block behavior):
HTML:
<div>
<div class="yourdiv">
content
</div>
</div>
CSS:
.yourdiv
{
display: inline;
}