I am currently in the process of setting up a contact form and my goal is to have this form centered on my webpage. However, I do not want it to take up the full width (col-md-12) of the page. Instead, I would like it to be the width of a col-md-6 located at the center of the page. The issue I am facing is that when I select col-md-6, the form appears on the left side of the page. How can I properly center it?
Here is the HTML code:
<div class="container">
<div class="row">
<div class="col-md">
<form action="contact" method="post"> {{--action = where the data must go--}}
<div class="form-group">
<label for="name">Name:</label>
<input type="text" class="form-control" id="name" placeholder="Your Name">
</div>
<div class="form-group">
<label for="email">Email address:</label>
<input type="email" class="form-control" id="email" placeholder="<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="325c535f5772574a535f425e571c515d5f">[email protected]</a>">
</div>
<div class="form-group">
<label for="mobile">Mobile Nr:</label>
<input type="email" class="form-control" id="mobile" placeholder="Mobile Nr should start with 08, 07 or 06">
</div>
<div class="form-group">
<label for="message">Your message...</label>
<textarea class="form-control" id="message" rows="3"></textarea>
</div>
</form>
</div>
</div>
</div>