Skip to content

Icons inside table cells are not vertically centered #2259

Answered by ChristianMurphy
rcdailey asked this question in Q&A
Discussion options

You must be logged in to vote

Welcome @rcdailey! 👋
Sorry you ran into a spot of trouble.

MDX + remark-gfm here is translating the GFM table to HTML following the GFM spec https://github.github.com/gfm/#tables-extension-
Neither the GFM spec, remark-gfm, nor MDX add styles.

Those are something which would be added from your project using a stylesheet.
You can apply your desired styles across the project with something like

td[align=center] {
  display: flex;
  align-items: center;
  justify-content: center;
}

For how to add a global stylesheet, follow docusaurus' example here: https://docusaurus.io/docs/styling-layout/

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rcdailey
Comment options

@ChristianMurphy
Comment options

Answer selected by rcdailey
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