1

So I have too much padding between fields within a PageBlockSection. I have 3 columns, so to reduce the padding between fields I created 4 columns. How can I skip a column to force the next PageBlockSectionItem in a new row.

<apex:pageBlockSection title="Costs" id="CostsSection" columns="4">  
                  <!-- Costs-->
                  <!-- before position-->
                  <apex:pageBlockSectionItem HelpText="{!$ObjectType.Application__c.fields.Rpt_Position_Support_Prior_to_STAR__c.inlineHelpText}">
                        {!$ObjectType.Application__c.fields.Rpt_Position_Support_Prior_to_STAR__c.label}
                        <apex:inputField id="beforePosition" value="{!Application__c.Rpt_Position_Support_Prior_to_STAR__c}" />
                    </apex:pageBlockSectionItem> 

How can I force this on a new row and skip a column? Basically, I want Field, Field, Field, SKIP, [new row because only 4 columns], field, field, field, SKIP, etc...

Thanks, Joe

1 Answer 1

4

You can insert an empty section item after the third:

<apex:pageBlockSectionItem />
1
  • it's beautiful in it's simplicity!
    – tjcinnamon
    Commented Feb 19, 2016 at 16:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .