Link to home
Create AccountLog in
Avatar of josephdaviskcrm
josephdaviskcrmFlag for United States of America

asked on

ASP.NET RadioButtonList - How do I stack the options horizontally instead of vertically?

<asp:RadioButtonList ID="RadioButtonList1" runat="server">
<asp:ListItem>Visa</asp:ListItem><asp:ListItem>MasterCard</asp:ListItem><asp:ListItem>Discover</asp:ListItem>
</asp:RadioButtonList>

This code above displays a radio button list, but the three options are stacked vertically.  How do I get them to line up horizontally instead?
Avatar of ZachSmith
ZachSmith
Flag of United States of America image

RadioButtonList1.RepeatDirection = RepeatDirection.Horizontal;
ASKER CERTIFIED SOLUTION
Avatar of ZachSmith
ZachSmith
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account