Solved
How to right-align labels in a form type question?
Does anyone know some Java script that would align labels on the right in a form? In other words, I'm trying to push the labels right up against the text box entry areas, so that the blank space between the label for the box and the box itself is eliminated as much as possible, like so:
Name ___ ___ ___
Mailing Address ___ ___ ___
Thanks for any help you can provide!
Best answer by marean
Ah, I knew you'd have a solution, Tom - thanks! Fiddling with some of the other code snippets you've provided, I was able to get the entire question to align right (including the text boxes) but I couldn't figure out how to apply that to the labels only.
One follow-up comment: your second line of code doesn't appear to have any effect on the question, because I tried to modify that to put just a small padding between the text and the response box (changed the end to 2px), but I didn't see any difference. Then I commented the second line out altogether, and it looked just the same as with it. Any tip on how to get just about a space worth of padding to the right of the labels?
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
