Text box on same line as Radio Buttons

D

dancer

Using ASP.Net1.0

How can I get "Type of degree" and the following text box on the same line
as the radio buttons for "CollegeCompleted"?
I have tried <div style="float:left">, which works well for me in other
areas, but not in this case.


<HR>

College Name <span style="margin-left:162px;">

City/State <br>

<asp:TextBox id="College" columns = "35" runat=server/>

<asp:TextBox id="CollegeCity" columns = "35" runat=server/>

<br>Last Year Completed

<asp:RadioButtonList id="CollegeCompleted" RepeatDirection="horizontal"
Runat=server>

<asp:ListItem><font size="2"> 1</asp:ListItem>

<asp:ListItem><font size="2">2</asp:ListItem>

<asp:ListItem><font size="2">3</asp:ListItem>

<asp:ListItem><font size="2">4</asp:ListItem>

<asp:ListItem><font size="2">5</asp:ListItem>

</asp:RadioButtonList>

Type of Degree: <asp:TextBox id="DegreeCollege" runat=server/>

<HR>
 
S

seigo

Using ASP.Net1.0

How can I get "Type of degree" and the following text box on the same line
as the radio buttons for "CollegeCompleted"?
I have tried <div style="float:left">, which works well for me in other
areas, but not in this case.

<HR>

College Name <span style="margin-left:162px;">

City/State <br>

<asp:TextBox id="College" columns = "35" runat=server/>

<asp:TextBox id="CollegeCity" columns = "35" runat=server/>

<br>Last Year Completed

<asp:RadioButtonList id="CollegeCompleted" RepeatDirection="horizontal"
Runat=server>

<asp:ListItem><font size="2"> 1</asp:ListItem>

<asp:ListItem><font size="2">2</asp:ListItem>

<asp:ListItem><font size="2">3</asp:ListItem>

<asp:ListItem><font size="2">4</asp:ListItem>

<asp:ListItem><font size="2">5</asp:ListItem>

</asp:RadioButtonList>

Type of Degree: <asp:TextBox id="DegreeCollege" runat=server/>

<HR>

Hi dancer,

You should add RepeatLayout="Flow" to RadioButtonList:

<asp:RadioButtonList id="CollegeCompleted"
RepeatDirection="horizontal"
Runat=server RepeatLayout="Flow">


<asp:ListItem>&lt;font size=&quot;2&quot;&gt; 1</asp:ListItem>


<asp:ListItem>&lt;font size=&quot;2&quot;&gt;2</asp:ListItem>


<asp:ListItem>&lt;font size=&quot;2&quot;&gt;3</asp:ListItem>


<asp:ListItem>&lt;font size=&quot;2&quot;&gt;4</asp:ListItem>


<asp:ListItem>&lt;font size=&quot;2&quot;&gt;5</asp:ListItem>


</asp:RadioButtonList>


Type of Degree: <asp:TextBox id="DegreeCollege" runat=server/>

Regards,
Alexander Kleshchevnikov
MCP
www.klalex.com
 
D

dancer

That worked well. THANK YOU.


seigo said:
Hi dancer,

You should add RepeatLayout="Flow" to RadioButtonList:

<asp:RadioButtonList id="CollegeCompleted"
RepeatDirection="horizontal"
Runat=server RepeatLayout="Flow">


<asp:ListItem>&lt;font size=&quot;2&quot;&gt; 1</asp:ListItem>


<asp:ListItem>&lt;font size=&quot;2&quot;&gt;2</asp:ListItem>


<asp:ListItem>&lt;font size=&quot;2&quot;&gt;3</asp:ListItem>


<asp:ListItem>&lt;font size=&quot;2&quot;&gt;4</asp:ListItem>


<asp:ListItem>&lt;font size=&quot;2&quot;&gt;5</asp:ListItem>


</asp:RadioButtonList>


Type of Degree: <asp:TextBox id="DegreeCollege" runat=server/>

Regards,
Alexander Kleshchevnikov
MCP
www.klalex.com
 

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

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top