function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
suresh.csksuresh.csk 

How to add css style to visualforce custom component ?

Hi.

Is it possible to add css directly to a component like this.

<apex:component >
       <style type="text/css">
                  td{
                    style="height:10"
                      }
      </style>
     <table>
           <tr>
           <td>Test</td>
           </tr>
    </table>
</apex:component>


Best Regards
suresh
Vinita_SFDCVinita_SFDC
Hello Suresh,

Yes it is possible, for few examples on using custom style refer section "Using custom styles" in following link:

http://www.salesforce.com/us/developer/docs/pages/
suresh.csksuresh.csk
Hwllo Vinita.

Thanks for the time.
My question is can I add the style sheet to Component A with is called in the VF page.
The VF page also have their own style sheet.
This VF should be rendered as pdf

Best Regards
suresh