A label
is an inline element and so is not affected by top and bottom padding. You need to make the label
a block level element for it to work:
label{
display: block; /* add this */
padding-top: 5px;
}
A label
is an inline element and so is not affected by top and bottom padding. You need to make the label
a block level element for it to work:
label{
display: block; /* add this */
padding-top: 5px;
}