I have two inputs on the same row and I want both input fields to fill the parent container (a "col-sm-10" and "col-sm-2", respectively) width-wise. If I just leave it this way:
<div class="col-sm-10">
<label for="inputA">Cliente:</label>
<input class="form-control" id="inputA" />
</div>
<div class="col-sm-2">
<label for="inputB">NIF:</label>
<input class="form-control" id="inputB" />
</div>
However, If I add certain attributes to the input (such as type="text" OR runat="server"(I need this to process the input programmatically)), the width of the first input changes and it no longer fills the parent container:
<div class="col-sm-10">
<label for="inputA">Cliente:</label>
<input class="form-control" id="inputA" type="text" runat="server"/>
</div>
<div class="col-sm-2">
<label for="inputB">NIF:</label>
<input class="form-control" id="inputB" runat="server"/>
</div>
The most amazing thing is that if I change type="text" to type="number" it works. See the image, since I can't post more than 2 links: https://i.sstatic.net/aN3us.png
I tried using the control with CssClass="form-control" and the same behavior happens.