[SalesForce] Background color for Pageblock title

I have a visual force page which uses pageblock tag:

<apex:pageblock title="Sample">

</apex:pageblock>

I would like to make the background color of title="Sample" as green. How can I add styles to the pageblock tag. I tried tabstyle but seems like it does not serve the purpose.

Best Answer

I don't see a Salesforce supported way of doing this. But for a little bit hacking into this you can use the below css code which is working for me:

body .bPageBlock .pbHeader {
    background-color: Green; 
}

You don't need to add an class or attributes in your html for using this.