I crafted the following :
<ul>
<li>
<span class="filter">
<label>Name: </label><input type="text"/>
</span>
</li>
<li>
<span class="filter">
<label>Id: </label><input type="text"/>
</span>
</li>
</ul>
using this CSS :
span.filter{
width: 50px;
}
input{
text-align: right;
}
label{
text-align: left;
}
ul{
list-style: none;
}
However, despite my efforts, the output in this fiddle does not match expectations. Some individuals recommend incorporating floats, but why is this approach ineffective?