2
I want to put the contact form with the inputs
on the left and the textarea
on the right side as in the image below, I can do the expected result with the float:left
but so my layout ends up breaking.
How to achieve the expected result without the float
?
Follow the code I used:
.contact{
float: left;
width: 49.5%;
}
input, textarea{
border: 1px solid lightblue;
width: 100%;
}
textarea{
height: 65px;
resize: none;
}
.left{
margin-right: .5%;
}
.right{
margin-left: .5%;
}
<div class="contact left">
<input type="text" name="nome" autocomplete="name" placeholder="Nome" required>
<input type="text" name="empresa" autocomplete="organization" placeholder="Empresa">
<input type="text" name="telefone" autocomplete="tel-national" placeholder="Telefone" required>
</div>
<div class="contact right">
<textarea name="mensagem" placeholder="Mensagem" required></textarea> </div>
Good, how I maintain CSS and remove this bottom scroll bar?
– Laércio Lopes
@Laérciolopes edited the answer, look at OBS
– hugocsl
Perfect, I’ll accept as soon as I allow it. Thank you.
– Laércio Lopes
If you want to put margin on the right and left use your class . contact that looks good also.
– hugocsl
@Young Laérciolopes Vlw!
– hugocsl