+ Start a Discussion
SimrinSimrin 

displaying radio options in vertical alignment

Hello,

I want to know method to display radio button in vertical manner
 
<apex:selectRadio value="{!choice}">
            <apex:selectOption itemLabel="a" itemValue="a"/>
            <apex:selectOption itemLabel="b" itemValue="b"/>
            <apex:selectOption itemLabel="c" itemValue="c"/>
        </apex:selectRadio>

 
Best Answer chosen by Simrin
ManojjenaManojjena
Hi Simrin ,

Use layout attribute with value pagedirection will help you .
<apex:selectRadio value="{!choice}" layout="pageDirection">
            <apex:selectOption itemLabel="a" itemValue="a"/>
            <apex:selectOption itemLabel="b" itemValue="b"/>
            <apex:selectOption itemLabel="c" itemValue="c"/>
        </apex:selectRadio>
Thnaks
Manoj