Radio/checkbox alignment in HTML/CSS

前端 未结 13 977
不知归路
不知归路 2020-12-04 08:08

What is the cleanest way to align properly radio buttons / checkboxes with text? The only reliable solution which I have been using so far is table based:

&l         


        
13条回答
  •  执念已碎
    2020-12-04 08:50

    I found the best fix for this was to give the input a height that matches the label. At least this fixed my problem with inconsistencies in Firefox and IE.

    input { height: 18px; margin: 0; float: left; }
    label { height: 18px; float: left; }
    
    
提交回复
热议问题