I tried targeting the the label for the text inputs, but it still doesn't work. One markup-free solution to ensuring a parent contains any of its floated children is to also float the parent, so thats what well do: left-aligned-labels.css (excerpt) Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more. }. Unfortunately I cannot test using all of them. :). For this article, we are using internal stylesheet which is done under the style tag. How Intuit democratizes AI development across teams through reusability. form input, form select {max-width: 70 %; display: inline-block;} form label {width: 25 %;} Posting to the forum is only allowed for members with active accounts. Here, well show how its possible to create right-aligned and left-aligned