Is there a way to target a list item's last child "only" if it has children in CSS3?
I'm trying to cancel out a border-radius on this item only, as seen below:
I have:
#navbar > ul ul li:last-child
I need:
#navbar > ul ul li:last-child**:has-children**
The only solution I've found is a jQuery workaround:
$('#navbar > ul ul li:has(ul.sub)').addClass('has_sub');