CSS: Remove padding within select element

前端 未结 3 875
北荒
北荒 2021-01-19 23:51

I\'m trying to remove padding from within a select element so that the text within it lines up with the text in the input element directly below it.

I\'ve tried the

3条回答
  •  有刺的猬
    2021-01-20 00:15

    remove the text-indent: 3px; from select css

    input, select {
        float: right;
        width: 50%;
        -moz-box-sizing: border-box; 
        -webkit-box-sizing: border-box; 
        box-sizing: border-box;
        border-radius: 4px;
        -moz-border-radius: 4px;
        -webkit-border-radius: 4px;
        font-family: Calibri;
        font-size: 12px;
    }
    

    http://jsfiddle.net/pLSkH/4/

    text-indent: 3px;causing horizontal spacing with respect to the left, so its seems like a padding

提交回复
热议问题