Solved

How to line up radiobuttons in ASP.NET

Posted on 2012-03-23
3
230 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

696 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