HTML CSS examples for CSS Selector:empty
CSS3 :empty selector and content property
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> ul {<!-- w w w.jav a 2 s . c o m--> min-height:41px; } ul:empty { content:'Empty'; } ul:empty:after { content:"AFTER EMPTY"; } </style> </head> <body> <ul></ul> <ul> <li>Lorem ip</li> <li>Lorem ip</li> </ul> </body> </html>