I want the border to align with the box , what is wrong with my code ? Any help would be appreciated .
.contact {
background-color: rgb(233, 230, 227);
height: 200px;
}
.contact h3 {
text-align: center;
}
.form {
text-align: center;
max-width: 344px;
width: 100%;
border: 1px solid grey;
transform: translatex(450px);
}
.form input {
width: 100%;
padding: 7px;
/* font-size: 20px;*/
border-radius: 5px;
margin-top: 30px;
}
<section class="contact">
<h3>
Contact Us
</h3>
<div class="form">
<input type="text" class="name" id="name">
</div>
</section>