Radio/checkbox alignment in HTML/CSS

前端 未结 13 982
不知归路
不知归路 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:57

    There are several ways to implement it:

    1. For ASP.NET Standard CheckBox:

      .tdInputCheckBox
      { 
      position:relative;
      top:-2px;
      }
      
    2. For DevExpress CheckBox:

      
      
      
    3. For RadioButtonList:

      
         Yes
         No
      
      
    4. For Required Field Validators:

      
      
      `
      

提交回复
热议问题