Solved

Stop RadioButtonList wrapping

Posted on 2003-12-03
3
1,101 Views
Last Modified: 2008-02-01
I have a RadioButtonList inside a table cell, which I want to be as narrow as possible, but the text in the RadioButtonList is wrapping. Is there an easy way to stop it?
The example below demonstrates the problem, although in my case I'm using dynamic text.
Thanks.

<form id="Form1" method="post" runat="server">
 <TABLE id="Table1" cellSpacing="1" cellPadding="1" width="300" border="1">
  <TR>
   <TD noWrap width="1%">
    <asp:RadioButtonList id="RadioButtonList1" runat="server">
     <asp:ListItem Value="Test item 1">Test item 1</asp:ListItem>
     <asp:ListItem Value="Test item 2">Test item 2</asp:ListItem>
    </asp:RadioButtonList></TD>
   <TD></TD>
  </TR>
 </TABLE>
</form>
0
Comment
Question by:zalbermere
3 Comments
 
LVL 9

Accepted Solution

by:
malharone earned 125 total points
ID: 9871702
<TD noWrap width="1%"> ... dont specify the width. it'll autosize it .. but wont guarantee the minimum -- depends on the browser.
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 10246760
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: malharone {http:#9871702}

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

TheLearnedOne
EE Cleanup Volunteer
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question