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
I added a picture to clarify what I am trying to accomplish in lining up the radio buttons.
new.jpg
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Can you post your ASP .NET code to see how are you creating your RadioButton objects?
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.