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
Karen Brown 39Karen Brown 39 

How can I left align an Output field in a single column page block

Hi,

I am using visualforce to make opportunity page sections tabular in lightning, I have a field that in in a 1 column page section in classic but when I add to the visualforce page as a 1 cloumn section with this 1 field only the placement is not left allinged.

Here is the code for the page block, what do i need to add to allign it to the left?

<apex:pageBlockSection title="Scheme Outline" columns="1"> <apex:outputField value="{!opportunity.Summary_Scheme_Calc_SF__c}"/> </apex:pageBlockSection>

I want it to be all the way to the left.
User-added image
Best Answer chosen by Karen Brown 39
Sohan Raj GuptaSohan Raj Gupta
Hi Karen,

Can you give complete code? If not just try style="float:left" attribute in outputfield.

Thanks,
Sohan Raj Gupta

All Answers

Sohan Raj GuptaSohan Raj Gupta
Hi Karen,

Can you give complete code? If not just try style="float:left" attribute in outputfield.

Thanks,
Sohan Raj Gupta
This was selected as the best answer
Karen Brown 39Karen Brown 39
Thanks Sohan that worked perfectly