I'm trying to display a list of tags and inputs using JQuery Mobile so that the results look something like the settings on the iPhone, for example, the tag is left aligned and the input is right aligned on the same line. The only way I was able to do this was to use tables, which in my opinion are bad practice?
What will align CSS without tables be?
<ul data-role="listview" data-dividertheme="e">
<li data-role="list-divider">Seamless List (margin-less)</li>
<li>
<table style="width:100% ">
<tr>
<td style="width: 50%">
Foo1
</td>
<td style="width: 50%">
<input type="number" value="20000" style="text-align: right"
id="Foo1Input" />
</td>
</tr>
</table>
</li>
source
share