I was wondering if there is a CSS-only way of styling an element based on it's child?
In my present situation, i've got an ul
with a lot of li
's in it. None of them have a separate identifying class, but only one of them got an iFrame (youtube video) inside of it. That li
item, I want to style.
The CSS would somewhat be like
ul li:child-is[iframe] {
// styling
}
Is this possible?