RadioButtonList

D

dancer

How can I get the buttons to appear on the same line as the question? No
matter what I do buttons appear on the NEXT line.

Are you at least 18 years of age?
<asp:RadioButtonList id="Eighteen"
RepeatDirection="horizontal" Runat=server>
<asp:ListItem><font face="Verdana"
Size="2">Yes</asp:ListItem>
<asp:ListItem><font face="Verdana"
Size="2">No</asp:ListItem> </asp:RadioButtonList><br>
 
G

Guest

How can I get the buttons to appear on the same line as the question? No
matter what I do buttons appear on the NEXT line.

Are you at least 18 years of age?
<asp:RadioButtonList id="Eighteen"
RepeatDirection="horizontal" Runat=server>
<asp:ListItem><font face="Verdana"
Size="2">Yes</asp:ListItem>
<asp:ListItem><font face="Verdana"
Size="2">No</asp:ListItem> </asp:RadioButtonList><br>

you can add your code to a table

<table>
<tr>
<td>
Are you at least 18 years of age?
</td>
<td>
<asp:RadioButtonList id="Eighteen"
RepeatDirection="horizontal" Runat=server>
<asp:ListItem><font face="Verdana"
Size="2">Yes</asp:ListItem>
<asp:ListItem><font face="Verdana"
Size="2">No</asp:ListItem> </asp:RadioButtonList>
</td>
</table>

The control is created in <DIV> and it makes a new line by default
 
G

Guest

you can add your code to a table

<table>
<tr>
<td>
Are you at least 18 years of age?
</td>
<td>
<asp:RadioButtonList id="Eighteen"
RepeatDirection="horizontal" Runat=server>
<asp:ListItem><font face="Verdana"
Size="2">Yes</asp:ListItem>
<asp:ListItem><font face="Verdana"
Size="2">No</asp:ListItem> </asp:RadioButtonList>
</td>
</table>

The control is created in <DIV> and it makes a new line by default

I was wrong, it creates a table aroud a RadioButtonList...

another option then, you can simply add

<div style="float:left">Are you at least 18 years of age?</div>

It also should make a text and a buttons in one line
 
D

dancer

That worked. Thank you. I wonder why the buttons do not line up with the
MIDDLE of the text, instead of appearing slightly lower than the text?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top