Axis: CheckBox checkbox and text are not on the same line

I cannot figure out how to check the box and the text associated with it in one line. The text is very short, so it does not seem to be a width issue. I tried setting the display: built-in to the control, but when it was visualized, a range was added around the input and label that the display has: built-in. If I manually add the: inline mapping, using the resource view in Chrome, to the resulting label, which is fine. The problem is that I do not know how to get control for this.

Thanks.

+4
source share
1 answer

You want to apply display:inline to the <label> element that ASP creates to store the label text, not the control itself. So for example:

 <style type="text/css"> label { display: inline-block; } </style> <asp:CheckBox Text="This text appears on same line as checkbox" runat="server" /> 
+8
source

Source: https://habr.com/ru/post/900527/


All Articles