2
I’m training in creating Forms, and I’m making use of bootstrap in it, mainly 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 track the column size, thus leaving a blank space between the two fields. How do I make it grow? I tried applying css only to the field id and it didn’t change.
Below the code I’m using on 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'>
Nathan, maybe you can increase your div’s padding or margin. Anyway you’d better expose a more solid example of your code so the answers are better.
– Otávio Reis Perkles
Otávio, I added the part of code I’m using in Row, think it would be enough or put the form altogether?
– Natã Minetto