Having trouble with text positioning relative to an inline-block div positioned to the right? Check out this jsfiddle for a demonstration.
Here's the demo HTML/CSS:
HTML
Select Date:
<div class="inputblock">
<input type="radio" name="dateselect" value="0" />Todays Date<br />
<input type="radio" name="dateselect" value="1" />Another Date
</div>
CSS
.inputblock {
display:inline-block;
background-color:#DDD;
}
Want the text next to 'Select Date' to be aligned with the top of the div on its right, not at the bottom. Any suggestions on how to achieve this without wrapping the label in a div?
Your advice on this issue would be greatly appreciated.