thombashi / pytablewriter

pytablewriter is a Python library to write a table in various formats: AsciiDoc / CSV / Elasticsearch / HTML / JavaScript / JSON / LaTeX / LDJSON / LTSV / Markdown / MediaWiki / NumPy / Excel / Pandas / Python / reStructuredText / SQLite / TOML / TSV.
https://pytablewriter.rtfd.io/
MIT License
610 stars 43 forks source link

Styling HTML tables? #31

Open stezz opened 4 years ago

stezz commented 4 years ago

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

thombashi commented 3 years ago

@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
stezz commented 3 years ago

Thanks!

I simply styled the email I was sending by adding:

Cheers Stefano