+ Start a Discussion
bozotheclownbozotheclown 

SelectRadio/SelectOptions Forcing a Line Break?

Hello.  I am trying to display two short radio button options in a line of text...but VF is apparently forcing a line break.

 

Specifically, ON THE SAME LINE, I am trying to list the words "Name" and "Choices" followed by two short radio buttons.  Unfortunately, the radio buttons are being placed at the beginning of line immediately below the line with "Name" and "Choices".

 

Below is my code.  Any suggestions on how to avoid the line break?  Thanks in advance,

 

<b>Name:</b>
&nbsp; &nbsp; &nbsp;
<b>Choices:</b>
<apex:selectRadio value="{!aaa}" layout="lineDirection">
<apex:selectOptions value="{!bbb}">
</apex:selectOptions>
<apex:actionSupport event="oncomplete" action="{!ccc}"/>
</apex:selectRadio>

 

Avidev9Avidev9

Try this

 

<div style="float:left">
<b>Name:</b> &nbsp; &nbsp; &nbsp; <b>Choices:</b>
</div>
<div style="float:left"> <apex:selectRadio value="{!aaa}" layout="lineDirection"> <apex:selectOptions value="{!bbb}"> </apex:selectOptions> <apex:actionSupport event="oncomplete" action="{!ccc}"/> </apex:selectRadio>
</div>