You need to sign in to do that
Don't have an account?
![JayaJaya JayaJaya](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
VF Issue : Lookup field in vf is displaying no gab between two input boxes
Hi,
We are facing issue with alignment/spacing for lookup fields in Vf.
VF page is as below:
<apex:page standardController="Task">
<apex:form >
<apex:pageBlock >
<apex:pageBlockSection >
<apex:inputField value="{!Task.WhatId}" style="white-space: nowrap;" styleClass="lookupInput;" />
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
It is getting displayed as below, without any space between two input boxes. But if the same field is seen in a standard salesforce page, there is space between those two input boxes. How to make the two input boxes of the below lookup field to have some space in between them similar to that of standard salesforce page lookup field.
![No space issue between two input boxes of lookup field in VF](/forums/servlet/rtaImage?eid=906F0000000B36r&feoid=Body&refid=0EMF0000000QoyK)
Thanks.
We are facing issue with alignment/spacing for lookup fields in Vf.
VF page is as below:
<apex:page standardController="Task">
<apex:form >
<apex:pageBlock >
<apex:pageBlockSection >
<apex:inputField value="{!Task.WhatId}" style="white-space: nowrap;" styleClass="lookupInput;" />
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
It is getting displayed as below, without any space between two input boxes. But if the same field is seen in a standard salesforce page, there is space between those two input boxes. How to make the two input boxes of the below lookup field to have some space in between them similar to that of standard salesforce page lookup field.
Thanks.
Please check the below code it will solve your problem .
**Please select it as best answer if it solve your problem to help others.
All Answers
Please check the below code it will solve your problem .
**Please select it as best answer if it solve your problem to help others.