XF 2.1 Adding padding-bottom to list elements <li> in message body

Wildcat Media

Well-known member
I have been trying to add some padding after list items in the message body, but I can't find the CSS descriptors to make it work. This would need to be for ordered and unordered lists. They are unreadable without the padding, coming through as one solid block of text.

I asked this for version 1.4 but naturally, everything has changed, and I'd like to get that padding back. Where do I add my padding in this version? I tried inspecting in the browser but had no luck being able to edit anything.

I just randomly tried the following and it worked, but, I don't know if it will work outside the browser's inspector. Plus, it added padding to other structure items that used lists. I'm probably missing some small element here.

CSS:
li:not(.is-structureList) {
    padding-bottom: 10px;
}

Thanks, and...see ya next year! 🎉🎊🎆
 
Last edited:
OK, now this seems to work:

CSS:
.bbWrapper li:not(.is-structureList) {
    padding-bottom: 0.7em;
}

Everything else on the page looks OK for now. Any drawbacks to this?
 
Top Bottom