Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS CSS selector for parent with blank element Reply To: CSS selector for parent with blank element

#262785
idan
Participant

Hi Beverley, how would I use the empty selector to select the li elements? (there will be always a value in the first <p> but in the second <p> it may be either empty or with value, maybe there’s a method using nth-child(2) to specifically select <li> with a 2nd <p> child that is empty?