trying to create a flexible mailing list with little JS:
.email_item::after {
content: ", ";
}
resulting in:
foo@mail.com, foo2@mail.com
replicating with ctrl+c and ctrl+v returns:
foo@mail.comfoo2@mail.com
I’m going to have to use JS right? Or is there an optimizing genius out there?
Yes, generated content like
:afterand:beforeis for display purposes only.It does not alter the DOM so it is not selectable..
Why use JS and not directly add the comma at the HTML ?
Quoting the specs about
content