pytablewriter icon indicating copy to clipboard operation
pytablewriter copied to clipboard

Styling HTML tables?

Open stezz opened this issue 3 years ago • 2 comments

Hi @thombashi,

I was wondering I could I style an HTML table?

The table is rendering without borders and I just wanted to add them, but can't find where.

Thanks @stezz

stezz avatar Nov 07 '20 16:11 stezz

@stezz Unfortunately, borders are not supported as style for now.

One way to achieve that is:

  1. output an HTML table by pytablewriter
  2. adding CSS (with borders) manually to the table

thombashi avatar Dec 07 '20 16:12 thombashi

Thanks!

I simply styled the email I was sending by adding:

Cheers Stefano

stezz avatar Dec 07 '20 16:12 stezz