A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide 1Z0-808
this week in the
Adding space between Radio button and Label
Joined: Jun 29, 2008
Jul 16, 2010 05:12:49
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
<h:selectOneRadio id="sor" value="TableBean.perInfoAll" title="Select any one of the choice" layout="pageDirection" border="1"> <f:selectItem id="si1" itemLabel="Thums Up" itemValue="11" /> <f:selectItem id="si2" itemLabel="Limca" itemValue="22" /> </h:selectOneRadio>
SCJP 1.4,SCWCD5, SCBCD5
Joined: Jun 25, 2001
Jul 16, 2010 11:13:05
I usually just put a space in the label
. 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
h:selectOneRadio automatically creates Table
simple alignment problem with select one radio
How to create default value for radio button
How to make one of the Radio button default selected
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015