Link to home
Start Free TrialLog in
Avatar of zintech
zintech

asked on

How to line up radiobuttons in ASP.NET

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
Avatar of Pryrates
Pryrates
Flag of Germany image

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.
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Can you post your ASP .NET code to see how are you creating your RadioButton objects?