before element not working but after is code example Example: css before is not working .chart ul:after{ content: ""; border:1px solid #f30; }