I've got three divs inside another div.
<div id="parentDiv" style="float:right;">
<div id="childDiv1" style="float:left;">
<b>Text1</b>
</div>
<div id="childDiv2" style="float:left;">
<img src="smiley.gif" alt="Smiley face" height="42" width="42">
</div>
<div id="childDiv3" style="float:left;">
<input type='checkbox' />
</div>
<div>
I need them to appear side-by-side, so I've set them as float:left
.
The trouble is that they appear like this...
...with the text vertically aligned at the top. I need it to be in the middle.
N.B. I've found a post about a very similar issue, but it seems that floating causes it to fail.