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

[FEATURE] How can I center a text element both vertically and horizontally? #1340

Open
cutemurphy2022 opened this issue Jul 9, 2024 · 0 comments

Comments

@cutemurphy2022
Copy link

How can I center a text element both vertically and horizontally? I know that I can set the width of the text to 50%, but I don't want to fix the width of the text. I want to dynamically calculate the width of the text and then offset the text to the left by half the width of the text. I'm not sure if pptxgenjs supports this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant