You need to sign in to do that
Don't have an account?
lakshmi.sf9
How can we change PageBlockSection background color
Hi,
Can any one please tell how can we change pageblocksection background color.
I am trying the below code.It is not working
<apex:page standardController="Account">
<style>
.panelWrapper {
background-color: green;
}
</style>
<apex:outputPanel styleClass="panelWrapper" layout="block">
<apex:pageBlock title="Hello">
<apex:pageBlockSection title="pageblocksectionName">
</apex:pageBlockSection>
</apex:pageBlock>
</apex:outputPanel>
</apex:page>
Thanks in advance
Can any one please tell how can we change pageblocksection background color.
I am trying the below code.It is not working
<apex:page standardController="Account">
<style>
.panelWrapper {
background-color: green;
}
</style>
<apex:outputPanel styleClass="panelWrapper" layout="block">
<apex:pageBlock title="Hello">
<apex:pageBlockSection title="pageblocksectionName">
</apex:pageBlockSection>
</apex:pageBlock>
</apex:outputPanel>
</apex:page>
Thanks in advance
Here is the code,
If you want to just change the background color for only PageblockSection, then you have one option as specifying "tabStyle" in <apex:pageBlock> tag.
Eg:
Or if you want to do for whole Output Panel...then you apprach is correct just instead of using <apex:pageblock> inside of outputpanel use <table> tag to show you content.
I hope you will get answer to your question via this solution.
Please let me know your response.
Thanks