forked from myyasuda/sphinx_materialdesign_theme
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
:align: center doesn't work #9
Comments
@daniellimws -- Can chance you could see if the |
I tried with
I think only |
@daniellimws -- Want to send a pull request to fix? |
Sure, back from a long hiatus yay |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From what I can tell, the
:align: center;
doesn't work on an.. image
(and probably else where).This seems to be because the
:align: center;
adds the following css;However a
.img
is an inline element so themargin-left: auto; margin-right: auto;
trick doesn't work.This seems to be fixed by applying the
display: block
css to the element.The text was updated successfully, but these errors were encountered: