How to add a comma using css, if there are more elements after it? Items are added dynamically.
The markup is as follows:
<span class="tags-list "> <a href="#">элемент1</a> <a href="#">элемент2</a> <a href="#">элемент3</a> </span> Initially it is not known how many elements will be displayed, one or several.
csswill be.tags-list a:not(:last-child):after { content: ','; }.tags-list a:not(:last-child):after { content: ','; }........ but with dynamic addition it’s not a fact that it will turn out - Alexey Shimansky