css :empty demo

Return to article

In this demo you should see only 4 list items in each version even though there are 5 list items.

Javascript Version

  • this is an item 1
  • this is an item 2
  • this is an item 4
  • this is an item 5

CSS Version

  • this is an item 1
  • this is an item 2
  • this is an item 4
  • this is an item 5