Skip to content

Centered tables from .ipynb #175

Discussion options

You must be logged in to vote

Turns out this CAN be done. It's just that the .css styling rules weren't being given enough priority. I added the !important tag to my rules and that fixed it. In case anybody comes across this, later on, the following is my .css code to justify or center-align most book contents.

p {
  text-align: justify;
}
table {
    display: table !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.table {
    width: auto !important;
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@choldgraf
Comment options

Answer selected by MantiMantilla
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants