function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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>