Tuesday, January 28, 2014

Why CSS is not working in PDF created by Visualforce

Why CSS is not working in PDF created by Visualforce

In Many cases, i have observed problems faced by my colleagues and complaining that CSS is not working when they try to render any Visualforce page as “PDF”. Same Question is asked many times in Interviews also. Basically there are two ways:

Use “apex:stylesheet” tag to import external CSS file
Wrap “Style” tag inside “Head” tag in Visualforce
  

No comments:

Post a Comment