Good morning! I'm having problems with the placement of a button in CSS. When the form has not yet applied any validation, it remains in the correct position, however when the validations are applied (the has-error
class is added to the divs and a label appears under the field) it scrolls down, as in the image below.
WhenIinspecttheelements,Iseethatthereisapaddingonthebutton,andIbelievethatremovingpadding-top
wouldsolveit,butthereisnotevenawaytoedititinthebrowsertoview.
EDIT - Code below I'm using Bootstrap 3
<div class="form-group pesquisa">
<div class="col-lg-12">
<asp:Label
ID="lblCliente"
AssociatedControlID="txtPesquisaCliente"
ClientIDMode="Static"
Text="Cliente"
CssClass="col-lg-2 control-label"
runat="server">
</asp:Label>
</div>
<div class="col-lg-9">
<div class="input-group">
<asp:TextBox
ID="txtPesquisaCliente"
ClientIDMode="Static"
CssClass="form-control required"
runat="server">
</asp:TextBox>
<div class="input-group-btn">
<button id="btnPesquisarCliente" class="btn btn-default" type="submit"><span class="glyphicon glyphicon-search"></span></button>
</div>
</div>
</div>
</div>