label { display: inline-block; /* makes the labels block elements but keep them inline */ width: 100px; /* you may need to adjust this based on the width of your widest label */ text-align: right; margin-right: 5px; /* provides a 5px space between the label and its input field */ } input { text-align: left; } .form-row { display: flex; justify-content: space-between; margin-bottom: 1em; } .form-field { display: flex; align-items: center; justify-content: left; width: 200px; } .content-container { max-width: 500px; margin: 20px 0px 0 20px; padding: 0 20px; }