File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Adding space between Radio button and Label Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Adding space between Radio button and Label" Watch "Adding space between Radio button and Label" New topic

Adding space between Radio button and Label

Santosh Raveendran
Ranch Hand

Joined: Jun 29, 2008
Posts: 83
hi Team

can any one advice on adding a space between a radio button and its label.

do we have any attributes in f:selectItem for doing this

Thanks, Santhosh
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15950

I usually just put a space in the label string. Kind of crude, but usually sufficient. And you can't use multiple spaces, since in HTML they'll all compact down to a single space.

Then again, if you wanted precision spacing, using space characters isn't the way to go anyway. That's what CSS is for.

Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
subject: Adding space between Radio button and Label
Similar Threads
simple alignment problem with select one radio
h:selectOneRadio automatically creates Table
How to make one of the Radio button default selected
How to create default value for radio button