Indenting multiline labels

后端 未结 3 1268
孤街浪徒
孤街浪徒 2021-02-07 05:21

I have the following automatically-generated HTML:

http://jsfiddle.net/BrV8X/

What is the advised way, using CSS, to indent the label so that there\'s some white

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-07 05:44

    label {
       position:relative;
       padding-left:20px;
       display:block;
    }
    
    label input[type=radio] {
       position:absolute;
       top:4px;
       left:0px;   
    }
    

    http://jsfiddle.net/BrV8X/4/

提交回复
热议问题