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
laxmi narayan 11laxmi narayan 11 

Remove space from visualforce page

Hi there,

Anybody can help me to remove this unusal space. showing in this image.
This is visualforc page
User-added image 
Thanks!
NagendraNagendra (Salesforce Developers) 
Hi Laxmi,

The best way to avoid this type of issue is you need to display that in the <apex:outputpanel> component,
 
Say, for example, you have some of the fields inside a page block to be displayed based on the rendering option you need to give it in the following method,
<apex:page>
..............
//To avoid whitespaces if it disappears based on rendering option
<apex:outputPanel rendered="<your condition here>">  
    <apex:inputField value="{!object__c.field1__c}"/>
    <apex:inputField value="{!object__c.field2__c}"/>
</apex:outputpanel>
.................
</apex:page>
Hope this helps you further with the above issue.

Thanks,
Nagendra
 
 
laxmi narayan 11laxmi narayan 11
Hi Nagendra,

Thanks for your help!

It's a fix white space in service console and I tried CSS twik but unfortunatle it didn't worked. Any help would be appriciated.


User-added image



Thanks!
laxmi narayan 11laxmi narayan 11
Any thought appreciated?