0

There is a similar question available, but it is more than seven years old in the meanwhile.


Is there a CSS selector available that can be exclusively used for <li> parents who have <ul> children inside?

Example:

<ul class="level_1">
        <li> standard li element </li>
        <li> element that contains children  <!-- selector for this parent -->
                <ul class="level_2">
                    <li> children </li>
                    <li> children </li>
                </ul>
        </li>
        <li> standard li element </li>
        <li> element that contains children <!-- selector for this parent -->
                <ul class="level_2">
                    <li> children </li>
                    <li> children </li>
                </ul>
        </li>
</ul>
Dave
  • 175
  • 5

0 Answers0