Skip to content

Way of padding whole numbered list #117

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

You must be logged in to vote

The default padding of list is defined to <ol> element by the browser. It is not <li> element. It applies in general CSS styling, not only Marp.
https://developer.mozilla.org/en-US/docs/Learn/CSS/Styling_text/Styling_lists

So set padding-left to ol to tweak padding of the list.

ol {
  /* Example: no padding */
  padding-left: 0;
}

https://jsfiddle.net/qcLud6k2/2/

Replies: 1 comment

Comment options

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