Solved

Stop RadioButtonList wrapping

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

760 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