I have the following code:
<div class="each_new_field">
<label class="labelified" for="whatver">First Name:</label>
<input type="text" class="input_classified mr_missing_field_checker" name="first_name" id="first_name">
</div>
<span class="field_check">First Name is required</span>
<br />
<div class="each_new_field">
<label class="labelified" for="whatever2">Last Name:</label>
<input type="text" name="last_name" id="a" class="input_classified">
</div>
.input_classified {
border: 1px solid #000;
color: #807C7C;
font-size: 12px;
margin-bottom: 10px;
padding: 5px 10px;
transition: background 0.5s ease-in-out 0s;
width: 260px;
}
.labelified {
color: #4C5157;
float: left;
font-family: "Open Sans",Arial,Helvetica,sans-serif;
font-size: 12px;
margin-top: 5px;
width: 160px;
}
.field_check {
color: #FF6600;
font-family: Arial;
font-size: 12px;
font-weight: bold;
margin-left: 160px;
}
With the current code, the span where it says First Name is required has space in between it and the input field above. I need the space between them to be of 3px. How can I move the span up naturally and then add a margin-top:3px; to it?