ksnider
asked on
Help Styling ASP RadioButtonList
Hi guys- This seems easy but for some reason I am struggling with this one radio button list. Can't figure out what makes it different from all the others in other pages that use almost identical code. See the attached screenshot. It aligns left. I have tried setting aliggnment in <tr> tag, in <td> tag, is the control itself, and using CSS Class. Can't get it to center. Can anyone tell me what I am missing? Your help would be greatly appreciated.
HTML:
<tr>
<asp:Panel ID="pnlPhoneType" runat="server" Visible="false">
<td>
<asp:RadioButtonList ID="rdblPhone" runat="server" RepeatDirection="Horizontal" >
<asp:ListItem>Home</asp:ListItem>
<asp:ListItem Value="Cell"></asp:ListItem>
<asp:ListItem>Work</asp:ListItem>
</asp:RadioButtonList>
</td>
<td>
<asp:RequiredFieldValidator ID="rfvrdblPhone" runat="server" ControlToValidate="rdblPhone" ErrorMessage="Please Select The Type Of Phone">*</asp:RequiredFieldValidator>
</td>
</asp:Panel>
</tr>
radioButtonsLeft.jpg
Can you show me the rendered html of the page?
"I have tried setting alignment in <tr> tag, in <td> tag"
How did you try setting the alignment values?
How did you try setting the alignment values?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.