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
you'll have to share what your code looks like, preferably in something like codepen so folks can see it in their browsers
here is the codepen url - https://codepen.io/muruthi/pen/raOYEVY
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 sayingThanks
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