How do I fix inconsistent Textarea bottom margin in Firefox and Chrome?

前端 未结 4 408
独厮守ぢ
独厮守ぢ 2020-12-08 18:55

I\'m trying to eliminate the extra bottom margin that both FF and Chrome seem to give to Textareas. Surprisingly IE seems to do it correctly. I would like to avoid using con

相关标签:
4条回答
  • 2020-12-08 18:57

    If you want to leave it inline, simply try

    vertical-align: top
    
    0 讨论(0)
  • 2020-12-08 19:03

    Just disable resize as follow

    textarea{resize: none;}

    0 讨论(0)
  • 2020-12-08 19:09

    By default, I believe both Chrome and Firefox will set these elements as display: inline-block;. Set display: block in your styles and you should be all set.

    0 讨论(0)
  • 2020-12-08 19:22

    Set display: block for your textarea.

    0 讨论(0)
提交回复
热议问题