0
Again I’m having trouble aligning items.
I would like them to align the 3 inputs in the same line with margin, but they go down.
#contato {
margin-top: 120px;
}
#contato form {
width: 100%
}
#contato form input {
width: 33%;
float: left;
box-sizing: content-box;
font: 400 18px 'Open Sans', sans-serif;
padding: 15px;
border-radius: 3px;
border: 1px solid #aaa;
margin: 10px;
}
#contato form textarea {
float: right;
width: 100%;
font: 400 18px 'Open Sans', sans-serif;
padding: 15px;
border-radius: 3px;
border: 1px solid #aaa;
}
<div class="container">
<div id="contato">
<h2>Fale conosco</h2>
<div class="trbar"></div>
<form action="">
<input type="text" name="nome" placeholder="Nome">
<input type="email" name="email" placeholder="Email">
<input type="text" name="fone" placeholder="Fone">
<textarea name="mensagem" placeholder="Digite sua mensagem..."></textarea>
</form>
</div>
</div>
+1. Flexbox is a good one, only I was out of time to make an example, kkkkk
– Wallace Maxters
KKK what you have to fix is the textarea, to stay in the size of the inputs, but there is a little calculation that I will see if I do here after kk but, for me, I would not put 3 inputs together, it is half lumped.
– Lucas de Carvalho