How to vertically align a html radio button to it's label?

前端 未结 1 848
梦谈多话
梦谈多话 2020-12-23 02:51

I have a form with radio buttons that are on the same line as their labels. The radio buttons are however not aligned vertically with their labels as shown in the screenshot

相关标签:
1条回答
  • 2020-12-23 03:40

    Try this:

    input[type="radio"] {
      margin-top: -1px;
      vertical-align: middle;
    }
    
    0 讨论(0)
提交回复
热议问题