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
sumanth sasanapuri 18sumanth sasanapuri 18 

Column width for VF pagesection


Can anyone help me fixing the column gap issue for "Related Account", "Save" button, "Related opportunities" and "Save" button in the attached image below. 

VF page

Here`s the related code:

<apex:outputPanel id="testId">
 <apex:pageBlockSection columns="4">
    <apex:inputField value="{!objRideReport.Related_Accounts__c}" />
    <apex:commandButton value="Save" action="{!addAccount}" reRender="testId,accTable"/>
    <apex:inputField value="{!objRideReport.Related_Opportunities__c}" id="optyId" />
    <apex:commandButton value="Save" action="{!addOpportunity}" reRender="testId,optyTable"/>

Thank you!

Pradip Kr. ShuklaPradip Kr. Shukla
You can make  <apex:pageBlockSection columns="1"> and then take HTML TR and TD to set the components as required.