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
suji srinivasansuji srinivasan 

How to create space in between two outputtext tags in vf page?

In single line , I need to display  two output fields  with space in between them.
<p> Employee ID:<b> <apex:outputText value="{!candidate__c.Employee_ID__c}" ></apex:outputText> </b> Employee Name:<b> <apex:outputText value="{!candidate__c.Employee_Name__c}"> </apex:outputText> </b> </p>

 Output Reference:    
Employee ID: ASD2589637                           Employee Name:Jennifer

Thanks in advance
Best Answer chosen by suji srinivasan
PriyaPriya (Salesforce Developers) 
Hey Suji,

You can use &nbsp; as many times as you need the space.

Also refer this link for more detail :- https://salesforce.stackexchange.com/questions/137129/how-to-add-tab-space-in-vf-page#:~:text=If%20you%20want%20a%20blank,.&text=You%20can%20use%20as,as%20you%20need%20the%20space. (https://salesforce.stackexchange.com/questions/137129/how-to-add-tab-space-in-vf-page#:~:text=If%20you%20want%20a%20blank,.&text=You%20can%20use%20as,as%20you%20need%20the%20space.)
 

Kindly mark it as the best answer if it works for you.

 

Thanks & Regards,

Priya Ranjan