Closed melneff closed 8 years ago
what is thead? I do not quite understand your example. Do you mean "th style=.."
Like this: http://jsfiddle.net/zvx6eb7e/266/
Or this if you are trying to do the whole header ... http://jsfiddle.net/zvx6eb7e/269/
Or this works too using thead element ... http://jsfiddle.net/zvx6eb7e/271/
One thing to check is your @media print rules. If you are using some default rules in some library or of the browser, there are many times that these rules turn off background-color and many other things. We are applying all @media print rules that you do not exclude so it is possible such a rule exists somewhere in your CSS and it is being applied.
Hello, I found my issue from looking at the jsfiddles.
thanks!
On Thu, Sep 29, 2016 at 4:52 PM, kbrown01 notifications@github.com wrote:
Or this works too using thead element ... http://jsfiddle.net/zvx6eb7e/ 271/
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Xportability/css-to-pdf/issues/47#issuecomment-250624274, or mute the thread https://github.com/notifications/unsubscribe-auth/AIReS906L4vtpE2QT1fCF2wkzaABULyKks5qvE9KgaJpZM4KKlLH .
Perfect! Closing.
I have an div that I'm transferring to pdf but I cannot get the background-color to transfer in a th. Other things transfer fine, but if I set the background-color or color of the th it will not show up on the pdf.
thead style="background-color:red;"
do I have to set something else first to get this to transfer?