You need to sign in to do that
Don't have an account?
Sabrina Ghebraoui 4
border-radius table visualforce page
I am trying to put some styling to my table with a border-radius in my visualforce page but when rendered to pdf I dont see the rounded corners.
<apex:page standardController="Quote" renderAs="advanced_pdf" cache="false" applyHtmlTag="false" applyBodyTag="false" standardStylesheets="false" showHeader="false" sidebar="false"> <html> <head> <style> .rcorners1 { border-radius: 50px; border: 2px solid #000; padding: 20px; width: 200px; height: 150px; } @media print { border-radius: 50px; border: 2px solid #000; padding: 20px; width: 200px; height: 150px; } </style> </head> <body> <table style="border: 1px solid black; border-radius:50px"> <tr> <td> test </td> </tr> </table> <p class="rcorners1">Lets look if this works</p> </body> </html> </apex:page>
Can you try mentioning the styling as a part of the static resource and add it in the visualforce page later as mentioned in below link
>> https://developer.salesforce.com/forums/?id=906F0000000AsgDIAS
<apex:styleSheet value="{!URLFOR($Resource.Envelope)}" />
I hope this helps and in case if this comes handy can you please choose this as best answer so that it can be useful for others in the future.
Regards,
Anutej
it works only when I delete the:
Regards,
The link to the thread is https://www.forcetalks.com/salesforce-topic/how-to-include-stylesheet-in-visualforce-page-rendered-as-pdf/