1
I created a form using bootstrap.css
on w3schools.com/bootstrap/tryit.Asp with the following code:
<div class="container">
<form role="form">
<fieldset>
<div class="row">
<div class="col-md-1 col-md-offset-1 no-padding-left">
<div class="form-group">
<label>Código</label>
<input type="text" name="email" id="email" value="" class="form-control" />
</div>
</div>
<div class="col-md-2 no-padding-left">
<div class="form-group">
<label>CNPJ</label>
<input type="text" name="email" id="email" value="" class="form-control" />
</div>
</div>
<div class="col-md-3 no-padding-left">
<div class="form-group">
<label>Nome Comercial</label>
<input type="text" name="phone" id="phone" value="" class="form-control" />
</div>
</div>
</div>
<div class="row">
<div class="col-md-6 col-md-offset-1 no-padding-left">
<div class="form-group">
<label>Razão Social</label>
<input type="text" name="email" id="email" value="" class="form-control" />
</div>
</div>
</div>
<div class="row">
<div class="col-md-5 col-md-offset-1 no-padding-left">
<div class="form-group">
<label>Endereço</label>
<input type="text" name="email" id="email" value="" class="form-control" />
</div>
</div>
<div class="col-md-1 no-padding-left">
<div class="form-group">
<label>Numero</label>
<input type="text" name="email" id="email" value="" class="form-control" />
</div>
</div>
</div>
</fieldset>
</form>
</div>
There it works correctly and the form stays as I imagined.
But then I copied this code exactly as it is(I still haven’t gotten to the part of merging with the codes @Html
from RAZOR) and it does not render legal, but the SOCIAL REASON line, which should occupy the entire width of the FORM, does not happen independently if I put 6, 7, 8... or 12.
The form looks like this:
What’s keeping it from getting the right width?
Thank you
Felipe changed all the Md to Xs, but it didn’t work. Presented the same problem, with the difference that the form now was not rendered in the middle of the screen but the left.
– Reginaldo Rigo
Weird guy using exactly his html vide example above worked perfectly, testing by removing all the.css files and leaving only the bootstrap
– Felipe Assunção