Make ASP.NET checkbox label on the same line

Sometimes when you use checkbox in , you will find that at runtime ( in browser ) the its text appears in a new line , not besides the checkbox, to resolve this you need to add a style for that label which is for the checkbox. There are several css ways, one of it is to create this class

.checkbox_sameline label {display:inline;}


And send it to the checkbox

<asp:CheckBox CssClass="checkbox_sameline"