News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Pdf invoice tabel border paading left or right

Started by andrai2, February 09, 2017, 09:19:16 AM

Previous topic - Next topic

andrai2

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

Studio 42

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.