Working on a asp.net MVC 5 projec and to using a table to display several controls.
On the second row I want the textbox to span 5 columns, showing a long text on it. But textbox display as nomal width, cannot span it or make it wider.
I have try with style="width: 100%;" and with "< span >", not working....
try remove CSS reference (class="form-control"), same behavior
<table class="table table-striped table-hover ">
<tr>
<th>@Html.LabelFor(model => model.clienteID)</th>
<th>
@Html.DropDownListFor(model => model.clienteID, null, "-- Seleccione un Cliente --", new { @id = "cliente", @class = "form-control" })
@Html.ValidationMessageFor(model => model.clienteID)
</th>
<th>@Html.LabelFor(model => model.cliente.telefonoCelular)</th>
<th><input type="text" id="clienteCelular" readonly="readonly" class="form-control"></th>
<th>@Html.LabelFor(model => model.cliente.telefonoOficina)</th>
<th><input type="text" id="clienteTOficina" readonly="readonly" class="form-control"></th>
</tr>
<tr>
<td>@Html.LabelFor(model => model.cliente.direccion)</td>
<td colspan=5>
<input type="text" style="max-width: 100%;"id="clienteDireccion" readonly="readonly" class="form-control">
</td>
</tr>
As show on the capture, "Direccion" Textbox don't span full table row:
Finally I was able to fixed adding: style="max-width: 100%;"
I notice using google inspect element that max-width: 280px; was added as part of bootswatch CSS.