Width does not increase more than 283px BootStrap

1

Hello, I have a form where I have a TextArea . However%% is only Width . When it decreases, it decreases correctly, now when it increases, it does not work.

I set the size as 283px , however, when I inspect the code by Google, I see that I only have 400px .

Follow the form in question:

  <div class="container">
    <h4> Descriçao da Solicitação</h4>
    <div class="col-md-12">
        @Html.TextAreaFor(model => model.Descricao, new { @class = "form-control", style = "width:400px;", placeholder = "Digite a descrição de sua solicitação aqui" })
        @Html.ValidationMessageFor(model => model.sLotacao)
    </div>
    <br/><br/>
    <div class="form-group">
        <div>
            <input type="submit" value="Salvar" class="btn btn-success btn-lg" />
        </div>
    </div>
    <br />
    <h5> Requerido a concessão da vantagem assinada nos termos da legislação em vigor aplicável ao assunto.</h5>
</div>

How to proceed?

    
asked by anonymous 13.01.2015 / 11:35

1 answer

2

I reproduced your situation here in a test project and did not get the same error. Your form may be inheriting that width of some CSS or some jQuery function for example.

Anyway, the line below the code may end up helping because of the !important attribute which I inserted with the style declaration.

        @Html.TextAreaFor(model => model.Descricao, new { @class = "form-control", @style = "width:400px !important", @placeholder = "Digite a descrição de sua solicitação aqui" })
    
13.01.2015 / 18:26