0
How could I do so that all icons could be left of each label? They are inside the 'i' element that is inside a div.
HTML
<h1 class="h3 mb-3 font-weight-normal">FALE CONOSCO</h1>
<p>Entre em contato pelo formulário abaixo </code></a></p>
</div>
<div class="form-label-group">
<i class="far fa-user-circle fa-2x"></i>
<input type="name" id="inputName" class="form-control" placeholder="Digite o seu Nome" required autofocus>
<label for="inputName">Nome</label>
</div>
<div class="form-label-group">
<i class="fas fa-at fa-2x"></i>
<input type="email" id="inputEmail" class="form-control" placeholder="Digite o seu email" required>
<label for="inputEmail">Email</label>
</div>
<div class="form-label-group">
<i class="fas fa-phone fa-2x"></i>
<input type="telefone" id="inputTelefone" class="form-control" placeholder="Digite o seu telefone" required>
<label for="inputTelefone">Telefone</label>
</div>
<div class="form-label-group">
<i class="fas fa-user-edit fa-2x"></i>
<input type="assunto" id="inputAssunto" class="form-control" placeholder="Digite o seu email" required>
<label for="inputEmail">Assunto</label>
</div>
<div class="form-group">
<i class="far fa-envelope fa-2x" ></i>
<label for="FormControlTextarea">Digite abaixo</label>
<textarea class="form-control" id="FormControlTextarea1" rows="10"></textarea>
</div>
CSS
.form-signin {
width: 100%;
max-width: 620px;
padding: 15px;
margin: auto;
}
.form-label-group {
position: relative;
margin-bottom: 1rem;
}
.form-label-group > input,
.form-label-group > label {
height: 3.125rem;
padding: .75rem;
}
.form-label-group > label {
position: absolute;
top: 0;
left: 0;
display: block;
width: 100%;
margin-bottom: 0;
line-height: 1.5;
color: #495057;
pointer-events: none;
cursor: text;
border: 1px solid transparent;
border-radius: .25rem;
transition: all .1s ease-in-out;
}
Amigo Do you code? Without it you can only answer in the kick...
– hugocsl