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
Stacy Jewell 2Stacy Jewell 2 

My visualforce page is not displaying fully in Lightning. There is unnecessary whitespace around it that doesn't appear in Classic. Any advice?

NagendraNagendra (Salesforce Developers) 
Hi Stacy,

Sorry for this issue you are facing.

May I suggest you please give a try something like this.
<apex:outputPanel rendered="{!isClassic}">
    <div style="font-size: 10;padding-left: 38%">
    Director's Time
    </div>

</apex:outputPanel>

<apex:outputPanel rendered="{! !isClassic}" layout="block" styleClass="slds-scoped">
    <apex:slds />
    <div class="slds-grid slds-m-top_none">
    Director's Time
    </div>

</apex:outputPanel>    

</apex:page>
Please let us know if this helps.

Thanks,
Nagendra