October 22, 2024
Chicago 12, Melborne City, USA
CSS

In Sphinx How Do I Style a CSV-Table?


I have a simple csv-table directive in Sphinx that I would like to style:

Sphinx CSV-Table Styling
------------------------

.. csv-table:: Simple Example
   :header: a, b, c, d
   :widths: 5, 5, 5, 5

   1, 2, 3, 4
   5, 6, 7, 8
   9, 10, 11, 12
   13, 14, 15, 16

I would like to style the following:

  • Change the header background color.
  • Change the background of every other row.
  • Change the background of a single column.
  • Change the color of text for a single item.



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video