Position of text in a submit button

前端 未结 11 1507
灰色年华
灰色年华 2020-12-25 15:00

The position of the text on the search submit button on my blog is very low in Firefox 4, but not Chrome 10 or IE9. I\'ve tried almost everything, and nothing works except l

11条回答
  •  盖世英雄少女心
    2020-12-25 15:40

    I came across this when I was looking for a solution to this problem, but since I never really found anything other than a hint at changing the padding bottom I wanted to share that I found adjusting the padding-bottom for just firefox worked great.

    Every other browser allowed for enough line-height control to adjust the text positioning.

    /* This gets picked up in firefox only to adjust the text into the middle */
    @-moz-document url-prefix() {
        input[type="button"],
        input[type="submit"],
        button.btn {
            padding-bottom: 6px;
        }
    }
    

提交回复
热议问题