-
Notifications
You must be signed in to change notification settings - Fork 115
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
Attribute align and margin: auto don't work #171
Comments
Hi @methalox, I'm aware that margin auto doesn't work but please remember that Html layout is far more powerful than what OpenXml can provide. I will put it in my investigation list but with no garantee of success. |
@onizet Thanks. I noticed it because the html I'm working with is generated by a TinyMCE 6.0 text editor, and when you align an image it does it with margin auto. |
Also sometimes it aligns the paragraphs with the align attribute, but it appears to be deprecated: https://www.geeksforgeeks.org/html-p-align-attribute/ |
It doesn't align the element when parsing its "align" attribute.
<p align="center">example</p>
Also, images don't get centered when using margin auto.
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="/images/example.png" width="310" height="220"></p>
.The text was updated successfully, but these errors were encountered: