开发者

Checkbox centered to label

Ca开发者_开发技巧n somebody help me to center the check box to his label? With the code below the check box is at the top.

<label for="checkbox">Label</label>
<input name="checkbox" type="checkbox" />

Thanks for your help!


I don't know if it's the proper way but I handle this problem like that:

http://jsfiddle.net/AgKpQ/

label, input {
    float: left;
    display: block;
}
label {
    font-size: 30px;
}
input {
    margin-top: 10px;
}

When using similar solutions you'll have to remember about the clearfix.


Does input{vertical-align:bottom;} what you want? If not maybe another of the valid values for vertical-align might.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜