css: add text before or after by prettyscripts on 2011-12-19 12:09 • Send feedback » css use :before and :after psuedo elements with css property content. eg, to separate a list of items with '|': li:after { content: ' | '; } li:last-child:after { content: ''; } note line 2: no separater after the last item in the list. more »