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
sanshasansha 

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: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: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.
TehNrdTehNrd
Maybe this....

Code:
<apex:outputLabel value="Field 1 Label" style="width: 150px"/>

 



Message Edited by TehNrd on 11-19-2008 09:37 AM