I’m using a content management system and I’m finding that when I use the editor to insert a numbered list that it’s inserting a span around the contents of the list elements, eg.
<li><span style="line-height: 1.6; font-family: inherit;">This is the text inside the list element</span></li>
I was told that this was being set in the external css file but I’m trying to work out how it could be set. I mean is it possible to use css to insert a span with inline css inside a list element? If yes, can you let me know what the code would look like so I can search the file?
If I understand right, it’s not the webpage / firebug that he’s seeing that span. It’s his editor for his CMS. I would think that the CSS would not plug that in until live.
Assuming htis is true, you probably just have your CMS to blame.
Assuming it’s not true, do CTRL+F “:before” in your CSS files. Find any CSS rules with :before pseudo class, and that uses the content property.
Ah. Yes I only glanced at the beginning of the <li>. Apologies. That’s very unusual for it to be set up that way. I assumed there would be some actual content.
Thanks for the replies. I searched for both :before and :after but couldn’t find any clues. I don’t know if I’m ever going to find the answer as to why the CMS is inserting the span but I basically just want to find out why the numbered list is rendering in a different font. Would you be able to take a look at the page and see what’s happening with the css:
The numbered list seems to be in a different font and seems to have a different font weight and colour but I can’t work it out. I just need it to be like the first paragraph.