1
The problem is that I have a button that sits above a field input
it should be on the left side. So, instead of showing like this:
He shows himself so:
Code
The code of the button in question is:
<a href="#" class="icone-excluir"></a>
The code section you belong to is:
</div>
<div class="row">
<a href="#" class="icone-excluir"></a>
</div>
<div class="form-group row">
<div class="col-xs-2">
<label class="small" for="CPFSocio">CPF</label>
<input type="text" class="form-control text-center" id="CPFSocio" value="956.555.888-04"/>
</div>
<div class="col-xs-3">
<label class="small" for="NomeSocio">Nome</label>
<input type="text" class="form-control text-center" id="NomeSocio" value="RONALDO NEVES SANTOS"/>
</div>
<div class="col-xs-2">
<label class="small" for="TelefoneSocio">Telefone</label>
<input type="text" class="form-control text-center" id="TelefoneSocio" value="31 2222-2522"/>
</div>
<div class="col-xs-2">
<label class="small" for="CelularSocio">Celular</label>
<input type="text" class="form-control text-center" id="CelularSocio" value="31 99999-8999"/>
</div>
<div class="col-xs-3">
<label class="small" for="EmailSocio">E-mail</label>
<input type="text" class="form-control text-center" id="EmailSocio" value="[email protected]"/>
</div>
<div class="form-group row">
</div>
</div>
I’m starting now, so I don’t know how to play CSS and Bootstrap. If you can explain the solution within the HTML, I thank you.
EDIT: I was able to solve it this way:
<div class="col-xs-1" style="width: 2%; !important ">
<a href="#" class="icone-excluir"></a>
</div>
Since I didn’t know how to change the CSS, I changed the html and declared the style
as Important to overwrite css in this case. :)
The same would be true if you follow the Official documentation of the BS3 Form, https://getbootstrap.com/docs/3.4/css/#Forms-inline only that as you have many fields in the same line will end up breaking the line, the ideal would be maybe you split these inputs into two form-groups or something like that... Or you can do it on the basis of the way suggested in the answers (not that they are wrong, but this is a problem of using frameworks, we almost always need these ways to make it work)
– hugocsl
Are you using Bootstrap 3? How wide is this icon?
– Sam