Search code examples
c#asp.netlayoutcheckboxalignment

ASP.NET Checkbox Text not aligned right or left to the Checkbox


In the new Visual Studio 2012 Webforms Templates all my ASP.NET Checkboxes and Radiobuttons have the Text on top or on bottom.

Is the intended!? How can i align the text right as it always was? I tried disable theming and set the cssclass to checkbox but nothing changed.

Solution found: I researched the html in firebug and it seems that the default Microsoft CSS is broken(!) label { display: block; } causes the wrong aligment

enter image description here


Solution

  • It is styling issue. Maybe the page viewport is too small and that results in what you see.

    If setting properties in asp.net does not help, then it can definitely be solved by css. After all, output is good old html...