And how do you change the background by removing a child?
The removed child could also have a background color, and it could span the entire area of the parent element.
But it’s weird because the quote says “modify a div’s background color”, and this way you don’t actually modify that, but only it’s appearance.
Or maybe it’s done with some CSS trickery, looking for a specific child in it’s selector?
The removed child could also have a background color, and it could span the entire area of the parent element.
But it’s weird because the quote says “modify a div’s background color”, and this way you don’t actually modify that, but only it’s appearance.
Or maybe it’s done with some CSS trickery, looking for a specific child in it’s selector?