Solved

How to line up radiobuttons in ASP.NET

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now