empty border code example Example: give border to empty div .classname:empty { border:1px solid red; }