I have created a visual force page and embedded in the accounts. But visualforce page looks different in the section when embedded (that is the background-color is gray and does not like the standard section.
So is there a way to display VF page in detail page as standard section is displayed in detail page.
Regards,
khan
Attribution to: khan
Possible Suggestion/Solution #1
If you are using pageblocks and your embedded Visualforce looks like this:
so like the old UI, thick bars and grey background, you can set the mode attribute of the pageblock to mainDetail:
<apex:pageBlock mode="mainDetail">
and this will then match the standard theme. Note that it will still have a slight indent compared to the main page, this is because of the way that VF pages are iframed into regular pages.
Attribution to: Bob Buzzard
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/34032