Reply to thread

This one drove me mad. On the Recent Posts page, there are 2 .pageNavLinkGroup divs, one above and one below the list of posts.


When trying to use the :nth-child() CSS selector (in EXTRA.css) to style the second one (rather than editing the template and adding an additional class name), using


[code].find_new_posts .pageNavLinkGroup:nth-child(2)[/code] doesn't work...


Instead, you have to use the value 7 in order to target it. I can't figure out why? Even disabling JS doesn't correct it. I literally just kept trying numbers starting from 2 until it worked.


This however, does work:


[code].pageNavLinkGroup:nth-child(7) { background: red; }[/code]


Back
Top Bottom