1

Here's the situation - there is a <li> in my code that appears on certain conditions that I need to apply positioning to. It has no id, no class. I can't use nth-child, because sometimes it's not there so the next <li> gets selected, breaking my design. I've been on this for months now, it appears that Javascript is going to be the only answer here but I don't even know where to begin with that.

I suppose I could modify the source code to give the <li> an id, but that is not as elegant a solution as I'd like. Modifying the code that way will break the removal script for the plugin that inserts this code.

Any help would be hugely appreciated. Thanks.

bahgheera
  • 11
  • 2
  • You need to tell us under what conditions it appears. The answer is to give it a class when it appears and/or before it appears. – Andrew May 22 '15 at 03:03