Make Bold to Order List numbers

I wanted to know how to bold the numbers of ol ??

Can’t be sure without checking but you don’t mind looking it up, right?


are two properties that may or may not help, but should be learned and studied, just the same.


it’s nothing to do with ol
try using the “::marker” to affect all list items.

for example

ol li::marker{
    color: red;
    font-weight: 900;
    font-size: 2rem;

Check it for yourself on MDN - ::marker


2rem is too big. I try with 1rem but its too small I want medium size so I also tried 5 to 10ox but with px (pixels) numbers 1,2,3 is not showing why is that?

1 Like

hi @mhs_007 ,
sure, feel free to adjust the font size to your preference.
Just make sure to double-check the code you type. I believe it will work.

If the issue persists, please share your code here so we can take a closer look.

1 Like