I'm training in form creation, and I'm making bootstrap use on it, mostly from <div class="row">
and <div class="col-md-4">
. However, when I put only two elements on the same line, respectively e
'the input field of the first item did not follow the size of the column, thus leaving a blank space between the two fields. How do I make it increase? I tried css only in the id of the field and it did not result in change.
Below the code I'm using in row:
<div class="row">
<div class="col-md-8">
<div class="form-group">
<label>Nome Completo</label><br>
<input id="fullname" type="text">
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label>Idade</label><br>
<input id="age" type="number">
</div>
</div>
</div>
And links added externally:
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700' rel='stylesheet' type='text/css'>
<link href='custom.css' rel='stylesheet' type='text/css'>