body>
<div class="wrapper">
<form class="contact-form">
<div class="input-fields">
<label for="name">Full Name</label>
<input type="text" name="name" required="name" placeholder="Enter Your Name" class="input" >
<label for="email">Email</label>
<input type="email" name="email" required="email" placeholder="Enter An Email" class="input">
<label for="number">Phone Number</label>
<input type="number" name="number" required="number"
placeholder="Enter Your Phone Number"
class="input">
<textarea placeholder="additional comments">Additional Comments</textarea></div>
<input type="submit" value="submit" class="input-button">
</div>
</div>
</form>
</body>
</html>
body{
background-image: url(https://cutewallpaper.org/21/backgrounds-sky/PNG-Sky-Background-Transparent-Sky-Background.PNG-Images-.png);
background-size: cover;
background-repeat: no-repeat;
}
.contact-form{
max-width: 550px;
margin: 0 auto;
background:#011627ff;
padding: 30px;
border-radius: 5px;
display: flex;
box-shadow: 0 0 10px #011627ff;
}
.input-fields{
display: flex;
flex-direction: column;
margin-right: 4%;
}
.input-fields textarea{
width: 48%
}
.input-fields .input textarea{
margin: 10px 0;
background:transparent;
border: 0;
border-bottom: 2px solid;
padding: 10px;
width: 100%
background-color:#011627ff;
}
textarea{
height: 212px;
}
I’m trying position my submit button on the bottom right but currently using flexbox and the flex direction is set to column but now i want to position it the bottom right and resize so it looks like a regular submit button the form is also going to be responsive.