Solved

How to line up radiobuttons in ASP.NET

Posted on 2012-03-23
3
225 Views
Last Modified: 2012-03-26
I have a set of 5 radiobuttons per row and 5 radio buttons per column on a simple ASP.NET page.  The problem I am having is getting them to all line up properly.  The text of each of the radio buttons goes out to different amount of spaces, for example the text of one radio button couild be "Cost Report" and the text of the radio button below it could be "Cost Report By Person By Task".  So I need a way to line the two of these up even though they are different sizes.  Simply adding non-breaking spaces to the page does not work.  

I added a picture to clarify what I am trying to accomplish in lining up the radio buttons.
new.jpg
0
Comment
Question by:zintech
3 Comments
 
LVL 13

Expert Comment

by:Pryrates
ID: 37760097
are you using the radiobuttonlist-control from asp.net or are those radio buttons placed on the page in the classic html way by yourself?
I would guess you have a style on your cell that says to display the text centered.
make it "left" and you should be fine.

Formating using   would need a proportional font what is hard to find, so this will more or less never work out properly.

Maybe you can post some code how you place those radio-groups.
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 37760845
If you need layout control, consider using a table m rows by n columns.
0
 
LVL 15

Expert Comment

by:jorge_toriz
ID: 37761084
Can you post your ASP .NET code to see how are you creating your RadioButton objects?
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

786 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