You need to sign in to do that
Don't have an account?
sansha
Increase the width of outLabel in PageBlockSection
I am trying to get 3 fields in a row in a page block section.
<apex:PageBlockSection title="Test Information" columns="3">
<apex:PageBlockSectionItem>
<apex:outputLabel value="Field 1 Label" />
<apex:inputCheckbox value="{!Table1__c.Field1__c}">
<apex:actionSupport event="onclick" action="{!func1}" rerender="section1"/>
</apex:inputCheckbox>
</apex:PageBlockSectionItem>
<apex:outputLabel value="Field 1 Label" />
<apex:inputCheckbox value="{!Table1__c.Field1__c}">
<apex:actionSupport event="onclick" action="{!func1}" rerender="section1"/>
</apex:inputCheckbox>
</apex:PageBlockSectionItem>
<apex:PageBlockSectionItem>
<apex:outputLabel value="Field 2 Label" />
<apex:inputCheckbox value="{!Table1__c.Field2__c}">
<apex:actionSupport event="onclick" action="{!func1}" rerender="section1"/>
</apex:inputCheckbox>
</apex:PageBlockSectionItem>
<apex:outputLabel value="Field 2 Label" />
<apex:inputCheckbox value="{!Table1__c.Field2__c}">
<apex:actionSupport event="onclick" action="{!func1}" rerender="section1"/>
</apex:inputCheckbox>
</apex:PageBlockSectionItem>
<apex:PageBlockSectionItem>
<apex:outputLabel value="Field 3 Label" />
<apex:inputCheckbox value="{!Table1__c.Field3__c}">
<apex:actionSupport event="onclick" action="{!func1}" rerender="section1"/>
</apex:inputCheckbox>
</apex:PageBlockSectionItem>
<apex:outputLabel value="Field 3 Label" />
<apex:inputCheckbox value="{!Table1__c.Field3__c}">
<apex:actionSupport event="onclick" action="{!func1}" rerender="section1"/>
</apex:inputCheckbox>
</apex:PageBlockSectionItem>
</apex:PageBlockSection>
The outputLabels are getting displayed as multi-line even when there is enough space between the 3 columns. I want to set the width of the outputLabels so that the label appears in a single line.
Please suggest on how to use the style attribute to achieve this.
Message Edited by TehNrd on 11-19-2008 09:37 AM