Over a million developers have joined DZone.

Giving Form Labels A Width

DZone's Guide to

Giving Form Labels A Width

· ·
Free Resource
For some reason this has always bugged me in the past. When using a label they don't comply with width unless accompanied by a float. I've used em to define the width so that is conforms with browser text settings. Dead simple

label {


Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}