Home / CSS Tips Generated By ChatGPT / Using :empty to Style Empty Elements in CSS Style elements that are empty differently to indicate a lack of content. Source Code .box:empty { display: none; }