You can see that last item is breaking the line and going separately from its checkbox. While i want it to be with checkbox , if not possible then checkbox must switch with it on new line. I am using checkbox list in asp.net
Solution :
.inline label { display: inline; } <div style="border: solid 1px blue; width: 300px;"> <asp:CheckBoxList ID="CheckBoxList2" runat="server" CssClass="inline"> <asp:ListItem Value="0" Text="line 0"></asp:ListItem> <asp:ListItem Value="1" Text="This is a kind of long text line which causes the text to be wrapped."></asp:ListItem> </asp:CheckBoxList> </div>
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.