Way of padding whole numbered list #117
-
Hi all, As I want to pad a numbered list a distance to left border , I added
into
,which finally became
. However, it seems that only the text got padded. And their numbers stay where they are. So my question is, is there a way to padding the numbers along with the text? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The default padding of list is defined to So set
|
Beta Was this translation helpful? Give feedback.
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
tool
to tweak padding of the list.https://jsfiddle.net/qcLud6k2/2/