Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TCPDF Specific border for different sides

Tags:

php

tcpdf

I just started using TCPDF (output with HTML), and I do not understand why I can not have an inline CSS style for border like the following,

style="border-right: 1px"

After looking at some of the examples, the only place I see borders being used is on a table using the border="1" property. This is very frustrating, and I hope there is a way for me to use all inline CSS instead of old HTML attributes like "border".

Thanks for any help, Metropolis

like image 433
Metropolis Avatar asked Dec 02 '25 10:12

Metropolis


1 Answers

Since version 5.7 TCPDF ( http://www.tcpdf.org ) includes full support for CSS borders, so you have just to update. Anyway, do not forget to correctly set the borders.

For example:

border-right: 1px solid black;
like image 194
user412934 Avatar answered Dec 04 '25 23:12

user412934



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!