+ Start a Discussion

Custom style for standard related list component

Is it possible to use custom style for a standard related list component?

My sample page code:

<apex:page standardController="Lead" sidebar="false" showHeader="false" >
    <apex:relatedList subject="{!Lead}" list="CampaignMembers" pagesize="10"/>

The resulting page looks like this:

I need to remove the default salesforce styling and apply my own stylesheet.
Ron HessRon Hess

A Boolean value that specifies whether the standard Salesforce stylesheets are added to the generated page header if the showHeader attribute is set to false. If set to true, the standard stylesheets are added to the generated page header. If not specified, this value defaults to false.
Of course :)

And this is the VF documentation page on this topic:


Not sure how I missed it.

Thank you.