What is the reason for the misalignment of
glyphicon-warning-sign form-control-feedback
vertically in the code below after applying font-size: 20px;
to the label
?
<div class="container">
<div class="content align-left contact">
<p>Hello World!</p>
<form action="#" method="post" id="contact-form">
<div class="form-group has-error has-feedback">
<label for="inputName">Your Name (required)</label>
<input type="text" name="name" class="form-control" id="input-name" placeholder="Name">
<span class="glyphicon glyphicon-warning-sign form-control-feedback" aria-hidden="true"></span>
<span id="inputWarning2Status">(warning)</span>
</div>
</form>
</div>
</div>
CSS:
.has-feedback .form-control-feedback {
border: 1px solid black;
}
.content {
padding: 100px;
}
.content p {
font-size: 18px;
letter-spacing: 1px;
line-height: 30px;
padding-bottom: 20px;
}
.content.contact label {
font-weight: 700;
}
.content.contact label {
font-size: 20px; //this is where the issue arises - but why!???
}
Result:
https://i.stack.imgur.com/QziwU.png
The warning text is not red either.
Any suggestions or solutions?
Check it out at jsfiddle, although I couldn't find bootstrap as the load option!
EDIT:
You can observe the bug at bootply