Despite trying various solutions, nothing seems to be working for me. I attempted using width:200px, but the issue persists. Since my form was quite outdated, I decided to switch to a bootstrap version. However, while others are able to resolve the issue with input-group, I still encounter a significantly larger difference.
I'll leave the form here in hopes that something will work for me.
.form-control{
margin-top:10px;
margin-bottom: 10px;
}
label{
color:#03A0D3;
font-size: 15px;
margin-right:10px;
}
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<form id="updatesettings" method="post">
<label for="link">WEBSITE LINK</label>
<div class="input-group">
<input type="text" name="link" class="form-control" placeholder="LINK">
<span class="input-group-addon"><span class="fa fa-check green"></span></span>
</div>
<label for="email">E-MAIL</label>
<div class="input-group">
<input type="text" name="email" class="form-control" placeholder="E-MAIL">
<span class="input-group-addon"><i class="fa fa-check green"></i></span>
</div>
<div class="btn-group">
<a class="btn dropdown-toggle btn-select" data-toggle="dropdown" href="#">English><span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#"><span class="flag flag-usa flag-1x"></span> English</a></li>
<li><a href="#"><span class="flag flag-rou flag-1x"></span> Romana</a></li>
</ul>
</div>
<button type="submit" class="btn btn-primary">Save</button>
</form>
If I attempt to add some margin between the inputs and other elements of the form, it does not seem to work as expected. I would like to maintain the labels close to the inputs with a top margin of 10px. https://i.sstatic.net/GfmIj.png