You need to sign in to do that
Don't have an account?
taaa
Background color of VF page
Hi,
I am adding one VF page in one section of Account pagelayout,it looks little odd, as the background color of VF is grey and rest is white, i want to make the background color of VF page equivalent to standard. Help me!
thanks
<apex:page controller="sample" tabStyle="ObjectName">
for ObjectName, mention the object, whose style you want to be in ur page.
Regards,
Magulan D
Salesforce.com certified Force.com Developer.
SFDC Blog
If this post is your solution, kindly mark this as the solution.
HI, Sorry it doesnt work, still it is in grey colour..
Here is my code:
<apex:page standardController="Account" extensions="cls_HAS_SurveyAttachmentAtAccount" tabStyle="Account">
<apex:messages />
<apex:form enctype="multipart/form-data">
<apex:pageMessages />
<apex:pageBlock >
<!--<apex:outputLink value="https://www.salesforce.com" id="theLink">{!d.name}</apex:outputLink>-->
<apex:pageBlockSection >
<apex:pageBlockSectionItem >
<apex:outputLabel value="File Name" for="fileName"/>
<apex:inputFile value="{!d.body}" filename="{!d.name}" id="fileName"/>
</apex:pageBlockSectionItem>
<apex:commandButton action="{!insertDoc}" value="Save"/>
<apex:repeat value="{!Docs}" var="dd" id="doc">
<apex:outputLink value="/{!dd.Id}" target="_blank"> {!dd.Name} </apex:outputLink>
</apex:repeat>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
apex:pageBlock has attribute named mode
The default user mode for the pageBlock component's 10.0 global child elements. This value determines whether lines are mode String drawn separating field values. Possible values are: "detail", in which data is displayed to the user with colored lines; "maindetail", in which data is displayed to the user with colored lines and a white background, just like the main detail page for records; and "edit", in which data is displayed to the user without field lines. If not specified, this value defaults to "detail". These lines have nothing to do with requiredness, they are merely visual separators, that make it easier to scan a detail page.