I need help with styling a contact form that consists of 4 text input fields and 1 text area.
Here is the current code for the contact form:
<form class="contact_form">
<input type="text" placeholder="Name">
<input type="text" placeholder="Company">
<input type="email" placeholder="Email">
<input type="text" placeholder="Contact No">
<textarea placeholder="Your Enquiry"></textarea>
</form>
The CSS for the form currently looks like this:
.contact_form input {
display: block;
margin-bottom: 15px;
width: 44%;
}
textarea {
float: right;
}
Issue: When I apply a float:right to the textarea, it creates an undesirable space above it, as shown in this image: https://i.stack.imgur.com/82urB.png
Desired Output: The desired output should resemble this image: https://i.stack.imgur.com/98XNc.png