sphinx-material icon indicating copy to clipboard operation
sphinx-material copied to clipboard

list-table not aligned to center when :align: center specified

Open johnthagen opened this issue 4 years ago • 14 comments

#70 fixed alignment for images, but list-tables seem to still not be aligned when :align: center is specified.

.. list-table:: My Table
   :header-rows: 1
   :align: center

   * - Column 1
     - Column 2
   * - Item 1
     - Item 2

The resulting table will be right justified rather than centered.

Related to #64

johnthagen avatar Sep 15 '20 12:09 johnthagen

can i try?

Anmol2001 avatar Oct 04 '20 20:10 Anmol2001

Experimenting to find the minimal CSS needed would likely help @bashtage.

johnthagen avatar Oct 04 '20 20:10 johnthagen

I aways welcome contributions!

On Sun, Oct 4, 2020, 21:08 Anmol2001 [email protected] wrote:

can i try?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bashtage/sphinx-material/issues/71#issuecomment-703308975, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABKTSRJA63OZILER6XA53Z3SJDI45ANCNFSM4RNCCMJQ .

bashtage avatar Oct 04 '20 21:10 bashtage

@bashtage please add the label of "hactoberfest" to the repository and "hactoberfest-accepted" to the pull requests so that more contributions will come.

Anmol2001 avatar Oct 11 '20 18:10 Anmol2001

@bashtage actually label was supposed to be added to the repository as a whole , not to this particular issue

Anmol2001 avatar Oct 12 '20 08:10 Anmol2001

@Anmol2001 I added it to both I think.

bashtage avatar Oct 12 '20 08:10 bashtage

image

bashtage avatar Oct 12 '20 08:10 bashtage

@bashtage there was a typo by me , it was actually "hacktoberfest"

Anmol2001 avatar Oct 12 '20 08:10 Anmol2001

Fixed.

bashtage avatar Oct 12 '20 08:10 bashtage

@bashtage please check my new comment on my pull request

Anmol2001 avatar Oct 15 '20 18:10 Anmol2001

@Anmol2001 Unfortunately this fix doesn't work. I do a lot of munging of tables including stripping classes. This results in the align-center or align-right classes form being removed. This would need to be fixed, then the other css would need to be fixed. It is a relatively big job.

bashtage avatar Oct 16 '20 08:10 bashtage

hey, can you please assign me? I would like to work on this.

Adityachaturvedi2906 avatar Oct 18 '20 19:10 Adityachaturvedi2906

can I contribute?

RupinVijan avatar Oct 02 '21 14:10 RupinVijan

Can I contribute?

Vanshikasharma620 avatar Oct 02 '21 14:10 Vanshikasharma620