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
JakemJakem 

Styling PageBlock like a Related List

Hi everyone,

 

I've been looking everywhere for an answer to this and I can't seem to find it. I would appreciate and help anyone could give me. I have a pageBlockTable on my page that displays a list of records to related to Opportunities. I want this to look as similar to a standard related list as possible. Someone else had a similar problem here. I want the table to look like this:

 



 

But currently it looks like this:

 

 

As you can see, there are a few problems. There is a border underneath the title and buttons, the button is larger than it should be, and the "No records" message doesn't display with a full border around it. In my case, there is also more space between the edge of the pageBlockTable and the pageBlock than there should be.

 

Can anyone point me in the right direction?

 

Jake McCloskey

 

 

Arijit_rArijit_r

jakem,

 

I will be able to tell you the approach to do so. Please install firebug in firefox and look at a standard page. You should be able to see exactly what css or properties they are using. You will then be able to format your VF page in the same way.