Form simple
<section> <div class="container py-4"> <div class="row"> <div class="col-lg-7 mx-auto d-flex justify-content-center flex-column"> <h3 class="text-center">Contact us</h3> <form role="form" id="contact-form" method="post" autocomplete="off"> <div class="card-body"> <div class="row"> <div class="col-md-6"> <label>First Name</label> <div class="input-group mb-4"> <input class="form-control" placeholder="" aria-label="First Name..." type="text" > </div> </div> <div class="col-md-6 ps-2"> <label>Last Name</label> <div class="input-group"> <input type="text" class="form-control" placeholder="" aria-label="Last Name..." > </div> </div> </div> <div class="mb-4"> <label>Email Address</label> <div class="input-group"> <input type="email" class="form-control" placeholder="" > </div> </div> <div class="form-group mb-4"> <label>Your message</label> <textarea name="message" class="form-control" id="message" rows="4"></textarea> </div> <div class="row"> <div class="col-md-12"> <div class="form-check form-switch mb-4"> <input class="form-check-input" type="checkbox" id="flexSwitchCheckDefault" checked=""> <label class="form-check-label" for="flexSwitchCheckDefault">I agree to the <a href="javascript:;" class="text-dark"><u>Terms and Conditions</u></a>.</label> </div> </div> <div class="col-md-12"> <button type="submit" class="btn bg-gradient-dark w-100">Send Message</button> </div> </div> </div> </form> </div> </div> </div> </section>
Form placeholder
<section> <div class="container py-4"> <div class="row"> <div class="col-lg-7 mx-auto d-flex justify-content-center flex-column"> <div class="card d-flex justify-content-center p-4 shadow-lg"> <div class="text-center"> <h3 class="text-gradient text-primary">Contact us</h3> <p class="mb-0"> For further questions, including partnership opportunities, please email hello@creative-tim.com or contact using our contact form. </p> </div> <div class="card card-plain"> <form role="form" id="contact-form" method="post" autocomplete="off"> <div class="card-body pb-2"> <div class="row"> <div class="col-md-6"> <label>Full Name</label> <div class="input-group mb-4"> <input class="form-control" placeholder="Full Name" aria-label="Full Name" type="text" > </div> </div> <div class="col-md-6 ps-md-2"> <label>Email</label> <div class="input-group"> <input type="email" class="form-control" placeholder="hello@creative-tim.com" > </div> </div> </div> <div class="form-group mb-0 mt-md-0 mt-4"> <label>How can we help you?</label> <textarea name="message" class="form-control" id="message" rows="6" placeholder="Describe your problem in at least 250 characters"></textarea> </div> <div class="row"> <div class="col-md-12 text-center"> <button type="submit" class="btn bg-gradient-primary mt-3 mb-0">Send Message</button> </div> </div> </div> </form> </div> </div> </div> </div> </div> </section>
Form context
<div class="page-header"> <div class="position-absolute fixed-top ms-auto w-50 h-100 rounded-3 z-index-0 d-none d-sm-none d-md-block me-n4" style="background-image: url(../../assets/img/ivancik.jpg); background-size: cover;"> </div> <div class="container py-5"> <div class="row"> <div class="col-lg-7 d-flex justify-content-center flex-column"> <div class="card card-body d-flex justify-content-center shadow-lg p-5 blur align-items-center"> <h3 class="text-center">Contact us</h3> <form role="form" id="contact-form" method="post" autocomplete="off"> <div class="card-body"> <div class="row"> <div class="col-md-6"> <label>First Name</label> <div class="input-group mb-4"> <input class="form-control" placeholder="" aria-label="First Name..." type="text"> </div> </div> <div class="col-md-6 ps-2"> <label>Last Name</label> <div class="input-group"> <input type="text" class="form-control" placeholder="" aria-label="Last Name..."> </div> </div> </div> <div class="mb-4"> <label>Email Address</label> <div class="input-group"> <input type="email" class="form-control" placeholder=""> </div> </div> <div class="form-group mb-4"> <label>Your message</label> <textarea name="message" class="form-control" id="message" rows="4"></textarea> </div> <div class="row"> <div class="col-md-12"> <div class="form-check form-switch mb-4"> <input class="form-check-input" type="checkbox" id="flexSwitchCheckDefault" checked=""> <label class="form-check-label" for="flexSwitchCheckDefault">I agree to the <a href="javascript:;" class="text-dark"><u>Terms and Conditions</u></a>.</label> </div> </div> <div class="col-md-12"> <button type="submit" class="btn bg-gradient-dark w-100">Send Message</button> </div> </div> </div> </form> </div> </div> </div> </div> </div>