Skip to content

Left-align bullet points / ordered lists #459

Closed Answered by yhatt
SoumayaMauthoorMOJ asked this question in Q&A
Discussion options

You must be logged in to vote

uncover theme is using a different trick margin: 0 auto than text-align and flex related CSS styles for centering lists.
https://github.com/marp-team/marp-core/blob/e05e5d5faad74b4b359377cc46303ba388ecd6ae/themes/uncover.scss#L168

To reset centering, set horizontal margin for the bullet list <ul> and ordered list <ol> to 0.

ul, ol {
  margin-left: 0;
  margin-right: 0;
}

ref: https://www.w3.org/Style/Examples/007/center.en.html

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by SoumayaMauthoorMOJ
Comment options

You must be logged in to vote
0 replies
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