There are many questions about formatting forms so that labels align, and almost all answers that offer a clean CSS solution (as opposed to using a table) provide a fixed width for the label element.
But isn't this a mix of content and presentation? To select the desired width, you basically need to see how big your longest label is, and try the pixel width value until it โfitsโ. This means that if you change your labels, you also need to change your CSS.
html css
Matteo iva
source share