List marker issue, please help

I have an ordered list, where the list markers are not following the formatting of the content i.e. bold, italics etc. Anyone with an idea how to resolve this please advice.
5 Replies
Jochem
Jochem2w ago
you'll have to share what your code looks like, preferably in something like codepen so folks can see it in their browsers
Muruthi
MuruthiOP2w ago
here is the codepen url - https://codepen.io/muruthi/pen/raOYEVY
Muruthi
CodePen
Untitled
...
Jochem
Jochem2w ago
why all the inline styles and wrappers? if you apply the styling directly to the li tag, bold and italics will apply to the markers too... but that HTML is a mess if you don't mind me saying
Muruthi
MuruthiOP2w ago
Thanks
MarkBoots
MarkBoots2w ago
and you don't even have to apply it to each li if they should all have the same styling You can add it once to the ol. font/text properties are inherited by the children

Did you find this page helpful?