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
Nagaraju Mogili 7Nagaraju Mogili 7 

how can we separated the fields in pageblock section, I want to display the fieldnames (firstname,lastname,phone) in a row and the field values should be under the field names

<apex:page controller="NewController_cntrlr" sidebar="false" id="thepage" ShowHeader="false">
  <apex:form >
    <apex:pageBlock id="Thepage" title="Account Details">
       <apex:pageBlockSection collapsible="true">
          <apex:inputField value="{!acc.name}"/>
          <apex:inputField value="{!acc.rating}"/>
          <apex:inputField value="{!acc.AnnualRevenue}"/>
          <apex:inputField value="{!acc.Fax}"/>
          <apex:inputField value="{!acc.Industry}"/>
      </apex:pageBlockSection>
           <apex:pageBlockSection Title="Contact Details" >
              
              <apex:inputField label="Firstname" value="{!con.firstname}"/> 
              <apex:inputField label="Lastname" value="{!con.lastname}"/>
              <apex:inputField label="phone" value="{!con.phone}"/>
           </apex:pageBlockSection>   
    </apex:pageBlock>

  </apex:form>
</apex:page>.
====================================================
=======================================================

User-added image
 
Saurabh Sood 8Saurabh Sood 8
Hii @Nagaraju, It's better to use table instead of page block section and remaining explanation is blow 
 https://www.lightningdesignsystem.com/components/data-tables/
Nagaraju Mogili 7Nagaraju Mogili 7
Thanks Saurabh..... for your reply..
But my requirement is to display the fields in pageblock sections only.. could you please suggest me how to separate the fields