Despite searching on various platforms, I have not found a satisfactory solution to my issue.
To demonstrate the problem with using a table, I have attached a screenshot:
The bottom two rows are structured as tr
and td
within a table. Though the alignment of labels and textfields is perfect, attempting to style a well
class around these two rows would result in failure. This is because tables do not allow the presence of a div
; they only accept tr
and td
.
To address this limitation, I decided to separate the first two rows from the table and convert them into pure divs. The outcome can be seen in the grey well above.
<div class='well'>
<div>
<div class='block_inline'> ... </div>
<div class='block_inline'> ... </div>
</div>
<div>
<div class='block_inline'> ... </div>
<div class='block_inline'> ... </div>
</div>
</div>
Although the well
class now encompasses the two rows beautifully, the alignment has been disrupted. How can I maintain centering while ensuring vertical alignment of the text-fields?