Centering an HTML element horizontally with CSS, be it a “div” or a “form”, has been always easy for web developers at least for the past 10 years or so. The Bootstrap datepicker is tied to a standard form input field. Topic: Bootstrap / Sass Prev|Next Answer: Use the mx-auto Class. This is the final result: To achieve this result, we need all the parent elements of our form, “div-s”, “body” and “html” tags, to have a height of 100%. Subscribe to the Azmind Newsletter and I’ll update you when I release a Get the lowdown on the key pieces of Bootstrap's infrastructure, including our approach to better, faster, stronger web development. Generally, the menu is aligned to the left or right side of the top navigation bar. HTML tag “