AbdulAziz
AbdulAziz

Reputation: 6278

RadioButtonList not allign with the Label, CSS issue

I have a radioButtonList for which I have the label in ASP, the radioButtonList displaying correctly but it is not align with the label created for it.

What I exactly need is to

1- Align the radioButtonList with the label

2- Label of radio buttons must be close to radio buttons.

as shown below image;

enter image description here

My ASP code:

 <div style="display: inline;" dir="rtl">
                   <asp:Label ID="Label8" runat="Server" Text=" Permenat office"></asp:Label> 
                <asp:Label ID="Label35" runat="Server" Text="*" ForeColor="Red" Font-Bold="True"></asp:Label>


                <asp:RadioButtonList runat="server" ID="rdlstPermenantOffice" >
                    <asp:ListItem>Yes</asp:ListItem>
                    <asp:ListItem>No</asp:ListItem>
                </asp:RadioButtonList>


                </div>

Upvotes: 0

Views: 1911

Answers (1)

Afnan Ahmad
Afnan Ahmad

Reputation: 2542

Try this it works fine:-

<asp:RadioButtonList ID="rblChoose" runat="server" RepeatDirection="Horizontal" 
 RepeatLayout="Flow">
   <asp:ListItem Text="a" Value="a" />
   <asp:ListItem Text="b" Value="b" />
</asp:RadioButtonList>

Upvotes: 2

Related Questions