Jump to content

PDF Invoice doesn't accept my css


Recommended Posts

Hello

 

I try to change my invoice theme. I thought that should not be hard, since I know CSS and HTML well. But somewhere must be some other css which overrides my rules.

 

Here is an example:

table td {padding: 20px 0; background: #C09; color: #FF6;}

The invoice PDF File gets the yellow color. But it doesn't accept my background and my padding. 

 

Why the hell is this happening?

 

 

Edit: I just noticed, that it's accepting background-color... But of course that's not the answer to the whole problem...  :blink:

Edited by wakabayashi (see edit history)
Link to comment
Share on other sites

Ok for all the guys who have the same problem... I spent whole night on this...

 

Bad news: you can't use normal/all css.

 

The pdf is generated with TCPDF and they don't support all css rules. That also explains why background-color is working and background not  :(

Link to comment
Share on other sites

×
×
  • Create New...