This is one of the minor CSS problems that plagues me constantly. How do folks around Stack Overflow vertically align checkboxes and
If you use ASP.NET Web Forms you don't need to worry about DIVs and other elements or fixed sizes. We can align the text by setting float:left to the CheckboxList input type in CSS.
Please check the following example code:
.CheckboxList
{
font-size: 14px;
color: #333333;
}
.CheckboxList input
{
float: left;
clear: both;
}
.ASPX code: