You need to sign in to do that
Don't have an account?
ApexPrey
Replicate Apex:Detail CSS styling throughout VF page
So what's the magic sauce to force all components on a VF page to match the CSS of the Apex:Detail block? TabStyle isn't the answer. The rendered Apex:Detail block has a different div class with completely different styles than other Apex page elements. One would think that they should match by default, right? The docs even state the the PageBlock element "uses styling similar to the appearance of a Salesforce detail page, but without any default content."
That's it! Much appreciated... been plowing through sfdc docs for days and I never saw anything mentioning pageblock mode...
I still wonder why some product manager decided that the default styles shouldn't match :-|
All Answers
In what way are they different? Is it that the layout looks like the old theme? If that is the issue, try setting your pageblock mode attribute to maindetail.
That's it! Much appreciated... been plowing through sfdc docs for days and I never saw anything mentioning pageblock mode...
I still wonder why some product manager decided that the default styles shouldn't match :-|