Theres a couple of ways to do this. First of all, you can use display: inline-block;
or float: left;
to get the divs to sit side by side. They work different, so be sure to use the right one for your case.
Second, neither of those will work unless the containing div (a) is large enough to contain both of the divs on the same line. Or, you can use overflow: hidden;
on the containing div (a).
Edit:
I've updated your example: http://jsfiddle.net/uVqG6/11/
I had to use white-space: nowrap;
, since the inside divs were wrapping.
Here's another answer which also answers your question: CSS: how to stop text from taking up more than 1 line?
Remeber that using display: inline-block
basically treats the element as text, so most text-formatting css properties will apply to it.