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 Forumlas #177

Open
o7-machinehum opened this issue Sep 14, 2022 · 1 comment
Open

Centering Forumlas #177

o7-machinehum opened this issue Sep 14, 2022 · 1 comment

Comments

@o7-machinehum
Copy link

How do you center formulas or change properties like padding from CSS? Are there any examples?

@lorezyra
Copy link

If you look at the rendered HTML, you should see <span class="katex"><!-- MathML code --></span>... If you know how to write CSS, then it should be obvious.

I created the following for my use-case:

span.katex,
math {
  color: var(--textColor);
  padding: 1rem 0;
  margin: 0.5rem;
  line-height: 2rem;
}

It would be trivial to add display and alignment rules to that block.

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

2 participants