+ Start a Discussion

styleClass attribute of various components

Hi All,


In VF Developer's guide (pg 274) I found below code.


<apex:outputPanel onclick="methodOneInJavascript('Yes!')" styleClass="btn" >
    Click Me


styleClass attribute is used in many VF components. The btn value here is for button.


What ref was used to refer 'btn' value in styleClass here?

Where can I find detail documentation about which styleClass is used for which component?


The VF dev guide don't have these details and its confusing to understand sometimes.


Thanks in Advance,



ForceMantis (Amit Jain)ForceMantis (Amit Jain)

btn is simply name of any css class that you want to apply to visualforce tags. In this case "btn" has been used for example purpose, I don't think there is a class like this.




I will put my question in different words. What are other values similar to "btn" (button) we can use in styleClass and where can I find its reference?