3

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

1
  • 2
    a couple of screen shots might make your question clearer – cropredy Apr 30 '14 at 1:42
3

If you are using pageblocks and your embedded Visualforce looks like this:

enter image description here

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.

enter image description here

1
  • Hi Bob,It helped me a lot.This was what i was looking for. Thanks for the quick answer. Regards,khan – khan May 1 '14 at 14:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.