Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Centering a table with <center> cuts off the border of the table #91

Closed
jothepro opened this issue Oct 2, 2022 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@jothepro
Copy link
Owner

jothepro commented Oct 2, 2022

As reported in #88, a table can not be centered with the <center> html tag, because then the left and right borders of the table will be cut of on small screens (when the table covers the full width of the content):

Bildschirmfoto 2022-10-02 um 14 25 55

@jothepro jothepro added the bug Something isn't working label Oct 2, 2022
@jothepro jothepro changed the title Centering a table with <center> cuts of the border of the table Centering a table with <center> cuts off the border of the table Oct 2, 2022
@MuellerSeb
Copy link

As mentioned, this hack solved it for me:

table{
  padding:1px;
}

But still, the table content is centered as well in each cell. I don't know if it is desired that way, but I wouldn't say so.

@jothepro
Copy link
Owner Author

I've added your workaround to the latest release v2.2.0. The table should not be cut off now.

@StefanBattmer
Copy link

Just checked with our documentation. Works like a charm! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants