Sat, July 24, 2021
 
https://devcodepro.comdevcodepro
X
Home · Latest · Trends
1

CSS comma separated classes

CSS add comma after span
.myclass:not(:last-child)::after {
    content: ", ";
}

/* <span class="myclass">class1</span>
<span class="myclass">class2</span>
<span class="myclass">class3</span> */ 
rated 1 times (1) (0)
comments: 0 / hits: 293  / 9 months ago, tue, nov 24, 20, 08:40:57
More From » CSS
 

Comments

There are no comments for this Snippet yet
Only authorized users can post. Please sign in first, or register a free account
 
Share
Posted
pport
Member since Dec 11, 2019
Total Code Snippets: 7
Total Comments: 0
Location: Hartford, Connecticut
pport snippets
9 months ago, tue, nov 24, 20, 8:31:52
comments: 0 / hits: 186
2 years ago, wed, dec 11, 19, 10:46:24
comments: 0 / hits: 2872
PHP
2 years ago, thu, dec 26, 19, 1:40:52
comments: 0 / hits: 1507
1 year ago, wed, feb 12, 20, 2:14:06
comments: 0 / hits: 2246
7 months ago, sun, jan 3, 21, 3:39:57
comments: 0 / hits: 142
CSS
7 months ago, mon, jan 4, 21, 11:38:12
comments: 0 / hits: 130