It means if you click on Start date it focuses the field, but if you click on the date format text, it doesnt. Example 1: Taking input in two consecutive fields. once you have done this, the easiest way to have them in the same line is to use display:flex and flex-wrap: nowrap on the parent div. because you need extra wrapping elements or a different structure), you can roughly get the same semantics by assigning role="group" to a div that wraps the inputs, and using aria-labelledby to assign it a label from another element. Get certifiedby completinga course today! If you make sure that the legend is the very first child of the fieldset, you dont need additional aria- attributes to create the association between the inputs and the legend. However it is possible to do some individual alignment in order to separate an item or a group of items from others by using auto margins along with flexbox. So the checkboxes are aligned according to the label. this problem: There are many ways to center an element vertically in CSS. flex-start will be where the start of a sentence of text would begin. This means the form will grow to encompass all the fieldset elements, and were back in the normal flow of the document. /*Item 10 Description*/ #li_10 label.description { width: 85%; float: right; } /*Item 10 Input Box*/ #li_10 input.small { width:10%; float: left; } /*Item . Method 1: By making the position of checkbox relative, set the vertical-align to the middle can align the checkboxes and their labels. How to set placeholder value for input type date in HTML 5 ? If you change flex-direction to one of the reverse values, then they will lay themselves out from the end axis and in the reverse order to the way words are written in the language of your document. Why do small African island nations perform better than African continental nations, considering democracy and human development? How to Control the Width of the