Activity › Forums › Salesforce® Discussions › Why CSS is not working in PDF created by Salesforce Visualforce? Tagged: CSS, CSS3, PDF, Salesforce Visualforce Page, Visualforce Apps, Visualforce Component Salesforce® Discussions Why CSS is not working in PDF created by Salesforce Visualforce? Posted by Saurabh on April 12, 2017 at 5:10 PM Why CSS is not working in PDF created by Visualforce? PRANAV replied 8 years, 2 months ago 3 Members · 2 Replies CSSCSS3PDFSalesforce Visualforce PageVisualforce AppsVisualforce Component 2 Replies Suraj Member May 30, 2017 at 11:11 AM Hi Saurabh, You can move tour css style in Static Resources and Refer the Static Resource Css in VF Page <apex:styleSheet value=”{!URLFOR($Resource.Envelope)}” /> Hope this will help you. [adinserter block='9'] PRANAV Member March 15, 2018 at 9:16 AM Hi Saurabh, With addition to the Suraj’s response, you can also check you use the below code snippet <apex:page renderAs=”pdf” showHeader=”false” sidebar=”false” standardStylesheets=”false” applyBodyTag=”false” applyHtmlTag=”false”> Might be the standard style sheet overwrites your custom CSS. Hope this helps you more. Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me