Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

how to change the object tab colour of opportunity to account tab colour to match the related list of account

<apex:page standardcontroller="Account" extensions="controller" tabstyle="Opportunity"> <apex:form > <apex:sectionheader title="Subscriptions" />

to make whole account detail record page look like one style rather than in different style

share|improve this question
add comment

2 Answers

http://teachmesalesforce.wordpress.com/2011/07/16/changing-tab-logo-using-styling/

Was looking at this blog and it says you can create your own style and own image and use the same .

http://boards.developerforce.com/t5/General-Development/Change-the-color-of-Standard-Tabs/td-p/277299

<style>
.accountTab .tabNavigation .tab .currentTab, .accountTab #contentWrapper #motifCurve,    .accountTab #contentWrapper #motifCurve div {
background-color: #f00;
 }
</style>

This was technique used .That is by using inspect element you can overide the CSS .Observing the CSS in chrome inspect element may help.

share|improve this answer
add comment

try using tabstyle="account" that should pull all colors related to the account tab.

Updated again with setup attribute:

<apex:page standardcontroller="Account"  tabstyle="Opportunity" extensions="controller" setup="true">
 <apex:form > 
 <apex:sectionheader title="Subscriptions" />
 <apex:pageblock tabstyle="account" title="Account Style">
 <apex:inputfield value="{!account.name}"/>
 </apex:pageblock>
 </apex:form>
 </apex:page>
share|improve this answer
    
If i use tabstyle ="account" i dont get the opportunity image to that, so i am looking for account style with opportunity image –  user1816707 Nov 12 '12 at 17:36
    
check the setup ="true" –  rao Nov 12 '12 at 17:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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