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
BobPBobP 

Visualforce field label on top like lightning page

I am creating a visualforce page and the field label is to the left of the field like classic but I have the lightning stylesheet set to true? 

What am I missing to get the field name on the top of the field like on a standard account page in LEX?

User-added image
Visualforce Code:
<apex:page standardController="Account" lightningStylesheets="true" > 
   
    <apex:form>

    <apex:pageBlock title="Snow Site Account Info">
       <apex:pageBlockSection>
    
    
    <apex:outputLabel value="Contract Status">
       <apex:inputField value="{!Account.Contract_Status__c}"/>
       </apex:outputLabel>
      
    <apex:outputLabel value="Contract Status">
       <apex:inputField value="{!Account.Contract_Status__c}"/>
       </apex:outputLabel>
      
       </apex:pageBlockSection>
</apex:form>
</apex:page>



 
Maharajan CMaharajan C
https://developer.salesforce.com/forums/?id=906F0000000BR5HIAW

Thanks,
Maharajan.C