0
I can’t align a @Html.Textboxfor of the request I’ve tried in several ways.
<!--NF-->
<div class="col-md-2">
<p><strong> NF</strong></p>
<p> @Html.TextBoxFor(Model => Model.Identificacao.Numero,
new { @class = "form-control", @readonly = "readonly",
@style = "width:110px" })
</p>
</div>
<!--Serie-->
<div class="col-md-1 ">
<p><strong>Série</strong></p>
<p>@Html.TextBoxFor(Model => Model.Identificacao.serie,
new { @class = "form-control ", @readonly = "readonly",
@style = "width:50px" })
</p>
</div>
<!--Chave de Acesso-->
<div class="col-md-5 ">
<p><strong>Chave de Acesso</strong></p>
@Html.TextBoxFor(Model => Model.Chave,
new { @class = "form-control ", @readonly = "readonly" })
</div>
<!--Pedido-->
<div class="col-md-3 text-right caixa-direita" style="text-align:right">
@if (Model.Compra == null)
{
<p><strong>Pedido</strong></p>
<p class="caixa-direita">
@Html.TextBoxFor(Model => Model.Compra.Pedido,
new { @class = "form-control", @style = "width:105px;
text-align:right;" })
</p>
}
else
{
<p><strong>Pedido</strong></p>
<p class="caixa-direita" >
@Html.TextBoxFor(Model => Model.Compra.Pedido,
new { @class = "form-control ", @readonly = "readonly",
@style = "width:105px; text-align:right;" })
</p>
}
</div>
<style>
.caixa-direita input{ text-align:right;}
.caixa-direita input text {text-align:right;}
.caixa-direita {text-align:right;}
</style>