CSS jika elemen kosong

div:empty {
  background: lime;
}
MunchDuster