Solved

Stop RadioButtonList wrapping

Posted on 2003-12-03
3
1,100 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

896 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now