Board Thread:Support Requests - Getting Technical/@comment-24460012-20191010210944

I have infoboxes for characters, and they specify which books in a series feature those characters. Since book titles are supposed to be italicized, I'd like to create some CSS that would automatically italicize them. This is what I tried:

In the infobox template, I added a name attribute:

In Wikia.css, I added this blurb:

.portable-infobox.pi-item[data-item-name=Main Character]{ font-style: italic; }

Did not work at all. Nothing happened. I'm probably missing something incredibly simple. 