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
SzymonSzymon 

Visualforce field labels

Trying to align labels on a VF page so they are consistent (e.g. on top of the input field) but struggling a lot. Any advise how to solve the below? Thanks!
VF screen
SandhyaSandhya (Salesforce Developers) 
Hi,

You try something like below design, make use of  <apex:outputLabel value=""></apex:outputLabel>
<apex:page standardController="Account">
    
    <apex:form>
        <apex:pageBlock mode="Edit">
            
            <apex:pageBlockSection columns="1">
                
                <apex:pageBlockSectionItem>
                    <apex:outputLabel value=""></apex:outputLabel>
                    <apex:outputLabel value="Account Name"></apex:outputLabel>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem>
                    <apex:outputLabel value=""></apex:outputLabel>
                    <apex:inputField value="{!Account.Name}"/>
                </apex:pageBlockSectionItem>
                
            </apex:pageBlockSection>
                            
        </apex:pageBlock>
    </apex:form>
    
</apex:page>

Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
                                             
Best Regards
Sandhya
 
Raj VakatiRaj Vakati
Can u share your code