VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: andrai2 on February 09, 2017, 09:19:16 AM

Title: Pdf invoice tabel border paading left or right
Post by: andrai2 on February 09, 2017, 09:19:16 AM
Hello!

I try to make my pdf invoice look better to look beteer i have adde a css code, to get my idea i have attached an image

My prbolem is that text is very close to table border and i need paddding left/right to to text to not be close to border to look beeter


Code which i have attached in css invoice/emails

table, th, td, {
border: 1px solid black;
line-height: 145%;
padding-left:10px !important;
}


as you can see i have added an border an text is very close to border, i dont know why but css code padding-left:10px !important; applys only to one section of the table others dont

i try to ad  table cellpadding="10" in ivoice_items php but no luck

The idea is that with border 1px invoice has more structure easy to read, and i would like to have that text is no close to border

Basicly i nedd some css hack to have padding left right,i try to bach and forward but could not apply paddding to other section od the pdf table.

Maybe someone can look
Title: Re: Pdf invoice tabel border paading left or right
Post by: Studio 42 on February 11, 2017, 16:38:32 PM
I think that the rule !important is not understand by tcpdf, the best is to apply the rules inline and remove VM rules for PDF.