Just a few minutes ago a friend of mine asked me how can he apply width attribute to a label (he’s trying to format a form without using tables). Well the idea is very simple. You need to use the label element, but because the label is an inline element, it cannot have width value; in order to do this you need to put display:block or float:left.

<!-- label, input {    margin-top: 5px;    float: left; } label {   display: block;   width: 100px; } -->