I have a html table column defined like this:
<td>
<form:checkbox cssClass="check" path="somePath" id="somePath" onclick="someFn(this);" />
<form:label path="somePath" for="somePath"><spring:message code="label.someLabel" /></form:label>
<div>11</div>
</td>
So there is a checkbox, a label and a div element with text of ’11’.
Now the 11 shows up below the checkbox. But i want it to show to the right of the label.
Why is this happening?
divis a block element, consider usingspan(or other inline element) or styling div asdisplay:inline;http://en.wikipedia.org/wiki/Span_and_div#Differences_and_default_behavior