Below is the HTML code:
<fieldset><legend>Callout Report</legend>
<table>
<tr><td>Start Time</td><td>
<input type="text" id="startTimeUI" autocomplete="off" />
</td></tr>
<tr><td>Callout ID</td><td>
<input type="text" id="id" name="id" size="10" autocomplete="off" maxlength="10" />
<span class="calloutTitle">This can be a longer text which takes more than just one single line.</span>
</td></tr>
</table>
</fieldset>
The current output looks like this:
https://i.stack.imgur.com/NDf7U.png
I am aiming for an output similar to this:
https://i.stack.imgur.com/ajrks.png
I have considered nesting a <table>
element inside <td>
, but I am exploring CSS solutions. Additionally, I'm having difficulty applying vertical-align:middle;
to the input field.
Link to JSFiddle: https://jsfiddle.net/Wernfried/3ph32L7a/8/
The page is dynamically generated using jQuery, so utilizing $("#id").width()
could be a viable option if needed.