[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 247
  • Last Modified:

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
0
zintech
Asked:
zintech
1 Solution
 
PryratesCommented:
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
 
Bob LearnedCommented:
If you need layout control, consider using a table m rows by n columns.
0
 
jorge_torizCommented:
Can you post your ASP .NET code to see how are you creating your RadioButton objects?
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now