rblSampleRadioButtonList.Items(1).Attributes.CssStyle.Add("margin-left", "20px")
-Somu
<asp:RadioButtonList ID="RblSample" runat="server" RepeatDirection="Horizontal"> <asp:ListItem Text="Item1 " Value="Item1"></asp:ListItem> <asp:ListItem Text="Item2" Value="Item2"></asp:ListItem> </asp:RadioButtonList>
Thanks Pavan Kumar Mark Answer if this fits the need
Thanks & Regards Hari
.RadioButtonList label { margin-right:80px }
<asp:RadioButtonList runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" RepeatColumns="2" CssClass="RadioButtonList"> <asp:ListItem Selected="True" runat="server" Text="L1" /> <asp:ListItem Selected="True" runat="server" Text="L2" /> <asp:ListItem Selected="True" runat="server" Text="L3" /> <asp:ListItem Selected="True" runat="server" Text="L4" /> </asp:RadioButtonList>
Login to post response