Instead of adding a semicolon AFTER each item(except the last) you could add a semicolon BEFORE each item (except the first). CSS2 has a seudoclass selector :first-child to apply a different style to the first element of a collection. This question already has an answer here: Using :before and :after CSS selector to insert Html [duplicate] 1 answer is there any CSS way to add div, p, span elements inside css content attribute? The F12 tools can help you find and fix errors in HTML and Cascading Style Sheets (CSS) code that might otherwise be hard to find in your source code.In the white area, not on an existing element. Add rule after. You can add different property one after the other appending them after a semi-colon.